Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "tokenizr", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "String Tokenization Library for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/tokenizr.js", |
{ | ||
"name": "tokenizr", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "String Tokenization Library for JavaScript", | ||
@@ -23,3 +23,3 @@ "keywords": [ "string", "token", "scanner", "lexer" ], | ||
"grunt-contrib-jshint": "~1.1.0", | ||
"grunt-contrib-clean": "~1.0.0", | ||
"grunt-contrib-clean": "~1.1.0", | ||
"grunt-browserify": "~5.0.0", | ||
@@ -26,0 +26,0 @@ "grunt-mocha-test": "~0.13.2", |
@@ -229,3 +229,3 @@ | ||
- Method: `Tokenizr#before(action: (ctx: TokenizerContext, match: Array[String], rule: { state: String, pattern: RegExp, action: Function, name: String }) => Void): Tokenizr`<br/> | ||
- Method: `Tokenizr#before(action: (ctx: ActionContext, match: Array[String], rule: { state: String, pattern: RegExp, action: Function, name: String }) => Void): Tokenizr`<br/> | ||
Configure a single action which is called directly before any rule | ||
@@ -237,3 +237,3 @@ action (configured with `Tokenizr#rule()`) is called. This can be used | ||
- Method: `Tokenizr#after(action: (ctx: TokenizerContext, match: Array[String], rule: { state: String, pattern: RegExp, action: Function, name: String }) => Void): Tokenizr`<br/> | ||
- Method: `Tokenizr#after(action: (ctx: ActionContext, match: Array[String], rule: { state: String, pattern: RegExp, action: Function, name: String }) => Void): Tokenizr`<br/> | ||
Configure a single action which is called directly after any rule | ||
@@ -245,3 +245,3 @@ action (configured with `Tokenizr#rule()`) is called. This can be used | ||
- Method: `Tokenizr#finish(action: (ctx: TokenizerContext) => Void): Tokenizr`<br/> | ||
- Method: `Tokenizr#finish(action: (ctx: ActionContext) => Void): Tokenizr`<br/> | ||
Configure a single action which is called directly before an `EOF` | ||
@@ -251,3 +251,3 @@ token is emitted. This can be used to execute a common action just | ||
- Method: `Tokenizr#rule(state?: String, pattern: RegExp, action: (ctx: TokenizerContext, match: Array[String]) => Void): Tokenizr`<br/> | ||
- Method: `Tokenizr#rule(state?: String, pattern: RegExp, action: (ctx: ActionContext, match: Array[String]) => Void): Tokenizr`<br/> | ||
Configure a token matching rule which executes its `action` in case | ||
@@ -254,0 +254,0 @@ the current tokenization state is one of the states (and all of the |
82156