How to generate parser from *.l and *.y files?

K

kj

I have input files for lex and yacc (tok.l and gram.y). I
could use lex and yacc to generate a parser from these files, but
the generated code would be C. Is there a way to directly generate
Perl code from these files?

(I'm aware of Parse::RecDescent, but the grammar in gram.y is
voluminous (the file is almost 1MB in size), and it would take me
forever to translate it to one that Parse::RecDescent can understand...
unless, of course, there is an automated means to perform such
translation.)

TIA!

kj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top