Skip to content

Commit

Permalink
release 0.5.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahar Soel committed Jan 11, 2016
1 parent 66b2270 commit 044d1c9
Show file tree
Hide file tree
Showing 10 changed files with 477 additions and 231 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -50,8 +50,8 @@ deploy:
api_key:
secure: DNq1wbqLPHVpJPDx9O89HZM+RJB6v2R7/wk8pok7Z8NT72kUWdvbqcThGhczPO4sZ8cUTJ3ergTCE8hs9mynlR/lX6932U4fj4+uICQL9+G+deBB/t2SNyTBllkE64WrJ9BKmQvIk/Chh7ZJOM0Fro3p2BIq3JsVnfYg1tZ3U5o=
file:
- package/chevrotain-binaries-0.5.13.zip
- package/chevrotain-binaries-0.5.13.tar.gz
- package/chevrotain-binaries-0.5.14.zip
- package/chevrotain-binaries-0.5.14.tar.gz
on:
tags : true
all_branches: true
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "chevrotain",
"version": "0.5.13",
"version": "0.5.14",
"description": "Chevrotain is a high performance fault Tolerant Javascript parsing DSL for building recursive decent parsers",
"main": "release/chevrotain.js",
"dependencies": {},
Expand Down
16 changes: 8 additions & 8 deletions docs/tutorial/step2_parsing.md
Expand Up @@ -44,16 +44,16 @@ relationalOperator

A Chevrotain Parser analyses a [Token](https://github.com/SAP/chevrotain/blob/master/src/scan/tokens_public.ts#L61) vector
that conforms to some grammar.
The grammar is defined using the [parsing DSL](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#at_least_one),
The grammar is defined using the [parsing DSL](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#at_least_one),
Which includes the following methods.

* [CONSUME](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#consume1) - 'eat' a Token.
* [SUBRULE](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#subrule1) - reference to another rule.
* [OPTION](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#option1) - optional production.
* [MANY](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#many1) - repetition zero or more.
* [AT_LEAST_ONE](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#at_least_one1) - repetition one or more.
* [MANY_SEP](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#many_sep1) - repetition (zero or more) with a separator between any two items
* [AT_LEAST_ONE_SEP](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#at_least_one_sep1) - repetition (one or more) with a separator between any two items
* [CONSUME](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#consume1) - 'eat' a Token.
* [SUBRULE](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#subrule1) - reference to another rule.
* [OPTION](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#option1) - optional production.
* [MANY](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#many1) - repetition zero or more.
* [AT_LEAST_ONE](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#at_least_one1) - repetition one or more.
* [MANY_SEP](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#many_sep1) - repetition (zero or more) with a separator between any two items
* [AT_LEAST_ONE_SEP](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#at_least_one_sep1) - repetition (one or more) with a separator between any two items


#### Lets implement our first grammar rule.
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorial/step3_adding_actions.md
Expand Up @@ -18,9 +18,9 @@ validates the input conforms to the grammar. In most real world use cases the pa
result/data structure/value.

This can be accomplished using two features of the Parsing DSL:
* [CONSUME](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#consume1) will return
The [Token](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.token.html) instance consumed.
* [SUBRULE](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#subrule1) will return
* [CONSUME](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#consume1) will return
The [Token](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.token.html) instance consumed.
* [SUBRULE](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#subrule1) will return
the result on invoking the rule.


Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "chevrotain",
"version": "0.5.13",
"version": "0.5.14",
"description": "Chevrotain is a high performance fault Tolerant Javascript parsing DSL for building recursive decent parsers",
"keywords": [
"parser",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -57,7 +57,7 @@ any code generation phase.

## Documentation
* [Latest released version's HTML docs](http://sap.github.io/chevrotain/documentation)
* [Parsing DSL](http://sap.github.io/chevrotain/documentation/0_5_13/classes/chevrotain.parser.html#at_least_one)
* [Parsing DSL](http://sap.github.io/chevrotain/documentation/0_5_14/classes/chevrotain.parser.html#at_least_one)

* Annotated source code (dev version):
* [tokens_public.ts](https://github.com/SAP/chevrotain/blob/master/src/scan/tokens_public.ts)
Expand Down
11 changes: 3 additions & 8 deletions release/chevrotain.d.ts
@@ -1,4 +1,4 @@
/*! chevrotain - v0.5.13 - 2016-01-03 */
/*! chevrotain - v0.5.14 - 2016-01-11 */
declare module chevrotain {
module lang {
class HashTable<V>{}
Expand Down Expand Up @@ -94,17 +94,12 @@ declare module chevrotain {
};
/**
* @param {Function[]} tokenClasses constructor functions for the Tokens types this scanner will support
* These constructors must be in one of three forms:
* These constructors must be in one of THESE forms:
*
* 1. With a PATTERN property that has a RegExp value for tokens to match:
* example: -->class Integer extends Token { static PATTERN = /[1-9]\d }<--
*
* 2. With a PATTERN property that has a RegExp value AND an IGNORE property with boolean value true.
* These tokens will be matched but not as part of the main token vector.
* this is usually used for ignoring whitespace/comments
* example: --> class Whitespace extends Token { static PATTERN = /(\t| )/; static IGNORE = true}<--
*
* 3. With a PATTERN property that has the value of the var Lexer.NA defined above.
* 2. With a PATTERN property that has the value of the var Lexer.NA defined above.
* This is a convenience form used to avoid matching Token classes that only act as categories.
* example: -->class Keyword extends Token { static PATTERN = NA }<--
*
Expand Down

0 comments on commit 044d1c9

Please sign in to comment.