Commit Graph

11 Commits

Author SHA1 Message Date
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
0d1ecd9bd3 - All tests passing
- Updated README and image
- Added itoa to stdlib
- Implemented modulus math for bcc which has none in the stdlib
- Updated the build scripts to work on Ubuntu 22
- Added bochsrc with some useful overrides (new bochs bios in ubuntu is broken, use the legacy)
- Made most of stdlib compile and run under GNU C for testing
- Improved the tokenizer so it will return tokens of more than one character
- Moved the basic parser from using void pointers to store values to using basic_value unions to represent possible types
- Added tests for the basic tokenizer
2024-05-04 11:31:14 -04:00
b5be0cd1ff Fix builtin warnings 2016-03-27 13:20:36 -07:00
4c0f1379b1 Add more tests from stringlib 2016-03-27 13:19:38 -07:00
f059c083c8 Add more tests from stringlib 2016-03-27 13:16:41 -07:00
9fefff9edf Add tests for stdlib 2016-03-27 12:42:42 -07:00
d9a31feaa5 Fix badge, add missing test makefile 2016-03-27 12:19:45 -07:00
25e3b5c517 Added primitive unit testing in tests/ 2016-03-27 12:11:24 -07:00