Sunday, January 30, 2022
Wednesday, January 12, 2022
New feature: Export BASIC programs (three options)
Today's new version of BASIC Anywhere Machine adds the "Export" button to the File menu.
".bas.html" file
- BASIC Anywhere Machine uses a custom version of wwwBASIC.js and embeds the javascript directly in the HTML file (i.e. does not use "include" of any external files). The resulting file will otherwise be very similar to the file described on the wwwBASIC github page.
".bas.json" file
BASIC Anywhere Machine's "Code Transclusion" Feature
' 📚 libraries{{Conversion Functions}}'' 🏁 start'print "The number of kilometers in 2 miles = "; MilesToKms!(2)print "The number of miles in 2 kilometers = "; KmsToMiles!(2)'end' 🏁
function MilesToKms!(Miles!)MilesToKms! = Miles! * 1.609345end functionfunction KmsToMiles!(Kms!)KmsToMiles! = Kms! / 1.609345end function
' 📚 librariesfunction MilesToKms!(Miles!)MilesToKms! = Miles! * 1.609345end functionfunction KmsToMiles!(Kms!)KmsToMiles! = Kms! / 1.609345end function'' 🏁 start'print "The number of kilometers in 2 miles = "; MilesToKms!(2)print "The number of miles in 2 kilometers = "; KmsToMiles!(2)'end' 🏁
Aside: in the sample programming code above, single-quotes are alternatives to the "REM" statements (used for comments in BASIC programs.) Also, for a bit of experimentation with code readability, I've added emoji's. I think it is something which should be used sparingly.
Tuesday, December 21, 2021
One of the Project Missions: Enhancing wwwBasic
I've added three new string functions to the version of wwwBasic embedded in BASIC Anywhere Machine: NOW$, TIME$, and DATE$. (See the screenshot below.)
Try it out: BASIC Anywhere Machine
Keep track of progress and get information at the project website.
Make sure to keep an eye on the evolving BASIC Anywhere Machine Programmer's Reference.
Sunday, December 19, 2021
The "File" Menu and the "Tools" Menu
File Menu
The following menu items are now functional: New, Open, Save, Save As.
Tools Menu
The menu provides the following working tools: "Wikify Viewer", "Diff Viewer", and "Start Previous Version"
Related videos:
Wednesday, December 8, 2021
"Program Launcher(?) tiddlers?
In video below, I demonstrate a "program launcher" tiddler with a simple GUI for configuring the settings for the BASIC program before running that program via the RUN button that is right there in the "program launcher" tiddler.
We can use this approach to create however intricate a program launcher that provides a GUI for adjusting a BASIC program however necessary for the current needs.
Monday, December 6, 2021
Added "Diff" and "RUN" buttons to ".BAS" tiddler toolbars
This is functionality I eventually want to build-into the IDE.
The ability to simultaneously see consoles of both before and after changes to a program, this easily, is pretty sweet.
Sunday, December 5, 2021
-
As a coding exercise, I wanted to make use of DRAW statements to get plot points for regular polygons repeated around an axis to create geom...
-
EDIT 2026-05-11: Something was causing this program to not work on mobile devices. I'm guessing I had exported and uploaded the wrong v...
-
Variable Scoping describes where a variable is accessible, or available, within a program. A BASIC Anywhere Machine program may declare (exp...