Difference between revisions of "Lexers Parsers"
(Links for different D parsers and lexers.) |
m (→Standalone Parsers) |
||
Line 10: | Line 10: | ||
* [http://dsource.org/projects/scrapple/browser/trunk/dparser Benjamin Shropshire's dparser]. | * [http://dsource.org/projects/scrapple/browser/trunk/dparser Benjamin Shropshire's dparser]. | ||
+ | * [https://github.com/Hackerpilot/Dscanner Brian Schott Dscanner] does D source code analysis and contains a lexer+parser. | ||
== Parser Generators == | == Parser Generators == |
Revision as of 21:46, 20 January 2013
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.