My previous post last week introduced Creole Forth for JavaScript as a new project. As of today I’m pleased to report significant progress. It has close to 70 words and is close to its companion languages in out-of-the-box functionality. Below is a list of features that were implemented this week.
- Colon compiler
- IF-THEN-ELSE branching
- BEGIN-UNTIL looping
- Timing primitives
- List compiler which allows a list of words to be passed as a single unit onto the stack
- CREATE, DOES> and , (comma). DOES> doesn't work right yet inside a colon definition
- @ and !
- CONSTANT and VARIABLE. Since CONSTANT relies on DOES> do not use it yet in a colon definition.
- DEFINITIONS - sets the context vocabulary to the current
- MSGBOX - takes a value off the stack and puts it in an alert box
- EVAL - evaluates raw JavaScript code. This is limited to alerts right now for security reason
- VLIST - outputs the dictionary as an HTML table
- Single and multiline comments