Difference between revisions of "Lexers Parsers"

From D Wiki
Jump to: navigation, search
m (Parsers and Lexers Inside Compilers: update external link)
(update libdparse links & bump up for most activity)
 
Line 2: Line 2:
  
 
== Standalone Lexers ==
 
== Standalone Lexers ==
 +
 +
* [https://github.com/dlang-community/libdparse/blob/master/src/std/experimental/lexer.d libdparse std.experimental.lexer]
  
 
* [https://github.com/dawgfoto/lexer Martin Nowak's lexer]
 
* [https://github.com/dawgfoto/lexer Martin Nowak's lexer]
  
* [https://github.com/Hackerpilot/libdparse/blob/master/src/std/d/lexer.d (Possibly) the future std.d.lexer]
+
== Standalone Parsers ==
  
== Standalone Parsers ==
+
* [https://github.com/dlang-community/libdparse/ libdparse]. Used by DCD, D-Scanner and dfmt.
  
 
* [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/libdparse/blob/master/src/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
 
* [https://github.com/aBothe/D_Parser/tree/master/DParser2 Alexander Bothe's DParser 2]. Written in C# and used in Mono-D

Latest revision as of 13:06, 16 July 2020

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