www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - D lexical analyzer?

reply "seany" <seany uni-bonn.de> writes:
For C genre we have Flex and Bison, what is the equivalent in D?
Nov 26 2013
parent reply =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
On 11/26/2013 01:16 PM, seany wrote:
 For C genre we have Flex and Bison, what is the equivalent in D?
There is pegged: https://github.com/PhilippeSigaud/Pegged Ali
Nov 26 2013
parent Philippe Sigaud <philippe.sigaud gmail.com> writes:
There is also Nick's Goldie:

http://www.semitwist.com/goldie/

Also, std.lexer was recent reviewed, with some things to change. I
hope its author will present it again soon.

There are many D parsers/lexers there, but they are specifically
designed to lex and parse D.

Also, Ragel can generate D source code:

http://www.complang.org/ragel/
Nov 26 2013