|Grammar translator email@example.com (firstname.lastname@example.org) (2006-03-11)|
|Re: Grammar translator email@example.com (Bob Sheff) (2006-03-16)|
|Re: Grammar translator firstname.lastname@example.org (email@example.com) (2006-03-27)|
|Date:||11 Mar 2006 23:35:54 -0500|
|Posted-Date:||11 Mar 2006 23:35:54 EST|
We all spend so much time converting our grammars from one format to
another, such as from Yacc to SableCC formats. Has anyone looked at
ways to do this automatically?
I understand that not all grammars are directly translatable. For
example, going from LR to LL is not a trivial task, and not always
possible. But going from LR to LR should be simple. Action code could
get thrown away or just copied and pasted for editing by hand, but
that's annotation and not core to the grammar. Ttranslating the
grammar itself should be automatable.
Does anyone know of a tool which does this? In particular, I'm looking
for an automatic translation from Flex/Bison to SableCC.
Would appreciate any comments.
[I've seen ad-hoc hacks written in things like sed or perl. -John]
Return to the
Search the comp.compilers archives again.