Re: Parsers with Pre-processors

2003-07-17 Thread Luke Palmer
> I've been re-reading A5 (regexen), and I was trying to work out how to > incorporate a preprocessor into regex, without a separate lexer. I came > to the conclusion that preprocessor commands are part of the whitespace > in the higher layer of the grammer. So we just need to define the > rul

Parsers with Pre-processors

2003-07-17 Thread Dave Whipp
I've been re-reading A5 (regexen), and I was trying to work out how to incorporate a preprocessor into regex, without a separate lexer. I came to the conclusion that preprocessor commands are part of the whitespace in the higher layer of the grammer. So we just need to define the rule appropri