Re: Disabling Actions

2006-10-15 Thread Ramaswamy R
if u want to enable / disable actions #define ON_ACTION_START if ( CURB_ACTION ) return yyok and add this statement as the 1st in every action (its painful but one-time effort) - ON_ACTION_START; This should help in enabling / disabling actions as and when required :). Hope this helps. Re

Re: Disabling Actions

2006-10-15 Thread Satya
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) { ...

Disabling Actions

2006-10-15 Thread Paulo J. Matos
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