Skip to content

Commit

Permalink
release 0.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahar Soel committed Nov 30, 2015
1 parent 5464f01 commit 57af016
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ deploy:
api_key:
secure: DNq1wbqLPHVpJPDx9O89HZM+RJB6v2R7/wk8pok7Z8NT72kUWdvbqcThGhczPO4sZ8cUTJ3ergTCE8hs9mynlR/lX6932U4fj4+uICQL9+G+deBB/t2SNyTBllkE64WrJ9BKmQvIk/Chh7ZJOM0Fro3p2BIq3JsVnfYg1tZ3U5o=
file:
- package/chevrotain-binaries-0.5.6.zip
- package/chevrotain-binaries-0.5.6.tar.gz
- package/chevrotain-binaries-0.5.7.zip
- package/chevrotain-binaries-0.5.7.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.6",
"version": "0.5.7",
"description": "Chevrotain is a high performance fault Tolerant Javascript parsing DSL for building recursive decent parsers",
"main": "release/chevrotain.js",
"dependencies": {
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.6",
"version": "0.5.7",
"description": "Chevrotain is a high performance fault Tolerant Javascript parsing DSL for building recursive decent parsers",
"keywords": [
"parser",
Expand Down
19 changes: 13 additions & 6 deletions release/chevrotain.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! chevrotain - v0.5.6 - 2015-09-29 */
/*! chevrotain - v0.5.7 - 2015-11-30 */
declare module chevrotain {
module lang {
class HashTable<V>{}
Expand Down Expand Up @@ -163,6 +163,8 @@ declare module chevrotain {

import gast = chevrotain.gast;
import lang = chevrotain.lang;
import exceptions = chevrotain.exceptions;
import IRecognitionException = chevrotain.exceptions.IRecognitionException;
enum ParserDefinitionErrorType {
INVALID_RULE_NAME = 0,
DUPLICATE_RULE_NAME = 1,
Expand Down Expand Up @@ -210,7 +212,7 @@ declare module chevrotain {
ALT: () => T;
}
interface IParserState {
errors: Error[];
errors: exceptions.IRecognitionException[];
inputIdx: number;
RULE_STACK: string[];
}
Expand All @@ -226,7 +228,7 @@ declare module chevrotain {
static NO_RESYNC: boolean;
static DEFER_DEFINITION_ERRORS_HANDLING: boolean;
protected static performSelfAnalysis(classInstance: Parser): void;
errors: Error[];
errors: exceptions.IRecognitionException[];
/**
* This flag enables or disables error recovery (fault tolerance) of the parser.
* If this flag is disabled the parser will halt on the first error.
Expand Down Expand Up @@ -259,7 +261,7 @@ declare module chevrotain {
isAtEndOfInput(): boolean;
getGAstProductions(): lang.HashTable<gast.Rule>;
protected isBackTracking(): boolean;
protected SAVE_ERROR(error: Error): Error;
protected SAVE_ERROR(error: exceptions.IRecognitionException): IRecognitionException;
protected NEXT_TOKEN(): Token;
protected LA(howMuch: number): Token;
protected isNextRule<T>(ruleName: string): boolean;
Expand Down Expand Up @@ -709,6 +711,11 @@ declare module chevrotain {
}

module exceptions {
interface IRecognitionException {
name: string;
message: string;
token: Token;
}
function isRecognitionException(error: Error): boolean;
function MismatchedTokenException(message: string, token: Token): void;
function NoViableAltException(message: string, token: Token): void;
Expand All @@ -725,7 +732,7 @@ declare module chevrotain {
occurrenceInParent: number;
implicitOccurrenceIndex: boolean;
}
class AbstractProduction implements IProduction {
abstract class AbstractProduction implements IProduction {
definition: IProduction[];
implicitOccurrenceIndex: boolean;
constructor(definition: IProduction[]);
Expand Down Expand Up @@ -780,7 +787,7 @@ declare module chevrotain {
constructor(terminalType: Function, occurrenceInParent?: number);
accept(visitor: GAstVisitor): void;
}
class GAstVisitor {
abstract class GAstVisitor {
visit(node: IProduction): void;
visitNonTerminal(node: NonTerminal): void;
visitFlat(node: Flat): void;
Expand Down
11 changes: 5 additions & 6 deletions release/chevrotain.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
}(this, function (_) {

/*! chevrotain - v0.5.6 - 2015-09-29 */
/*! chevrotain - v0.5.7 - 2015-11-30 */
var chevrotain;
(function (chevrotain) {
var lang;
Expand Down Expand Up @@ -82,8 +82,7 @@ var chevrotain;
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) /* istanbul ignore next */ if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
/* istanbul ignore next */ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
// using only root namespace name ('chevrotain') and not a longer name ('chevrotain.tokens')
// because the external and internal API must have the same names for d.ts definition files to be valid
Expand Down Expand Up @@ -1700,13 +1699,13 @@ var chevrotain;
return tokensToAltsIndicesWithAmbiguity;
}
lookahead.checkAlternativesAmbiguities = checkAlternativesAmbiguities;
function buildLookAheadForGrammarProd(prodWalker, ruleOccurrence, ruleGrammar) {
function buildLookAheadForGrammarProd(prodWalkerConstructor, ruleOccurrence, ruleGrammar) {
var path = {
ruleStack: [ruleGrammar.name],
occurrenceStack: [1],
occurrence: ruleOccurrence
};
var walker = new prodWalker(ruleGrammar, path);
var walker = new prodWalkerConstructor(ruleGrammar, path);
var possibleNextTokTypes = walker.startWalking();
return getSimpleLookahead(possibleNextTokTypes);
}
Expand Down Expand Up @@ -3600,7 +3599,7 @@ var API = {};
/* istanbul ignore next */
if (!testMode) {
// semantic version
API.VERSION = "0.5.6";
API.VERSION = "0.5.7";
// runtime API
API.Parser = chevrotain.Parser;
API.Lexer = chevrotain.Lexer;
Expand Down
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 @@ let API:any = {}
/* istanbul ignore next */
if (!testMode) {
// semantic version
API.VERSION = "0.5.6";
API.VERSION = "0.5.7";

// runtime API
API.Parser = chevrotain.Parser
Expand Down

0 comments on commit 57af016

Please sign in to comment.