Hacker News
Show HN: Yantra – an LALR(1) parser generator for C++
Yantra is a C++ parser generator that produces a lexer, parser, and AST walker from a single grammar file. It builds the entire AST first, then walks it top-down, allowing parent actions to execute before children and enabling multiple walkers (e.g., C++ or Java code emitters) from the same parse. The tool includes an integrated lexer with mode support, optional single-file output, and targets C++23 under an MIT license.