Lexers Parsers
Revision as of 13:06, 16 July 2020 by WebFreak001 (talk | contribs) (update libdparse links & bump up for most activity)
Here are a few lexers and parsers for the D programming languages:
Contents
Standalone Lexers
Standalone Parsers
- libdparse. Used by DCD, D-Scanner and dfmt.
- Alexander Bothe's DParser 2. Written in C# and used in Mono-D
- DTool/DDT parser . Part of the DTool project (which has semantic functionality as well). Written in Java and powers DDT. Fairly complete.
Parser Generators
- Hisayuki Mima's CTPG is a compile-time parser generator.
- Nick Sabalausky's Goldie.
- Pegged, a parsing expression grammar (PEG) generator by Philippe Sigaud. Parses at runtime and compile-time.
- Dunnart, a parser generator with built in lexical analysis.
Parsers and Lexers Inside Compilers
- Aziz Koeksal's DIL, another D compiler based on Tango. You can find the lexer in src/dil/lexer, the parser in src/dil/parser and the abstract syntax tree code in src/dil/ast.