This version improves error reporting for function calls with invalid arguments, and has fixes for detecting invalid TAB() function calls.
Version 2.11 of MinimalBASIC compiler release
Fix a minor bug in uninitialized scalar string variable reporting.
The tarball versions in the Files section older than version 1.7 have been removed.
Renumber support has been added to the pretty printer.
AVX code generation has been completed.
The featured change in this version is the moving of the assembly generating AST walking code and the semantic checking code from the parser into separate modules.
The featured change in this version is that now the scanner generates tokens
only when they are needed by the parser instead of pre-scanning the entire
input file before the parse. The other changes are many small bug fixes for
corner cases that never manifested themselves in the existing test suite
programs. In addition, error reporting was improved to provide more
information when the compiler crashes with an ICE or hits a fatal error. One
user-visible improvement is that the print buffer is flushed of any pending
output before an INPUT statement, allowing prompts to work as expected.... read more
Compiler now generates native SSE register math!
This release is all about documentation, but includes a few bug fixes. The C code has much more comprehensive comments now, and even the assembly code in the runtime library gained a few too.
Version 1.3 of MinimalBASIC compiler released
Version 1.2 of MinimalBASIC compiler released
Fix self-test code for symbol_table. Omit generating code for READ, INPUT, SQR
support when not needed. Improve FOR loop code generation, converting it to
use macros. Fix bugs in symbol table where DATA statement numeric constants
were stored as floats instead of doubles when not using -s. Improve array
bounds checking to work with only one test per index. Enforce a maximum array
size of 10000 instead of just failing when a larger dimension is specified.
I am happy to announce that I finally finished the lua version of the BASICK interpreter and have released BASICK-1.0. This project contains a simple integer BASIC interpreter (no strings, floats, files, or graphics) that has a syntax similar to old-style ROM BASIC implementations. What is special is that you get 4 versions of the interpreter. These are written in Python3.3.x, PHP5.5.x, ruby2.x, and lua5.2.x. The lua version was very difficult to debug and unpleasant to work on, but at last it is done.
I am happy to announce that version 1.0 of the ECMA-55 MinimalBASIC compiler has been released.
In MinimalBASIC-20140408.tar.xz, the peephole optimizer now removes superfluous sequences of 'pushsaddr' immediately followed by 'popsaddr %rdi'.
Optional wide 132 column output mode now implemented. In the process, a few more small bugs showed up and are fixed. Wide mode shows 16 significant digits in float display instead of just 7, and uses 3 digit exponents instead of 2. A cosmetic typo in NBS test 27 is fixed. A cosmetic bug in NBS test 203 that only shows up with wide mode is fixed. Assembly code for print subsystem has been updated to use defined constants instead of magic numbers, and have better stack usage.
MinimalBASIC-20140402.tar.xz is a release candidate for the 1.0 release. All known bugs are again fixed, batch INPUT works, the test harness has been improved to show percentages of PASS/FAIL/Unknown and reasons are shown when a test does not PASS. A simple standalone peephole optimizer that works on the generated assembly code has been added to remove the back-to-back 'pushxmm0 '/'popxmm 0' sequences that tend to get generated occasionally by the expression handling, and the compile scripts and test harness are updated to use it. 207 of the 208 NBS tests pass using the test harness. Test #131 is designed to generate different output every run since it tests RANDOMIZE, so it cannot be automatically verified. I have manually verified it works.
Now both the 32 and 64 bit modes have identical tests passing, and the coredumps in the 64bit read of unquoted but valid numeric values into string variables is fixed. Batch INPUT is the only (known) problem remaining.
There is now a check target in the Makefile to run the NBS test suite. Thanks to Emmanuel Roche, I now have the entire NBS Minimal BASIC test suite. One glaring problem that the test suite automation made clear was the batch input using file redirection does not work. Also, two files that work fine with 32bit mode coredump in 64bit mode (test 93 and 95), which shows READ/DATA still needs some work. The latest snapshot does include all of this, as well as fixes for 64bit INPUT of numeric values, a bug in SGN() for 32 bit, a failure to notice EOF on INPUT, and more.
Testing revealed a bug in ON..GOTO expression handling code generation (was still using 32bit method even in 64bit mode). Also, the -s option to ecma55 was not working. These problems have been fixed.