|
From: | Satya |
Subject: | Re: Disabling Actions |
Date: | Sun, 15 Oct 2006 19:56:41 -0500 |
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 <address@hidden> 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 _______________________________________________ address@hidden http://lists.gnu.org/mailman/listinfo/help-bison
[Prev in Thread] | Current Thread | [Next in Thread] |