Repository navigation
FerroBASIC 0.0.7 (pre-alpha)
Pre-release
Pre-release
M1 is complete: FerroBASIC now has an interactive REPL and a language server, and recording run 21 (B4J 10.70, OpenJDK 19, Windows 10) answered the last pending tests.
Tools:
ferro replstarts an interactive Level 0 session. It runs statements, prints expressions, and accepts multiline blocks, Subs andTypes. Variables and definitions persist between submissions, and:help,:cancel,:resetand:quitare control lines. Piped input works too. Walkthrough in docs/tutorial.md, section 9.ferro lspis a language server over stdio that publishesferro check's diagnostics for open buffers, one module at a time. docs/language-server.md shows how to connect VS Code (through a generic LSP client) and Neovim.
Runtime, as in B4J:
- A value held in an
Objectconverts through its text, as B4J'sBA.ObjectTo*helpers do:Null, aListor aMapto a number raiseNumberFormatException;"1.5"toLongraises it too; a non-boolean toBooleanraises "Cannot parse"; toCharit takes the first character.
Language, as in B4J:
- An untyped
For EachinProcess_Globalsover aType's name declares anObjectvariable. - A
For Eachover a collection typedObjectis a build error.
Recorded from B4J:
- 287 conformance tests: 281 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:
- The REPL has no history or line editing; the language server gives diagnostics only, with no completion or hover, and there is no editor extension.
- Classes, other modules, libraries other than jCore,
DateTime,SleepandWait Forarrive at later levels.
Build from source with cargo build --release -p ferro-cli.