Difference between revisions of "Lexers Parsers"

From D Wiki
Jump to: navigation, search
m (Add dunnart to list of parser generators)
Line 5: Line 5:
 
* [https://github.com/dawgfoto/lexer Martin Nowak's lexer]
 
* [https://github.com/dawgfoto/lexer Martin Nowak's lexer]
  
 +
* [https://github.com/Hackerpilot/Dscanner/blob/range-based-lexer/std/d/lexer.d (Possibly) the future std.d.lexer]
  
 
== Standalone Parsers ==
 
== Standalone Parsers ==
Line 10: 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 Brian Schott Dscanner] does D source code analysis and contains a lexer+parser.
+
* [https://github.com/Hackerpilot/Dscanner/blob/range-based-lexer/std/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
  
 
== Parser Generators ==
 
== Parser Generators ==

Revision as of 23:11, 31 May 2013

Here are a few lexers and parsers for the D programming languages, all written in D:

Standalone Lexers

Standalone Parsers

Parser Generators

  • Hisayuki Mima's CTPG is a compile-time parser generator.
  • 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