Repository navigation
FerroBASIC 0.1.1 (pre-alpha)
Pre-release
Pre-release
A patch release on the way to M2, classes and events. Recording runs 22 and 23 settle how And and Or rank against comparisons and where In and Each can be names. Case handling now follows JDK 19's Unicode 14 data and word boundaries. On macOS, ferro bundle no longer writes binaries that crash at start-up.
Tools:
- On macOS,
ferro bundleno longer writes a binary that crashes at start-up ("illegal hardware instruction") when theferroexecutable has little Mach-O header space, as debug builds on macOS 27 do.ferrois linked with spare header space, andferro bundlereports an error instead of writing such a binary (#131). ferro-recorderrecords the original toolchain's refusal of a pending probe, and reports it for a decision on whether the probe becomes a negative test.
Runtime:
EqualsIgnoreCase,SortCaseInsensitiveandSortTypeCaseInsensitiverecognize supplementary Unicode case pairs, including Deseret. Case-insensitive comparison andToUpperCase/ToLowerCaseuse Unicode 14 case data, as JDK 19 does (#115). The data comes from the Unicode Character Database 14.0.0 under the Unicode License v3 (Unicode-3.0), credited in THIRD-PARTY-NOTICES.txt.ToLowerCasechooses the final sigmaςby JDK 19's word boundaries rather than Unicode's context:"A1Σ"lowercases toa1ςand"A:Σ"toa:σ(#140).
Recorded from B4J:
- Comparisons bind tighter than
AndandOr(#127). InandEachcan name locals, module variables, parameters, Subs andFor Eachvariables.Eachcannot be a counted-loop variable, even when declared first or given a type (#137).- 306 conformance tests (B4J 10.70, OpenJDK 19, Windows 10): 300 pass against recordings, in the interpreter and as standalone binaries; 6 are documented deviations; none pending.
Details in CHANGELOG.md; known differences from B4J (D1, D3–D7) in docs/deviations.md.
Known limitations:
- Classes, other modules, libraries other than jCore,
DateTime,SleepandWait Forarrive at later levels (M2 onward). - The REPL cannot load a file or interrupt a running program without ending it; the language server gives diagnostics only, and there is no editor extension.
- REPL line editing was tested by hand on macOS and Windows only; automated terminal tests run on Linux only.
Build from source with cargo build --release -p ferro-cli.