hn.today

Jovial J73 Compiler

github.com43 points18 comments
Screenshot of Jovial J73 Compiler

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.

Read on github.com18 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Go

Laravel Go

Laravel for Go is a full-stack web framework with routing, validation, database tools, background jobs, workflows, and real-time events. It also supports Inertia for frontend integration and is open source under the MIT license. (github.com)

Laravel Go

Laravel Go

Laravel Go is a batteries-included Go framework that combines routing, data access, authentication, queues, workflows, and other features in one package. It uses standard Go patterns and Inertia to serve React, Vue, or Svelte pages without separate API boilerplate. (laravel.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.