Skip to content

Commit

Permalink
release 0.5.18
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahar Soel committed Feb 26, 2016
1 parent b97fee5 commit 58b2723
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 25 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.17.zip
- package/chevrotain-binaries-0.5.17.tar.gz
- package/chevrotain-binaries-0.5.18.zip
- package/chevrotain-binaries-0.5.18.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.17",
"version": "0.5.18",
"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_17/classes/parser.html#at_least_one),
The grammar is defined using the [parsing DSL](http://sap.github.io/chevrotain/documentation/0_5_18/classes/parser.html#at_least_one),
Which includes the following methods.

* [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
* [CONSUME](http://sap.github.io/chevrotain/documentation/0_5_18/classes/parser.html#consume1) - 'eat' a Token.
* [SUBRULE](http://sap.github.io/chevrotain/documentation/0_5_18/classes/parser.html#subrule1) - reference to another rule.
* [OPTION](http://sap.github.io/chevrotain/documentation/0_5_18/classes/parser.html#option1) - optional production.
* [MANY](http://sap.github.io/chevrotain/documentation/0_5_18/classes/parser.html#many1) - repetition zero or more.
* [AT_LEAST_ONE](http://sap.github.io/chevrotain/documentation/0_5_18/classes/parser.html#at_least_one1) - repetition one or more.
* [MANY_SEP](http://sap.github.io/chevrotain/documentation/0_5_18/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_18/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_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
* [CONSUME](http://sap.github.io/chevrotain/documentation/0_5_18/classes/parser.html#consume1) will return
The [Token](http://sap.github.io/chevrotain/documentation/0_5_18/classes/token.html) instance consumed.
* [SUBRULE](http://sap.github.io/chevrotain/documentation/0_5_18/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.17",
"version": "0.5.18",
"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_17/classes/parser.html#at_least_one)
* [Parsing DSL](http://sap.github.io/chevrotain/documentation/0_5_18/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.17 - 2016-02-06 */
/*! chevrotain - v0.5.18 - 2016-02-26 */
declare namespace chevrotain {
class HashTable<V>{}
export function tokenName(clazz: Function): string;
Expand Down
11 changes: 8 additions & 3 deletions release/chevrotain.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! chevrotain - v0.5.17 - 2016-02-06 */
/*! chevrotain - v0.5.18 - 2016-02-26 */

(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.17";
API.VERSION = "0.5.18";
// runtime API
API.Parser = parser_public_1.Parser;
API.Lexer = lexer_public_1.Lexer;
Expand Down Expand Up @@ -231,6 +231,12 @@ return /******/ (function(modules) { // webpackBootstrap
var definitionErrors = [];
var defErrorsMsgs;
var className = lang_extensions_1.classNameFromInstance(classInstance);
if (className === "") {
// just a simple "throw Error" without any fancy "definition error" because the logic below relies on a unique parser name to
// save/access those definition errors...
throw Error("A Parser's constructor may not be an anonymous Function, it must be a named function\n" +
"The constructor's name is used at runtime for performance (caching) purposes.");
}
// this information should only be computed once
if (!cache.CLASS_TO_SELF_ANALYSIS_DONE.containsKey(className)) {
var grammarProductions = cache.getProductionsForClass(className);
Expand Down Expand Up @@ -3933,7 +3939,6 @@ return /******/ (function(modules) { // webpackBootstrap
utils_1.forEach(secondLevelInOrder, function (prodRng) {
definition.push(buildProdGast(prodRng, allRanges));
});
// IntelliJ bug workaround
prod.definition = definition;
return prod;
}
Expand Down
8 changes: 4 additions & 4 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.17"
API.VERSION = "0.5.18"

// runtime API
API.Parser = Parser
Expand Down

0 comments on commit 58b2723

Please sign in to comment.