Repository navigation
FerroBASIC 0.0.4 (pre-alpha)
Pre-release
Pre-release
Level 0 checked against B4J itself: every passing conformance test now matches an output recorded from B4J 10.70 (OpenJDK 19, Windows 10), and the compatibility report says how close FerroBASIC is.
Recorded from B4J:
- The new recorder (
tools/recorder) builds and runs each test with B4J and keeps its output. 95 tests pass against recordings, none against hand-derived outputs any more; 6 are documented deviations and 4 wait for the next recording run.
Language, as in B4J:
- Names follow B4J's rules: a loop variable may have a Sub's name (and every use then calls the Sub), while a
Dimor a typedForwith a Sub's name is an error; a localDimwith a module variable's name and type is that variable; a parameter cannot hide a module variable. - A
Forwith an undeclared counter, andFor Each v As T, work inProcess_Globals. - A comment may follow a line continuation.
- Arithmetic in an operand of
&("x" & 1 + 2) asks for parentheses; a main module withoutSub Process_Globals, or an array of 2 dimensions or more where aListis expected, is an error. Const,x Is T,Wait Forand inline Java get one precise error each.
Runtime, as in B4J:
Nullas aStringis the text "null"; records print a line break after every third field.SortTypetakes the field from the first item;LastExceptionis the innermost cause; changes through a staleSubListview raiseUnsupportedOperationException(#21).
Testing and tools:
ferro-difftestruns the conformance tests in the interpreter or as standalone binaries and prints the compatibility report, by level and feature.- A real-world corpus of six open source B4J console projects, referenced by URL, commit, licence and SHA-256 (never copied) and fetched for its tests: every source round-trips through the lossless syntax tree.
Details in CHANGELOG.md; known differences from B4J (D1–D7) in docs/deviations.md.
Known limitations:
Constis not supported yet (#33).- Number literals with no leading digit (
.08) are a syntax error. - Classes, other modules, libraries other than jCore,
DateTime,SleepandWait Forarrive at later levels.
Build from source with cargo build --release -p ferro-cli.