Hi,
I don't know if bison supports this as such. I believe its been in the wish
list, to have a statement that would be executed at the start of every
action. We have nothing more than %initial-action. But you could do this
with the following macros.
#define CURB_ACTION 0 // Depending on if u wa
One way is to comment out all actions in the generated parser. This is very
easy since they are all bunched together in a switch statement under the
label "yyreduce:". If you search for this label in generated parser file (
xyz.tab.c) the code should look something like this:
switch(yyn)
{
...
Hi all,
I've developed a parter with flex/bison and I would like to find a
simple way to check how long it takes to parse the file without
executing the actions. Is there an option I can enable to ignore
actions?
Regards,
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk