I've never used this swig package, but have used the camlp4 grammar module. You probably have camlp4, so I'm guessing the issue is the syntax being used. You can check for camlp4 and the grammar module, find the camlp4 directory by,camlp4 -where
and see if that directory has, /Camlp4Parsers/Camlp4GrammarParser.[cmi|cmo|cmx|o]
If it's the syntax, I pulled up some code for a camlp4 grammar, and the expressions are structured slightly differently (I'm unsure if that format is invalid or not, but it's at least not how I've structured it before)
[[ | expr1 | expr2 ]]
should be
[ [ expr1] | [expr2] ]
nlucaroni
2010-10-26 14:45:18