Error reporting in Racc

J

Jim Freeze

Hi

I think I finally have got a handle on parsing with
Racc, and let me say, this tool rocks.

However, I am having a little difficulty generating
human readable parse/syntax errors. I am using the #on_error
method, but all it receives are an internal symbol ID,
the symbol and part of the current stack.

I am tracking line numbers, but often the parser fails
several lines after the symbol that it passes
to #on_error.

Is there some docs on how to create clear error messages
with Racc?

Thanks
 

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

Similar Threads


Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top