STCC is an Ada rewrite of Jamie Kyle's well known teaching project, The Super Tiny Compiler. The original is a short JavaScript codebase that walks the reader through the parts every compiler has, namely a tokenizer, a parser, a transformer, and a code generator. This repository takes that same exercise and reimplements it in Ada. The input language is tiny. You write something that looks like a Lisp expression, for example (add 2 (subtract 4 2)), and the compiler turns it into a function call in the style of C or JavaScript, for example add(2, subtract(4, 2)). That conversion is the whole job of the program. There are no variables, control flow, types, or other compiler concerns. The README shows two ways to run it. From a built release you can execute the stcc binary directly and feed it an expression. If you have Tada installed, which is an Ada build and package tool the README links to at tada.pm, you can use tada run instead, and tada test to run the test suite. The README is intentionally short. The author has added one note at the bottom that says the codebase was written by hand, which is a small but pointed remark given how much code these days is produced by AI tools. Beyond that, there is no license text, no architecture write up, and no installation guide for Ada itself in the README. The repository topics list it as Ada, compiler, parser, code generation, and programming language theory.
Generated 2026-05-21 · Model: sonnet-4-6 · Verify against the repo before relying on details.