From db4cc71f2cd15784afcc609e90ade7c0f0f6c32e Mon Sep 17 00:00:00 2001 From: David Majda Date: Sat, 17 Apr 2010 11:52:36 +0200 Subject: [PATCH] README.md: Fixed formatting. --- README.md | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) 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.