|
From: | Hans Aberg |
Subject: | Re: One-pass interpreter on bison. |
Date: | Sun, 5 Mar 2006 15:06:15 +0100 |
On 1 Feb 2006, at 10:54, Daniel Wasserhaus wrote:
Is it possible to build an one-pass parser with bison??
This is what the Bison generated parser normally does, passing through the input tokens fed to it each once.
Or....is it possible to make its parser jump (discard) from a '{' to another'}' without executing the sentences that are into those brackets??
The normal thing is to let the lexer (say generated by Flex) do such exclusions. It is common to do this with comments. These are then not fed to the parser at all, or perhaps as a single token of some post- processing is needed.
Hans Aberg
[Prev in Thread] | Current Thread | [Next in Thread] |