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)
{
  ... /* your actions for each rule */
}

just comment out this switch statement and compile the C file. As far as I
know, there is no option to generate only the parser without actions.

./satya.

On 10/15/06, Paulo J. Matos <[EMAIL PROTECTED]> wrote:

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/pocm
PhD Student @ ECS
University of Southampton, UK


_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison

_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to