Skip to content

Commit

Permalink
release 0.5.17
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahar Soel committed Feb 6, 2016
1 parent 41f1470 commit 517cf07
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ deploy:
api_key:
secure: DNq1wbqLPHVpJPDx9O89HZM+RJB6v2R7/wk8pok7Z8NT72kUWdvbqcThGhczPO4sZ8cUTJ3ergTCE8hs9mynlR/lX6932U4fj4+uICQL9+G+deBB/t2SNyTBllkE64WrJ9BKmQvIk/Chh7ZJOM0Fro3p2BIq3JsVnfYg1tZ3U5o=
file:
- package/chevrotain-binaries-0.5.16.zip
- package/chevrotain-binaries-0.5.16.tar.gz
- package/chevrotain-binaries-0.5.17.zip
- package/chevrotain-binaries-0.5.17.tar.gz
on:
tags : true
all_branches: true
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chevrotain",
"version": "0.5.16",
"version": "0.5.17",
"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
Original file line number Diff line number Diff line change
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_16/classes/parser.html#at_least_one),
The grammar is defined using the [parsing DSL](http://sap.github.io/chevrotain/documentation/0_5_17/classes/parser.html#at_least_one),
Which includes the following methods.

* [CONSUME](http://sap.github.io/chevrotain/documentation/0_5_16/classes/parser.html#consume1) - 'eat' a Token.
* [SUBRULE](http://sap.github.io/chevrotain/documentation/0_5_16/classes/parser.html#subrule1) - reference to another rule.
* [OPTION](http://sap.github.io/chevrotain/documentation/0_5_16/classes/parser.html#option1) - optional production.
* [MANY](http://sap.github.io/chevrotain/documentation/0_5_16/classes/parser.html#many1) - repetition zero or more.
* [AT_LEAST_ONE](http://sap.github.io/chevrotain/documentation/0_5_16/classes/parser.html#at_least_one1) - repetition one or more.
* [MANY_SEP](http://sap.github.io/chevrotain/documentation/0_5_16/classes/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_16/classes/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_17/classes/parser.html#consume1) - 'eat' a Token.
* [SUBRULE](http://sap.github.io/chevrotain/documentation/0_5_17/classes/parser.html#subrule1) - reference to another rule.
* [OPTION](http://sap.github.io/chevrotain/documentation/0_5_17/classes/parser.html#option1) - optional production.
* [MANY](http://sap.github.io/chevrotain/documentation/0_5_17/classes/parser.html#many1) - repetition zero or more.
* [AT_LEAST_ONE](http://sap.github.io/chevrotain/documentation/0_5_17/classes/parser.html#at_least_one1) - repetition one or more.
* [MANY_SEP](http://sap.github.io/chevrotain/documentation/0_5_17/classes/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_17/classes/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
Original file line number Diff line number Diff line change
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_16/classes/parser.html#consume1) will return
The [Token](http://sap.github.io/chevrotain/documentation/0_5_16/classes/token.html) instance consumed.
* [SUBRULE](http://sap.github.io/chevrotain/documentation/0_5_16/classes/parser.html#subrule1) will return
* [CONSUME](http://sap.github.io/chevrotain/documentation/0_5_17/classes/parser.html#consume1) will return
The [Token](http://sap.github.io/chevrotain/documentation/0_5_17/classes/token.html) instance consumed.
* [SUBRULE](http://sap.github.io/chevrotain/documentation/0_5_17/classes/parser.html#subrule1) will return
the result on invoking the rule.


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chevrotain",
"version": "0.5.16",
"version": "0.5.17",
"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
Original file line number Diff line number Diff line change
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_16/classes/parser.html#at_least_one)
* [Parsing DSL](http://sap.github.io/chevrotain/documentation/0_5_17/classes/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
2 changes: 1 addition & 1 deletion release/chevrotain.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! chevrotain - v0.5.16 - 2016-01-29 */
/*! chevrotain - v0.5.17 - 2016-02-06 */
declare namespace chevrotain {
class HashTable<V>{}
export function tokenName(clazz: Function): string;
Expand Down
11 changes: 4 additions & 7 deletions release/chevrotain.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! chevrotain - v0.5.16 - 2016-01-29 */
/*! chevrotain - v0.5.17 - 2016-02-06 */

(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
Expand Down Expand Up @@ -68,7 +68,7 @@ return /******/ (function(modules) { // webpackBootstrap
*/
var API = {};
// semantic version
API.VERSION = "0.5.16";
API.VERSION = "0.5.17";
// runtime API
API.Parser = parser_public_1.Parser;
API.Lexer = lexer_public_1.Lexer;
Expand Down Expand Up @@ -1312,15 +1312,12 @@ return /******/ (function(modules) { // webpackBootstrap
return this.tryInRuleRecovery(tokClass, follows);
}
catch (eFromInRuleRecovery) {
/* istanbul ignore next */ // TODO: try removing this istanbul ignore with tsc 1.5.
// it is only needed for the else branch but in tsc 1.4.1 comments
// between if and else seem to get swallowed and disappear.
if (eFromConsumption instanceof InRuleRecoveryException) {
if (eFromInRuleRecovery.name === lang_extensions_1.functionName(InRuleRecoveryException)) {
// failed in RuleRecovery.
// throw the original error in order to trigger reSync error recovery
throw eFromConsumption;
}
else {
// some other error Type (built in JS error) this needs to be rethrown, we don't want to swallow it
throw eFromInRuleRecovery;
}
}
Expand Down
4 changes: 2 additions & 2 deletions release/chevrotain.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {clearCache} from "./parse/cache_public"
let API:any = {}

// semantic version
API.VERSION = "0.5.16"
API.VERSION = "0.5.17"

// runtime API
API.Parser = Parser
Expand Down

0 comments on commit 517cf07

Please sign in to comment.