Jovial J73 Compiler is a project for compiling programs written in JOVIAL, a language standardized as MIL-STD-1589 and developed for military and embedded systems. It supports core J73 constructs, including variables, procedures, tables, status enumerations, input and output, and can produce native executables through LLVM. It also offers C source, LLVM intermediate representation, object files, and abstract syntax tree dumps. The documented examples illustrate JOVIAL conventions such as single-quoted strings, semicolon-terminated statements, 1-based array indexing, apostrophes in identifiers, and the use of TERM to close a program.
The compiler uses a Logos lexer, recursive-descent parser, semantic analysis with symbol tables and type checking, LLVM code generation, and a linker to create executables. Building from source requires stable Rust and LLVM 18; prebuilt packages are listed for Windows and Linux x64 and macOS ARM. The project aims to preserve computing history, explore military aviation software, and offer a way to work with legacy JOVIAL code, while also providing language-server support through a related project. Its author describes the current implementation as a Rust learning project that depends heavily on LLVM and says a C rewrite is under consideration, since that dependency is poorly suited to embedded environments. The project is released under Apache 2.0.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.