Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] C++ grammar for ocamlyacc
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@l...>
Subject: Re: [Caml-list] C++ grammar for ocamlyacc

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:

Hope this helps,
Jean-Christophe Filliatre (

Bug reports:  FAQ:
To unsubscribe, mail  Archives: