Difference between revisions of "Lexers Parsers"

From D Wiki
Jump to: navigation, search
(verb conjugation)
Line 27: Line 27:
 
== Parsers and Lexers Inside Compilers ==
 
== Parsers and Lexers Inside Compilers ==
  
* [https://github.com/bhelyer/SDC SDC], the Stupid D Compiler also have a [https://github.com/bhelyer/SDC/blob/master/src/sdc/lexer.d lexer] and a [https://github.com/bhelyer/SDC/tree/master/src/sdc/parser parser] and code for [https://github.com/bhelyer/SDC/tree/master/src/sdc/ast abstract syntax trees].
+
* [https://github.com/bhelyer/SDC SDC], the Stupid D Compiler also has a [https://github.com/bhelyer/SDC/blob/master/src/sdc/lexer.d lexer] and a [https://github.com/bhelyer/SDC/tree/master/src/sdc/parser parser] and code for [https://github.com/bhelyer/SDC/tree/master/src/sdc/ast abstract syntax trees].
  
 
* [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].
 
* [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].

Revision as of 07:14, 21 December 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