 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Charles Mills
RE: Parse error for math.h [ reply ] 2004-11-01 15:48
|
OK, problem is fixed. Wasn't parsing macro functions with empty arguments, ie:
macro_func(arg,,,)
I will do a release shortly.
Also, I am not sure about the second problem you listed - that resulted in a back trace. Could you give more details?
-Charlie
|
By: Marc Verwerft
Parse error for math.h [ reply ] 2004-10-29 21:09
|
I created mytestdbc.ocl with just '#include <math.h>' in it. The parser fails at line 55 of bits/mathcalls.h
I stumbled upon this one trying to create 'contracts' for a file in a huge project, just to get a feeling for how this all works and behaves.
If I just rename the c file to a ocl file (and don't include any conditions), the parser also fails, giving this as a result:
src/preprocessor.y:626:in `parse': undefined method `error' for nil:NilClass (NoMethodError)
from /usr/local/lib/ruby/site_ruby/1.8/dbc/preprocessor.rb:171:in `parse_statement'
from /usr/local/lib/ruby/site_ruby/1.8/dbc/preprocessor.rb:153:in `shift'
from /usr/local/lib/ruby/site_ruby/1.8/dbc/preprocessor.rb:146:in `loop'
from /usr/local/lib/ruby/site_ruby/1.8/dbc/preprocessor.rb:158:in `shift'
from /usr/local/lib/ruby/site_ruby/1.8/dbc/ctokenizer.rb:232:in `shift'
from /usr/local/lib/ruby/site_ruby/1.8/dbc/dbc.rb:159:in `shift'
from /usr/local/lib/ruby/site_ruby/1.8/dbc/dbc.rb:195:in `shift'
from /usr/local/lib/ruby/site_ruby/1.8/dbc/ctokenizer.rb:232:in `shift'
... 8 levels...
from /usr/local/lib/ruby/site_ruby/1.8/racc/parser.rb:104:in `do_parse'
from src/ctype.y:1119:in `parse'
from /usr/local/lib/ruby/site_ruby/1.8/dbc/dbc.rb:53:in `parse'
from /usr/local/bin/dbcparse.rb:243
Is there any limit to the number of files the parser can hold?
How can I go about figuring out what goes wrong?
Regards,
Marc
|
|
 |