coffee-lex
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -738,2 +738,3 @@ var babelHelpers = {}; | ||
var CALL_START = new SourceType('CALL_START'); | ||
var CLASS = new SourceType('CLASS'); | ||
var COLON = new SourceType('COLON'); | ||
@@ -878,2 +879,3 @@ var COMMA = new SourceType('COMMA'); | ||
case EXISTENCE: | ||
case CLASS: | ||
case PROTO: | ||
@@ -1028,2 +1030,6 @@ case RANGE: | ||
case 'class': | ||
setType(CLASS); | ||
break; | ||
case 'delete': | ||
@@ -1262,2 +1268,2 @@ setType(DELETE); | ||
export { AT, BOOL, CALL_END, CALL_START, COLON, COMMA, COMMENT, CONTINUATION, DELETE, DOT, DSTRING, ELSE, EOF, EXISTENCE, FUNCTION, HERECOMMENT, HEREGEXP, IF, INTERPOLATION_START, INTERPOLATION_END, JS, LBRACE, LBRACKET, LPAREN, NEWLINE, NORMAL, NULL, NUMBER, OPERATOR, PROTO, RANGE, REGEXP, RBRACE, RBRACKET, RELATION, RETURN, RPAREN, SEMICOLON, SPACE, SSTRING, SUPER, SWITCH, TDSTRING, STRING_CONTENT, STRING_END, STRING_START, THEN, THIS, TSSTRING, UNDEFINED, UNKNOWN, WHEN, IDENTIFIER, stream, consumeStream };export default lex; | ||
export { AT, BOOL, CALL_END, CALL_START, CLASS, COLON, COMMA, COMMENT, CONTINUATION, DELETE, DOT, DSTRING, ELSE, EOF, EXISTENCE, FUNCTION, HERECOMMENT, HEREGEXP, IF, INTERPOLATION_START, INTERPOLATION_END, JS, LBRACE, LBRACKET, LPAREN, NEWLINE, NORMAL, NULL, NUMBER, OPERATOR, PROTO, RANGE, REGEXP, RBRACE, RBRACKET, RELATION, RETURN, RPAREN, SEMICOLON, SPACE, SSTRING, SUPER, SWITCH, TDSTRING, STRING_CONTENT, STRING_END, STRING_START, THEN, THIS, TSSTRING, UNDEFINED, UNKNOWN, WHEN, IDENTIFIER, stream, consumeStream };export default lex; |
@@ -744,2 +744,3 @@ (function (global, factory) { | ||
var CALL_START = new SourceType('CALL_START'); | ||
var CLASS = new SourceType('CLASS'); | ||
var COLON = new SourceType('COLON'); | ||
@@ -884,2 +885,3 @@ var COMMA = new SourceType('COMMA'); | ||
case EXISTENCE: | ||
case CLASS: | ||
case PROTO: | ||
@@ -1034,2 +1036,6 @@ case RANGE: | ||
case 'class': | ||
setType(CLASS); | ||
break; | ||
case 'delete': | ||
@@ -1274,2 +1280,3 @@ setType(DELETE); | ||
exports.CALL_START = CALL_START; | ||
exports.CLASS = CLASS; | ||
exports.COLON = COLON; | ||
@@ -1276,0 +1283,0 @@ exports.COMMA = COMMA; |
{ | ||
"name": "coffee-lex", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Stupid lexer for CoffeeScript.", | ||
@@ -36,11 +36,12 @@ "main": "dist/coffee-lex.umd.js", | ||
"babel-plugin-syntax-flow": "^6.5.0", | ||
"babel-plugin-transform-class-properties": "^6.5.0", | ||
"babel-plugin-transform-flow-strip-types": "^6.5.0", | ||
"babel-preset-es2015": "^6.5.0", | ||
"babel-plugin-transform-class-properties": "^6.6.0", | ||
"babel-plugin-transform-flow-strip-types": "^6.7.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-es2015-rollup": "^1.1.1", | ||
"babel-register": "^6.5.2", | ||
"babel-register": "^6.6.5", | ||
"flow-bin": "^0.22.1", | ||
"mocha": "^2.4.5", | ||
"rollup": "^0.25.3", | ||
"rollup-plugin-babel": "^2.3.9" | ||
"rollup": "^0.25.4", | ||
"rollup-plugin-babel": "^2.4.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# coffee-lex | ||
# coffee-lex [![Build Status](https://travis-ci.org/decaffeinate/coffee-lex.svg?branch=master)](https://travis-ci.org/decaffeinate/coffee-lex) | ||
@@ -25,7 +25,7 @@ Stupid lexer for CoffeeScript. | ||
// SourceToken { type: SourceType { name: 'EXISTENCE' }, start: 1, end: 2 } | ||
// SourceToken { type: SourceType { name: 'LPAREN' }, start: 2, end: 3 } | ||
// SourceToken { type: SourceType { name: 'CALL_START' }, start: 2, end: 3 } | ||
// SourceToken { type: SourceType { name: 'IDENTIFIER' }, start: 3, end: 4 } | ||
// SourceToken { type: SourceType { name: 'COLON' }, start: 4, end: 5 } | ||
// SourceToken { type: SourceType { name: 'IDENTIFIER' }, start: 6, end: 7 } | ||
// SourceToken { type: SourceType { name: 'RPAREN' }, start: 7, end: 8 } | ||
// SourceToken { type: SourceType { name: 'CALL_END' }, start: 7, end: 8 } | ||
@@ -41,7 +41,7 @@ // Print tokens along with their source. | ||
// EXISTENCE "?" | ||
// LPAREN "(" | ||
// CALL_START "(" | ||
// IDENTIFIER "b" | ||
// COLON ":" | ||
// IDENTIFIER "c" | ||
// RPAREN ")" | ||
// CALL_END ")" | ||
``` | ||
@@ -65,3 +65,3 @@ | ||
// SourceLocation { type: SourceType { name: 'EXISTENCE' }, index: 1 } | ||
// SourceLocation { type: SourceType { name: 'LPAREN' }, index: 2 } | ||
// SourceLocation { type: SourceType { name: 'CALL_START' }, index: 2 } | ||
// SourceLocation { type: SourceType { name: 'IDENTIFIER' }, index: 3 } | ||
@@ -71,3 +71,3 @@ // SourceLocation { type: SourceType { name: 'COLON' }, index: 4 } | ||
// SourceLocation { type: SourceType { name: 'IDENTIFIER' }, index: 6 } | ||
// SourceLocation { type: SourceType { name: 'RPAREN' }, index: 7 } | ||
// SourceLocation { type: SourceType { name: 'CALL_END' }, index: 7 } | ||
// SourceLocation { type: SourceType { name: 'EOF' }, index: 8 } | ||
@@ -74,0 +74,0 @@ ``` |
79866
2261
11