Yantra
github.com · Open source · Active
C++ parser generator that builds the full AST before walking it
- Developer tools
- Open source
- C++
- Day-7 check
- Day-30 check
- parser generator
- lalr
- ast
- c parser generator
- lalr parser generator
- compiler compiler cpp
- ast walker generator
- lexer generator c
- Stars
- 24
- Forks
- 4
- Open issues
- 3
- Last commit
- Releases
- 6
- Found
- 2 months ago
GitHub figures as of . They are context, not a ranking.
Yantra is a C++ parser generator that produces the lexer, parser and AST walker from one tool. It builds the whole syntax tree first and then calls semantic actions in a top-down walk, which suits compiler builders who find bottom-up actions limiting.
Positioned as an alternative to Yacc, Bison, Lemon.
Repository description on GitHub: “A C++ parser generator: lexer, parser, and AST generation in one tool.”
What it does
- Lexer, LALR(1) parser and AST walker generated from one tool
- Builds the full AST before running top-down semantic actions
- Built-in UTF-8 input support
- Push-based parser that takes input one character at a time
- Optional amalgamated single-file output
Good for
- Generate a C++ parser for a small language from one grammar
- Parse streamed input from a socket as it arrives
- Walk a syntax tree top-down to run semantic actions
Suits: Compiler builders who find bottom-up parser actions limiting.
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw Yantra on , when renjipanicker posted it to Show HN. The oldest published release on GitHub is v0.2.0, dated . Yantra had been shipping tagged releases for 333 days before it was found. 6 releases have been published in total; the latest is v0.5.1 ().
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 33 points, 17 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 33 points, 17 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: TantrixAuto/yantra
- Release v0.2.0
- Release v0.2.1
- Release v0.3.0
- Release v0.4.0
- Release v0.5.0
- Release v0.5.1
- Found: renjipanicker posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was Yantra released?
- Its first tagged release on GitHub is dated 1 Nov 2025. Kip found it on Show HN on 1 Oct 2026.
- Is Yantra open source?
- Its source is public on GitHub at TantrixAuto/yantra under the MIT licence.
- What does Yantra run on?
- Library.
- Is Yantra free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is Yantra still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | TantrixAuto/yantra REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-49916997. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.