From b30f4a9c34512384419f6ec14b7f3c0a49c18a48 Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 9 Jun 2010 19:26:27 +0200 Subject: [PATCH] README.md tweaks --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a4bd77b..6577fbe 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ PEG.js is a parser generator for JavaScript based on the [parsing expression gra Features -------- - * Usable [via an online generator](http://pegjs.majda.cz/online), from JavaScript code or [from a command-line](http://pegjs.majda.cz/documentation#generating-a-parser) + * Usable [from your browser](http://pegjs.majda.cz/online), from JavaScript code, or [from a command-line](http://pegjs.majda.cz/documentation#generating-a-parser) * Simple and expressive [grammar syntax](http://pegjs.majda.cz/documentation#grammar) * No separate lexical analysis step — both lexical and syntactical analysis are handled by one tool * Handles wide class of grammars (superset of LL(*k*) and LR(*k*)) @@ -45,7 +45,7 @@ This command will create the parser from the `examples/arithmetics.pegjs` file a ### Using the Generated Parser -To use the generated parser, include the generated file (unless you built the parser straight from the JavaScript code using `PEG.buildParser`) and use the `parse` method on the parser object. This method accepts an input string and either returns the parse result (dependent on the actions you specified in the grammar) or throws `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. +To use the generated parser, include the generated file (unless you built the parser straight from the JavaScript code using `PEG.buildParser`) and use the `parse` method on the parser object. This method accepts an input string and either returns the parse result (dependent on the actions you specified in the grammar) or throws `PEG.grammarParser.SyntaxError` exception if the input contains a syntax error. The exception has properties `message`, `line` and `column`, which contain details about the error. The parser object also has the `toSource` method that returns its textual representation.