Skip to content

Commit

Permalink
Small README note on error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yorick Peterse committed Feb 15, 2015
1 parent 80b33cf commit 22b6081
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ parsing simply call the `parse` method:
The return value of this method is whatever the root rule (= the first rule
defined) returned.

## Error Handling

Parser errors are handled by `LL::Driver#parser_error`. By default this method
raises an instance of `LL::ParserError` with a message depending on the current
parser context and input. If you want to customize this behaviour simply
overwrite the method (e.g. in an `%inner` block).

## Grammar Syntax

The syntax of a ruby-ll grammar file is fairly simple and consists out of
Expand Down

0 comments on commit 22b6081

Please sign in to comment.