Lexers Parsers
Here are a few lexers and parsers for the D programming languages, all written in D:
Contents
Standalone Lexers
Standalone Parsers
- Brian Schott Dscanner does D source code analysis and contains a lexer+parser.
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.
Parsers and Lexers Inside Compilers
- SDC, the Stupid D Compiler also have a lexer and a parser and code for abstract syntax trees.
- 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.