Commit Graph

5 Commits

Author SHA1 Message Date
ee10cc6eb5 WIP : Storing line numbers, detecting immediate mode vs storage mode, solver tests are not working 2024-05-06 17:51:42 -04:00
a428b905da Added the ability to parse commands as well as expressions.
Added basic PRINT and REM commands.
Added solver tests which had been around for a while and not committed.
All execution is still immediate mode.
2024-05-06 16:57:13 -04:00
ef53041427 Refactored the name of some defined basic parser codes and exposed basic_solve_expr for tests 2024-05-06 14:51:04 -04:00
591858334b - Added the ability to start a line with a number and store it for later execution
- Added the ability to force immediate mode processing (calculator mode) by beginning a line with =
- Expanded parser testing
- Expression execution seems to be broken now, everything is returning error code 0 and not returning results
2024-05-05 06:55:39 -04:00
921a9dd8bd - Added string strip methods lstrip and rstrip
- Fixed the tokenizer to chomp whitespace from left and right of tokens
- Fixed the tokenizer so it returns reserved symbols not just constants and expressions
- Added some tests for the basic tokenizer and parser
- Started working on structures to allow the basic interpreter to store lines in memory
2024-05-04 22:08:20 -04:00