in reply to Parse::RecDescent and need for speed
Without seeing your language, grammar, or parser, I can't give any specific advice. In perl top-down parsers, nonterminals in your grammar generally correspond to functions and terminals to regular expressions. So eating comments should be a pretty fast operation. An excellent book on parsers and compilers is Compilers: Principles, Techniques, and Tools, by Aho, Sethi and Ullman.
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse::RecDescent and need for speed
by merlyn (Sage) on Feb 16, 2005 at 01:03 UTC | |
by Anonymous Monk on Feb 16, 2005 at 10:11 UTC | |
by merlyn (Sage) on Feb 16, 2005 at 13:36 UTC | |
by Anonymous Monk on Feb 16, 2005 at 14:41 UTC | |
by merlyn (Sage) on Feb 16, 2005 at 15:04 UTC | |
by Anonymous Monk on Feb 16, 2005 at 16:38 UTC | |
by merlyn (Sage) on Feb 16, 2005 at 17:49 UTC |