Build software better, together
parser-generator
StarA grammar describes the syntax of a programming language, and might be defined in Backus-Naur form (BNF). A lexer performs lexical analysis, turning text into tokens. A parser takes tokens and builds a data structure like an abstract syntax tree (AST). The parser is concerned with context: does the sequence of tokens fit the grammar? A compiler is a combined lexer and parser, built for a specific grammar.
Here are 546 public repositories matching this topic...
Language: All Sort: Most starsantlr / antlr4
Star 19.1kANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
javascript python java dart swift golang php parse csharp parsing cpp parser-generator grammar antlr antlr4 language-recognition- Updated Oct 30, 2026
- Java
pegjs / pegjs
Star 4.9kPEG.js: Parser generator for JavaScript
javascript parser-generator pegjs peg- Updated Nov 8, 2021
- JavaScript
lalrpop / lalrpop
Star 3.5kLR(1) parser generator for Rust
rust parser-generator grammar- Updated Oct 19, 2026
- Rust
kevinmehall / rust-peg
Sponsor
Star 1.6k
Parsing Expression Grammar (PEG) parser generator for Rust
rust parsing parser-generator grammar peg parsing-expression-grammars- Updated Nov 30, 2026
- Rust
yhirose / cpp-peglib
Star 1.1kA single file C++ header-only PEG (Parsing Expression Grammars) library
c-plus-plus parsing cpp parser-generator header-only cpp17 peg parsing-expression-grammars- Updated Nov 6, 2026
- C++
mna / pigeon
Sponsor
Star 924
Command pigeon generates parsers in Go from a PEG grammar.
parser parser-generator peg- Updated Nov 24, 2026
- Go
ianh / owl
Star 808A parser generator for visibly pushdown languages.
parsing parser-generator- Updated Aug 21, 2026
- C
BNFC / bnfc
Star 634BNF Converter
parser-generator pretty-print bnf lexer-generator grammar-specification bnfc abstract-syntax-tree bnf-converter- Updated Jun 29, 2026
- TeX
ruby / racc
Star 570Racc is an LALR(1) parser generator. It is written in Ruby itself, and generates ruby programs.
parser-generator lalr-parser-generator- Updated Nov 27, 2026
- Yacc
antlr / intellij-plugin-v4
Star 495An IntelliJ plugin for ANTLR v4
parser intellij parser-generator antlr intellij-plugin antlr4 grammar-interpreter- Updated Aug 27, 2026
- Java
peter-winter / ctpg
Sponsor
Star 489
Compile Time Parser Generator is a C++ single header library which takes a language description as a C++ code and turns it into a LR1 table parser with a deterministic finite automaton lexical analyzer, all in compile time.
c-plus-plus regex lr-parser parser-generator grammar header-only cpp17 compile-time lookahead lr1 compiler-compiler lr1-parser- Updated Sep 3, 2024
- C++
usethesource / rascal
Sponsor
Star 465
The implementation of the Rascal meta-programming language (including interpreter, type checker, parser generator, compiler and JVM based run-time system)
language interpreter compiler checker pattern-matching parser-generator static-analysis template-language repl reverse-engineering metaprogramming source-to-source code-generation standard-library domain-specific-language query-language relational-algebra term-rewriting refactoring-tools- Updated Dec 6, 2026
- Java
neogeny / TatSu
Sponsor
Star 451
竜 TatSu generates Python parsers from grammars in a variation of EBNF
python parser parser-library parser-generator grammar ast python3 ebnf walker- Updated Jul 10, 2026
- Python
arithy / packcc
Sponsor
Star 423
A parser generator for C
parser parser-generator peg compiler-compiler left-recursion packrat-parsing- Updated May 9, 2026
- C
b3b00 / csly
Star 415a C# embeddable lexer and parser generator (.Net core)
parser csharp parser-generator dot-net lexer lexer-generator expression-parser recursive-descent-parser grammar-rules mathematical-parser- Updated Nov 23, 2026
- C#
akimd / bison
Star 414GNU Bison
bison parser-generator gnu yacc- Updated Oct 25, 2022
- C
goffrie / plex
Star 413a parser and lexer generator as a Rust procedural macro
parser-generator lexer-generator- Updated Jun 4, 2024
- Rust
Water-Melon / Melang
Star 405A script language of time-sharing scheduling coroutine in single thread
mysql linux language programming-language unix json base64 interpreter cron parser-generator injection reactive-programming md5 rc4 lexer sha1 sha256 syntax-analysis script-language coroutine- Updated May 30, 2026
- C
zevv / npeg
Sponsor
Star 342
PEGs for Nim, another take
parser nim regex parser-generator grammar peg regular-expressions gerexp- Updated Aug 22, 2024
- Nim
ruby / lrama
Star 319Pure Ruby LALR parser generator
ruby parser bison parser-generator- Updated Dec 6, 2026
- Ruby
- Followers
- 10.9k followers
- Website
- github.com/topics/parsing
- Wikipedia
- Wikipedia