Difference between revisions of "Lexers Parsers"

From D Wiki
Jump to: navigation, search
(Updated link to std.d.parser)
m (Parsers and Lexers Inside Compilers: update external link)
Line 28: Line 28:
  
 
== Parsers and Lexers Inside Compilers ==
 
== Parsers and Lexers Inside Compilers ==
* [http://code.google.com/p/dil/ Aziz Koeksal's DIL], another D compiler based on Tango. You can find the lexer in [https://github.com/azizk/dil/tree/master/src/dil/lexer src/dil/lexer], the parser in [https://github.com/azizk/dil/tree/master/src/dil/parser src/dil/parser] and the abstract syntax tree code in [https://github.com/azizk/dil/tree/master/src/dil/ast src/dil/ast].
+
* [https://github.com/azizk/dil Aziz Koeksal's DIL], another D compiler based on Tango. You can find the lexer in [https://github.com/azizk/dil/tree/master/src/dil/lexer src/dil/lexer], the parser in [https://github.com/azizk/dil/tree/master/src/dil/parser src/dil/parser] and the abstract syntax tree code in [https://github.com/azizk/dil/tree/master/src/dil/ast src/dil/ast].
 +
 
 +
[[Category:Tools]]

Revision as of 12:56, 19 June 2018

Here are a few lexers and parsers for the D programming languages:

Standalone Lexers

Standalone Parsers

  • 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.
  • 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