Hendrik Tews writes:
> Dear all,
>
> does anybody know about a C++ frontend (lexer + parser + ...) for ocaml?
ocamlyacc syntax being the same as yacc's (regardless the actions),
you can re-use any yacc grammar for C++. Even a (f)lex lexer for C++
is of interest, giving you the regular expressions.
A bit of searching on the web will bring you many lex/yacc grammars
for C++, as for instance this one following the ISO standard:
http://www.sigala.it/sandro/software.html#grammars
Hope this helps,
--
Jean-Christophe Filliatre (http://www.lri.fr/~filliatr)
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr