diff --git a/README.md b/README.md index db9527e..f9bb92f 100644 --- a/README.md +++ b/README.md @@ -31,28 +31,28 @@ This command will create the parser from the `examples/arithmetics.pegjs` file a To use the parser in a web page, follow the following example: - - - Arithmetics Parser Example - - + - - - - -
- + + + + + +
+ The `parse` method of the generated parser will return either the result of the parsing (dependent on the actions you specified in the grammar) or throw `PEG.Parser.SyntaxError` exception if the input contains a syntax error. The exception has properties `message`, `line` and `column`, which contain details about the error.