Skip to content

Commit

Permalink
release 0.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahar Soel committed Jul 25, 2015
1 parent 2f17f7d commit 5bb3f43
Show file tree
Hide file tree
Showing 6 changed files with 316 additions and 202 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.4.8.zip
- package/chevrotain-binaries-0.4.8.tar.gz
- package/chevrotain-binaries-0.4.9.zip
- package/chevrotain-binaries-0.4.9.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.4.8",
"version": "0.4.9",
"description": "Chevrotain is a high performance fault Tolerant Javascript parsing DSL for building recursive decent parsers",
"main": "release/chevrotain.js",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chevrotain",
"version": "0.4.8",
"version": "0.4.9",
"description": "Chevrotain is a high performance fault Tolerant Javascript parsing DSL for building recursive decent parsers",
"keywords": [
"parser",
Expand Down Expand Up @@ -49,7 +49,7 @@
"lodash": "^3.10.0"
},
"devDependencies": {
"typescript" : "~1.5.3",
"typescript": "~1.5.3",
"chai": "^3.2.0",
"coveralls": "^2.11.3",
"gitty": "^3.2.3",
Expand Down
44 changes: 30 additions & 14 deletions release/chevrotain.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! chevrotain - v0.4.8 - 2015-07-18 */
/*! chevrotain - v0.4.9 - 2015-07-26 */
declare module chevrotain {
module lang {
class HashTable<V>{}
Expand All @@ -9,10 +9,10 @@ declare module chevrotain {
* utility to help the poor souls who are still stuck writing pure javascript 5.1
* extend and create Token subclasses in a less verbose manner
*
* @param {string} tokenName the name of the new TokenClass
* @param {*} patternOrParent Pa
* @param {Function} parentConstructor the Token class to be extended
* @returns {Function} a constructor for the new extended Token subclass
* @param {string} tokenName - the name of the new TokenClass
* @param {RegExp|Function} patternOrParent - RegExp Pattern or Parent Token Constructor
* @param {Function} parentConstructor - the Token class to be extended
* @returns {Function} - a constructor for the new extended Token subclass
*/
function extendToken(tokenName: string, patternOrParent?: any, parentConstructor?: Function): any;
class Token {
Expand Down Expand Up @@ -163,6 +163,25 @@ declare module chevrotain {

import gast = chevrotain.gast;
import lang = chevrotain.lang;
enum ParserDefinitionErrorType {
INVALID_RULE_NAME = 0,
DUPLICATE_RULE_NAME = 1,
DUPLICATE_PRODUCTIONS = 2,
UNRESOLVED_SUBRULE_REF = 3,
}
interface IParserDefinitionError {
message: string;
type: ParserDefinitionErrorType;
ruleName: string;
}
interface IParserDuplicatesDefinitionError extends IParserDefinitionError {
dslName: string;
occurrence: number;
parameter?: string;
}
interface IParserUnresolvedRefDefinitionError extends IParserDefinitionError {
unresolvedRefName: string;
}
interface IFollowKey {
ruleName: string;
idxInCallingRule: number;
Expand Down Expand Up @@ -204,6 +223,7 @@ declare module chevrotain {
class Parser {
static IGNORE_AMBIGUITIES: boolean;
static NO_RESYNC: boolean;
static DEFER_DEFINITION_ERRORS_HANDLING: boolean;
protected static performSelfAnalysis(classInstance: Parser): void;
errors: Error[];
protected _input: Token[];
Expand All @@ -217,10 +237,12 @@ declare module chevrotain {
};
private firstAfterRepMap;
private classLAFuncs;
private definitionErrors;
private orLookaheadKeys;
private manyLookaheadKeys;
private atLeastOneLookaheadKeys;
private optionLookaheadKeys;
private definedRulesNames;
constructor(input: Token[], tokensMapOrArr: {
[fqn: string]: Function;
} | Function[]);
Expand Down Expand Up @@ -519,7 +541,7 @@ declare module chevrotain {
protected RULE_NO_RESYNC<T>(ruleName: string, impl: () => T, invalidRet: () => T): (idxInCallingRule: number, isEntryPoint?: boolean) => T;
/**
*
* @param {string} ruleName The name of the Rule. must match the var it is assigned to.
* @param {string} ruleName The name of the Rule. must match the let it is assigned to.
* @param {Function} impl The implementation of the Rule
* @param {Function} [invalidRet] A function that will return the chosen invalid value for the rule in case of
* re-sync recovery.
Expand All @@ -533,13 +555,6 @@ declare module chevrotain {
protected getTokenToInsert(tokClass: Function): Token;
protected canTokenTypeBeInsertedInRecovery(tokClass: Function): boolean;
private defaultInvalidReturn();
private ruleNamePattern;
private definedRulesNames;
/**
* @param ruleFuncName name of the Grammar rule
* @throws Grammar validation errors if the name is invalid
*/
private validateRuleName(ruleFuncName);
private tryInRepetitionRecovery(grammarRule, grammarRuleArgs, lookAheadFunc, expectedTokType);
private shouldInRepetitionRecoveryBeTried(expectTokAfterLastMatch?, nextTokIdx?);
private getFollowsForInRuleRecovery(tokClass, tokIdxInRule);
Expand Down Expand Up @@ -617,7 +632,8 @@ declare module chevrotain {
}
class Rule extends AbstractProduction {
name: string;
constructor(name: string, definition: IProduction[]);
orgText: string;
constructor(name: string, definition: IProduction[], orgText?: string);
}
class Flat extends AbstractProduction {
constructor(definition: IProduction[]);
Expand Down
Loading

0 comments on commit 5bb3f43

Please sign in to comment.