Skip to content

FerroBASIC 0.0.7 (pre-alpha)

Pre-release
Pre-release

Choose a tag to compare

@FeliceMente FeliceMente released this 08 Nov 16:08
· 140 commits to main since this release
b77783c

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 repl starts an interactive Level 0 session. It runs statements, prints expressions, and accepts multiline blocks, Subs and Types. Variables and definitions persist between submissions, and :help, :cancel, :reset and :quit are control lines. Piped input works too. Walkthrough in docs/tutorial.md, section 9.
  • ferro lsp is a language server over stdio that publishes ferro 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 Object converts through its text, as B4J's BA.ObjectTo* helpers do: Null, a List or a Map to a number raise NumberFormatException; "1.5" to Long raises it too; a non-boolean to Boolean raises "Cannot parse"; to Char it takes the first character.

Language, as in B4J:

  • An untyped For Each in Process_Globals over a Type's name declares an Object variable.
  • A For Each over a collection typed Object is 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, Sleep and Wait For arrive at later levels.

Build from source with cargo build --release -p ferro-cli.