[aspectc-user] Puma: parser can't parse itself

vimml at selgrad.org vimml at selgrad.org
Tue May 5 00:34:26 CEST 2009


Hello all!

I was using Puma in my spare time lately and it works great with my
examples so far. After I tried a larger example (a few hundred lines of
code + stl) I got parse errors.

I took a step back and looked at examples/parser/parser.cc again. It
turns out, that the generated program can't parse its own source.
The output ist:
 $ ./parser parser.cc 
 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/cpp_type_traits.h:357: error: invalid declaration near token `template'
 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/cpp_type_traits.h:370: error: invalid declaration near token `template'
 /usr/local/include/Puma/UnitState.h:57: error: invalid declaration near token `template'
 /usr/local/include/Puma/UnitState.h:59: error: invalid declaration near token `template'
 /usr/local/include/Puma/PragmaOnceUnitState.ah:136: error: invalid declaration near token `template'
 /usr/local/include/Puma/UnitState.h:166: error: invalid statement near token `AC'
 /usr/local/include/Puma/UnitState.h:199: error: invalid statement near token `AC'
 /usr/local/include/Puma/Syntax.h:57: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:59: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:61: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:63: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:65: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:67: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:69: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:71: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:73: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:75: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:77: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:79: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:81: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:83: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:85: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:87: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:89: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:91: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:93: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:95: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:97: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:99: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:101: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:103: error: invalid declaration near token `template'
 /usr/local/include/Puma/Syntax.h:105: error: invalid declaration near token `template'
 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_tree.h:396: error: invalid member declaration near token `template'
 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_tree.h:812: error: `_M_insert' is not a member of `_Rb_tree'
 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_tree.h:1461: error: `__rb_verify' is not a member of `_Rb_tree'
 /usr/local/include/Puma/Syntax.h:301: error: invalid statement near token `AC'
 /usr/local/include/Puma/ExtGnu.ah:714: error: invalid declaration near token `template'
 /usr/local/include/Puma/CSemantic.h:206: error: invalid statement near token `AC'

The version i use is of around april, 5th (at least this is the date
gen-debug was last changed).

Do you have any ideas how to get around this? Newer gcc? Puma update? Hacks? ;)

Thanks,
	Kai


-- 
All mail clients suck. This one just sucks less.



More information about the aspectc-user mailing list