Writing a JFlex lexer for D - have an issue with cycles

Chris Wright via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 22 17:40:28 PST 2017


On Mon, 23 Jan 2017 00:46:30 +0000, Profile Anaysis wrote:
> But this is ok because parsers are recursive in nature, so you just have
> to have your rule be able to terminate in a logical way.

Except it's part of the lexer, and most people (such as those creating the 
JFlex lexer generator) assume that no lexer needs to be recursive.


More information about the Digitalmars-d mailing list