Version française
Home     About     Download     Resources     Contact us    
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:
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