chriswailes / RLTK

The Ruby Language Toolkit
http://chriswailes.github.io/RLTK/
University of Illinois/NCSA Open Source License
453 stars 35 forks source link

A more complete example for error production #36

Open oddg opened 9 years ago

oddg commented 9 years ago

I am trying to use the error production feature for handling typos in a really simple context-free grammar. Could you please give a more advanced example?

chriswailes commented 9 years ago

RLTK's error handling is modeled after the error handling mechanisms in the Menhir parser generator for OCaml. I'll try and add some more examples, but I'm pretty busy at the moment so I don't know when that is going to be. Until then, I recommend this document gives a pretty good description of what happens under the "Error Handling" section.

Though, if you have specific questions I can try and answer them.

oddg commented 9 years ago

I'll have a look into it. Merci