Reduce if you can behavior wanted

2006-04-28 Thread Derek M Jones
All, I am trying to parse C declaration one at a time, calling yyparse for each one in turn. For this to work I need yyparse to stop reading in tokens after the last token of the declaration currently being processed. The obvious solution is to set a flag in one of the actions (ie, seen_decl in

License?

2006-04-28 Thread Steve Murphy
Hello-- I notice that the parser generated by bison for C has the following exception: /* As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. This special exception was added by the Free Software Foundation

2.1 C++ documentation

2006-04-28 Thread Steve Murphy
Hello-- A nit about the Bison manual for 2.1: First, in section 10.1.1 of the bison info manual, it says that if you use the lalr1.cc skeleton, you'll get a list of files. This isn't totally correct. It doesn't mention that you have to call your grammar "something.yy" to get the list of files m