Difference between revisions of "Lexers Parsers"
(Removed SDC's lexer and parser links due to 404 errors. Could not find replacement.) |
(Updated link to DScanner's parser) |
||
Line 11: | Line 11: | ||
* [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/blob/ | + | * [https://github.com/Hackerpilot/Dscanner/blob/master/stdx/d/parser.d (Possibly) the future std.d.parser]. VERY INCOMPLETE |
* [https://github.com/aBothe/D_Parser/tree/master/DParser2 Alexander Bothe's DParser 2]. Written in C# and used in Mono-D | * [https://github.com/aBothe/D_Parser/tree/master/DParser2 Alexander Bothe's DParser 2]. Written in C# and used in Mono-D |
Revision as of 00:48, 27 February 2014
Here are a few lexers and parsers for the D programming languages, all written in D:
Contents
Standalone Lexers
Standalone Parsers
- (Possibly) the future std.d.parser. VERY INCOMPLETE
- Alexander Bothe's DParser 2. Written in C# and used in Mono-D
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.