mmir-lib
Version:
MMIR (Mobile Multimodal Interaction and Relay) library
2,112 lines (1,754 loc) • 184 kB
JavaScript
define(['mmirf/antlr3'], function(org){
// $ANTLR 3.3 Nov 30, 2010 12:50:56
var ES3Lexer = function(input, state) {
// alternate constructor @todo
// public ES3Lexer(CharStream input)
// public ES3Lexer(CharStream input, RecognizerSharedState state) {
if (!state) {
state = new org.antlr.runtime.RecognizerSharedState();
}
(function(){
//MODIFICATION: conter for keeping track of the nesting-level within brackets
this.nesting = 0;
var last;
this.last = last;
var jsIsIdStartChar = function(ch){
switch(ch){
case '\u0024':// $
case '\u0041':// A ...
case '\u0042':
case '\u0043':
case '\u0044':
case '\u0045':
case '\u0046':
case '\u0047':
case '\u0048':
case '\u0049':
case '\u004A':
case '\u004B':
case '\u004C':
case '\u004D':
case '\u004E':
case '\u004F':
case '\u0050':
case '\u0051':
case '\u0052':
case '\u0053':
case '\u0054':
case '\u0055':
case '\u0056':
case '\u0057':
case '\u0058':
case '\u0059':
case '\u005A'://... Z
case '\u005F':// _
case '\u0061':// a ...
case '\u0062':
case '\u0063':
case '\u0064':
case '\u0065':
case '\u0066':
case '\u0067':
case '\u0068':
case '\u0069':
case '\u006A':
case '\u006B':
case '\u006C':
case '\u006D':
case '\u006E':
case '\u006F':
case '\u0070':
case '\u0071':
case '\u0072':
case '\u0073':
case '\u0074':
case '\u0075':
case '\u0076':
case '\u0077':
case '\u0078':
case '\u0079':
case '\u007A'://... z
case '\u00B5':
case '\u00C0':// and some accented characters / umlauts:
case '\u00C1':
case '\u00C2':
case '\u00C3':
case '\u00C4':
case '\u00C5':
case '\u00C6':
case '\u00C7':
case '\u00C8':
case '\u00C9':
case '\u00D0':
case '\u00D1':
case '\u00D2':
case '\u00D3':
case '\u00D4':
case '\u00D5':
case '\u00D6':
case '\u00D7':
case '\u00D8':
case '\u00D9':
case '\u00DA':
case '\u00DB':
case '\u00DC':
case '\u00DD':
case '\u00DE':
case '\u00DF':
case '\u00E0':
case '\u00E1':
case '\u00E2':
case '\u00E3':
case '\u00E4':
case '\u00E5':
case '\u00E6':
case '\u00E7':
case '\u00E8':
case '\u00E9':
case '\u00EA':
case '\u00EB':
case '\u00EC':
case '\u00ED':
case '\u00EE':
case '\u00EF':
case '\u00F0':
case '\u00F1':
case '\u00F2':
case '\u00F3':
case '\u00F4':
case '\u00F5':
case '\u00F6':
case '\u00F7':
case '\u00F8':
case '\u00F9':
case '\u00FA':
case '\u00FB':
case '\u00FC':
case '\u00FD':
case '\u00FE':
case '\u00FF':
case '\u0100':
case '\u0101':
case '\u0102':
case '\u0103':
case '\u0104':
case '\u0105':
case '\u0106':
case '\u0107':
case '\u0108':
case '\u0109':
case '\u010A':
case '\u010B':
case '\u010C':
case '\u010D':
case '\u010E':
case '\u010F':
case '\u0110':
case '\u0111':
case '\u0112':
case '\u0113':
case '\u0114':
case '\u0115':
case '\u0116':
case '\u0117':
case '\u0118':
case '\u0119':
case '\u011A':
case '\u011B':
case '\u011C':
case '\u011D':
case '\u011E':
case '\u011F':
case '\u0120':
case '\u0121':
case '\u0122':
case '\u0123':
case '\u0124':
case '\u0126':
case '\u0127':
case '\u0128':
case '\u0129':
case '\u012A':
case '\u012B':
case '\u012C':
case '\u012D':
case '\u012E':
case '\u012F':
case '\u0130':
case '\u0131':
case '\u0132':
case '\u0133':
case '\u0134':
case '\u0135':
case '\u0136':
case '\u0137':
case '\u0138':
case '\u0139':
case '\u013A':
case '\u013B':
case '\u013C':
case '\u013D':
case '\u013E':
case '\u013F':
case '\u0140':
case '\u0141':
case '\u0142':
case '\u0143':
case '\u0144':
case '\u0145':
case '\u0146':
case '\u0147':
case '\u0148':
case '\u0149':
case '\u014A':
case '\u014B':
case '\u014C':
case '\u014D':
case '\u014E':
case '\u014F':
case '\u0150':
case '\u0151':
case '\u0152':
case '\u0153':
case '\u0154':
case '\u0155':
case '\u0156':
case '\u0157':
case '\u0158':
case '\u0159':
case '\u015A':
case '\u015B':
case '\u015C':
case '\u015D':
case '\u015E':
case '\u015F':
case '\u0160':
case '\u0161':
case '\u0162':
case '\u0163':
case '\u0164':
case '\u0165':
case '\u0166':
case '\u0167':
case '\u0168':
case '\u0169':
case '\u016A':
case '\u016B':
case '\u016C':
case '\u016D':
case '\u016E':
case '\u016F':
case '\u0170':
case '\u0171':
case '\u0172':
case '\u0173':
case '\u0174':
case '\u0175':
case '\u0176':
case '\u0177':
case '\u0178':
case '\u0179':
case '\u017A':
case '\u017B':
case '\u017C':
case '\u017D':
case '\u017E':
case '\u0181':
return true;
default:
return false;
}
};
var jsIsIdPartChar = function(ch){
if( jsIsIdStartChar(ch) ){
return true;
}
else switch(ch){
case '\u0030':
case '\u0031':
case '\u0032':
case '\u0033':
case '\u0034':
case '\u0035':
case '\u0036':
case '\u0037':
case '\u0038':
case '\u0039':
return true;
default:
return false;
}
};
var Character = new Object();
Character.isJavaIdentifierStart = jsIsIdStartChar;
Character.isJavaIdentifierPart = jsIsIdPartChar;
//private final boolean
function isIdentifierPartUnicode(ch)//int ch)
{
return Character.isJavaIdentifierPart(ch);
}
this.isIdentifierPartUnicode = isIdentifierPartUnicode;
//private final boolean
function isIdentifierStartUnicode (ch)//int ch)
{
return Character.isJavaIdentifierStart(ch);
}
this.isIdentifierStartUnicode = isIdentifierStartUnicode;
//private final boolean
function areRegularExpressionsEnabled ()
{
if (last == null)
{
return true;
}
switch (last.getType())
{
// identifier
case this.Identifier:
// literals
case this.NULL:
case this.TRUE:
case this.FALSE:
case this.THIS:
case this.OctalIntegerLiteral:
case this.DecimalLiteral:
case this.HexIntegerLiteral:
case this.StringLiteral:
// member access ending
case this.RBRACK:
// function call or nested expression ending
case this.RPAREN:
return false;
// otherwise OK
default:
return true;
}
}
this.areRegularExpressionsEnabled = areRegularExpressionsEnabled;
//private final void
function consumeIdentifierUnicodeStart () //throws RecognitionException, NoViableAltException
{
// int
var ch = input.LA(1);
if (isIdentifierStartUnicode(ch) == true)
{
matchAny();
while(true) {
ch = input.LA(1);
if (ch == '$' || (ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') || ch == '\\' || ch == '_' || (ch >= 'a' && ch <= 'z') || isIdentifierPartUnicode(ch) == true)
{
mIdentifierPart();
}
else
{
return;
}
}
}
else
{
//HACK: if no token is consumed, this will go into an endless loop...
this.matchAny();
throw new org.antlr.runtime.NoViableAltException('invalid identifier character: \''+ch+'\'', -1, -1, input);
}
}
this.consumeIdentifierUnicodeStart = consumeIdentifierUnicodeStart;
//public Token
function nextToken ()
{
// Token
var result = //super.nextToken();
ES3Lexer.superclass.nextToken.call(this);
if (result.getChannel() == org.antlr.runtime.Token.DEFAULT_CHANNEL)
{
last = result;
}
return result;
}
this.nextToken = nextToken;
}).call(this);
this.dfa20 = new ES3Lexer.DFA20(this);
this.dfa33 = new ES3Lexer.DFA33(this);
ES3Lexer.superclass.constructor.call(this, input, state);
};
org.antlr.lang.augmentObject(ES3Lexer, {
EOF: -1,
RENDER: 4,
AMPERSAT: 5,
NULL: 6,
TRUE: 7,
FALSE: 8,
BREAK: 9,
CASE: 10,
CATCH: 11,
CONTINUE: 12,
DEFAULT: 13,
DELETE: 14,
DO: 15,
ELSE: 16,
FINALLY: 17,
FOR: 18,
FUNCTION: 19,
IF: 20,
IN: 21,
INSTANCEOF: 22,
NEW: 23,
RETURN: 24,
SWITCH: 25,
THIS: 26,
THROW: 27,
TRY: 28,
TYPEOF: 29,
VAR: 30,
VOID: 31,
WHILE: 32,
WITH: 33,
ABSTRACT: 34,
BOOLEAN: 35,
BYTE: 36,
CHAR: 37,
CLASS: 38,
CONST: 39,
DEBUGGER: 40,
DOUBLE: 41,
ENUM: 42,
EXPORT: 43,
EXTENDS: 44,
FINAL: 45,
FLOAT: 46,
GOTO: 47,
IMPLEMENTS: 48,
IMPORT: 49,
INT: 50,
INTERFACE: 51,
LONG: 52,
NATIVE: 53,
PACKAGE: 54,
PRIVATE: 55,
PROTECTED: 56,
PUBLIC: 57,
SHORT: 58,
STATIC: 59,
SUPER: 60,
SYNCHRONIZED: 61,
THROWS: 62,
TRANSIENT: 63,
VOLATILE: 64,
LBRACE: 65,
RBRACE: 66,
LBRACK: 67,
RBRACK: 68,
DOT: 69,
SEMIC: 70,
COMMA: 71,
LT: 72,
GT: 73,
LTE: 74,
GTE: 75,
EQ: 76,
NEQ: 77,
SAME: 78,
NSAME: 79,
ADD: 80,
SUB: 81,
MUL: 82,
MOD: 83,
INC: 84,
DEC: 85,
SHL: 86,
SHR: 87,
SHU: 88,
AND: 89,
OR: 90,
XOR: 91,
NOT: 92,
INV: 93,
LAND: 94,
LOR: 95,
QUE: 96,
COLON: 97,
ASSIGN: 98,
ADDASS: 99,
SUBASS: 100,
MULASS: 101,
MODASS: 102,
SHLASS: 103,
SHRASS: 104,
SHUASS: 105,
ANDASS: 106,
ORASS: 107,
XORASS: 108,
DIV: 109,
DIVASS: 110,
ARGS: 111,
ARRAY: 112,
BLOCK: 113,
BYFIELD: 114,
BYINDEX: 115,
CALL: 116,
CEXPR: 117,
EXPR: 118,
FORITER: 119,
FORSTEP: 120,
ITEM: 121,
LABELLED: 122,
NAMEDVALUE: 123,
NEG: 124,
OBJECT: 125,
PAREXPR: 126,
PDEC: 127,
PINC: 128,
POS: 129,
BSLASH: 130,
DQUOTE: 131,
SQUOTE: 132,
TAB: 133,
VT: 134,
FF: 135,
SP: 136,
NBSP: 137,
USP: 138,
WhiteSpace: 139,
LF: 140,
CR: 141,
LS: 142,
PS: 143,
LineTerminator: 144,
EOL: 145,
MultiLineComment: 146,
SingleLineComment: 147,
Identifier: 148,
StringLiteral: 149,
HexDigit: 150,
IdentifierStartASCII: 151,
DecimalDigit: 152,
IdentifierPart: 153,
IdentifierNameASCIIStart: 154,
IdentifierNameAmpersatStart: 155,
LPAREN: 156,
RPAREN: 157,
RegularExpressionLiteral: 158,
OctalDigit: 159,
ExponentPart: 160,
DecimalIntegerLiteral: 161,
DecimalLiteral: 162,
OctalIntegerLiteral: 163,
HexIntegerLiteral: 164,
CharacterEscapeSequence: 165,
ZeroToThree: 166,
OctalEscapeSequence: 167,
HexEscapeSequence: 168,
UnicodeEscapeSequence: 169,
EscapeSequence: 170,
BackslashSequence: 171,
RegularExpressionFirstChar: 172,
RegularExpressionChar: 173
});
(function(){
var HIDDEN = org.antlr.runtime.Token.HIDDEN_CHANNEL,
EOF = org.antlr.runtime.Token.EOF;
org.antlr.lang.extend(ES3Lexer, org.antlr.runtime.Lexer, {
EOF : -1,
RENDER : 4,
AMPERSAT : 5,
NULL : 6,
TRUE : 7,
FALSE : 8,
BREAK : 9,
CASE : 10,
CATCH : 11,
CONTINUE : 12,
DEFAULT : 13,
DELETE : 14,
DO : 15,
ELSE : 16,
FINALLY : 17,
FOR : 18,
FUNCTION : 19,
IF : 20,
IN : 21,
INSTANCEOF : 22,
NEW : 23,
RETURN : 24,
SWITCH : 25,
THIS : 26,
THROW : 27,
TRY : 28,
TYPEOF : 29,
VAR : 30,
VOID : 31,
WHILE : 32,
WITH : 33,
ABSTRACT : 34,
BOOLEAN : 35,
BYTE : 36,
CHAR : 37,
CLASS : 38,
CONST : 39,
DEBUGGER : 40,
DOUBLE : 41,
ENUM : 42,
EXPORT : 43,
EXTENDS : 44,
FINAL : 45,
FLOAT : 46,
GOTO : 47,
IMPLEMENTS : 48,
IMPORT : 49,
INT : 50,
INTERFACE : 51,
LONG : 52,
NATIVE : 53,
PACKAGE : 54,
PRIVATE : 55,
PROTECTED : 56,
PUBLIC : 57,
SHORT : 58,
STATIC : 59,
SUPER : 60,
SYNCHRONIZED : 61,
THROWS : 62,
TRANSIENT : 63,
VOLATILE : 64,
LBRACE : 65,
RBRACE : 66,
LBRACK : 67,
RBRACK : 68,
DOT : 69,
SEMIC : 70,
COMMA : 71,
LT : 72,
GT : 73,
LTE : 74,
GTE : 75,
EQ : 76,
NEQ : 77,
SAME : 78,
NSAME : 79,
ADD : 80,
SUB : 81,
MUL : 82,
MOD : 83,
INC : 84,
DEC : 85,
SHL : 86,
SHR : 87,
SHU : 88,
AND : 89,
OR : 90,
XOR : 91,
NOT : 92,
INV : 93,
LAND : 94,
LOR : 95,
QUE : 96,
COLON : 97,
ASSIGN : 98,
ADDASS : 99,
SUBASS : 100,
MULASS : 101,
MODASS : 102,
SHLASS : 103,
SHRASS : 104,
SHUASS : 105,
ANDASS : 106,
ORASS : 107,
XORASS : 108,
DIV : 109,
DIVASS : 110,
ARGS : 111,
ARRAY : 112,
BLOCK : 113,
BYFIELD : 114,
BYINDEX : 115,
CALL : 116,
CEXPR : 117,
EXPR : 118,
FORITER : 119,
FORSTEP : 120,
ITEM : 121,
LABELLED : 122,
NAMEDVALUE : 123,
NEG : 124,
OBJECT : 125,
PAREXPR : 126,
PDEC : 127,
PINC : 128,
POS : 129,
BSLASH : 130,
DQUOTE : 131,
SQUOTE : 132,
TAB : 133,
VT : 134,
FF : 135,
SP : 136,
NBSP : 137,
USP : 138,
WhiteSpace : 139,
LF : 140,
CR : 141,
LS : 142,
PS : 143,
LineTerminator : 144,
EOL : 145,
MultiLineComment : 146,
SingleLineComment : 147,
Identifier : 148,
StringLiteral : 149,
HexDigit : 150,
IdentifierStartASCII : 151,
DecimalDigit : 152,
IdentifierPart : 153,
IdentifierNameASCIIStart : 154,
IdentifierNameAmpersatStart : 155,
LPAREN : 156,
RPAREN : 157,
RegularExpressionLiteral : 158,
OctalDigit : 159,
ExponentPart : 160,
DecimalIntegerLiteral : 161,
DecimalLiteral : 162,
OctalIntegerLiteral : 163,
HexIntegerLiteral : 164,
CharacterEscapeSequence : 165,
ZeroToThree : 166,
OctalEscapeSequence : 167,
HexEscapeSequence : 168,
UnicodeEscapeSequence : 169,
EscapeSequence : 170,
BackslashSequence : 171,
RegularExpressionFirstChar : 172,
RegularExpressionChar : 173,
getGrammarFileName: function() { return "ES3.g3"; }
});
org.antlr.lang.augmentObject(ES3Lexer.prototype, {
// $ANTLR start RENDER
mRENDER: function() {
try {
var _type = this.RENDER;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:379:8: ( 'render' )
// ES3.g3:379:10: 'render'
this.match("render");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "RENDER",
// $ANTLR start AMPERSAT
mAMPERSAT: function() {
try {
var _type = this.AMPERSAT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:380:10: ( '@' )
// ES3.g3:380:12: '@'
this.match('@');
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "AMPERSAT",
// $ANTLR start NULL
mNULL: function() {
try {
var _type = this.NULL;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:381:6: ( 'null' )
// ES3.g3:381:8: 'null'
this.match("null");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "NULL",
// $ANTLR start TRUE
mTRUE: function() {
try {
var _type = this.TRUE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:382:6: ( 'true' )
// ES3.g3:382:8: 'true'
this.match("true");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "TRUE",
// $ANTLR start FALSE
mFALSE: function() {
try {
var _type = this.FALSE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:383:7: ( 'false' )
// ES3.g3:383:9: 'false'
this.match("false");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "FALSE",
// $ANTLR start BREAK
mBREAK: function() {
try {
var _type = this.BREAK;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:384:7: ( 'break' )
// ES3.g3:384:9: 'break'
this.match("break");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "BREAK",
// $ANTLR start CASE
mCASE: function() {
try {
var _type = this.CASE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:385:6: ( 'case' )
// ES3.g3:385:8: 'case'
this.match("case");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "CASE",
// $ANTLR start CATCH
mCATCH: function() {
try {
var _type = this.CATCH;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:386:7: ( 'catch' )
// ES3.g3:386:9: 'catch'
this.match("catch");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "CATCH",
// $ANTLR start CONTINUE
mCONTINUE: function() {
try {
var _type = this.CONTINUE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:387:10: ( 'continue' )
// ES3.g3:387:12: 'continue'
this.match("continue");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "CONTINUE",
// $ANTLR start DEFAULT
mDEFAULT: function() {
try {
var _type = this.DEFAULT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:388:9: ( 'default' )
// ES3.g3:388:11: 'default'
this.match("default");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "DEFAULT",
// $ANTLR start DELETE
mDELETE: function() {
try {
var _type = this.DELETE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:389:8: ( 'delete' )
// ES3.g3:389:10: 'delete'
this.match("delete");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "DELETE",
// $ANTLR start DO
mDO: function() {
try {
var _type = this.DO;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:390:4: ( 'do' )
// ES3.g3:390:6: 'do'
this.match("do");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "DO",
// $ANTLR start ELSE
mELSE: function() {
try {
var _type = this.ELSE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:391:6: ( 'else' )
// ES3.g3:391:8: 'else'
this.match("else");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "ELSE",
// $ANTLR start FINALLY
mFINALLY: function() {
try {
var _type = this.FINALLY;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:392:9: ( 'finally' )
// ES3.g3:392:11: 'finally'
this.match("finally");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "FINALLY",
// $ANTLR start FOR
mFOR: function() {
try {
var _type = this.FOR;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:393:5: ( 'for' )
// ES3.g3:393:7: 'for'
this.match("for");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "FOR",
// $ANTLR start FUNCTION
mFUNCTION: function() {
try {
var _type = this.FUNCTION;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:394:10: ( 'function' )
// ES3.g3:394:12: 'function'
this.match("function");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "FUNCTION",
// $ANTLR start IF
mIF: function() {
try {
var _type = this.IF;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:395:4: ( 'if' )
// ES3.g3:395:6: 'if'
this.match("if");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "IF",
// $ANTLR start IN
mIN: function() {
try {
var _type = this.IN;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:396:4: ( 'in' )
// ES3.g3:396:6: 'in'
this.match("in");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "IN",
// $ANTLR start INSTANCEOF
mINSTANCEOF: function() {
try {
var _type = this.INSTANCEOF;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:397:12: ( 'instanceof' )
// ES3.g3:397:14: 'instanceof'
this.match("instanceof");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "INSTANCEOF",
// $ANTLR start NEW
mNEW: function() {
try {
var _type = this.NEW;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:398:5: ( 'new' )
// ES3.g3:398:7: 'new'
this.match("new");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "NEW",
// $ANTLR start RETURN
mRETURN: function() {
try {
var _type = this.RETURN;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:399:8: ( 'return' )
// ES3.g3:399:10: 'return'
this.match("return");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "RETURN",
// $ANTLR start SWITCH
mSWITCH: function() {
try {
var _type = this.SWITCH;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:400:8: ( 'switch' )
// ES3.g3:400:10: 'switch'
this.match("switch");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "SWITCH",
// $ANTLR start THIS
mTHIS: function() {
try {
var _type = this.THIS;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:401:6: ( 'this' )
// ES3.g3:401:8: 'this'
this.match("this");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "THIS",
// $ANTLR start THROW
mTHROW: function() {
try {
var _type = this.THROW;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:402:7: ( 'throw' )
// ES3.g3:402:9: 'throw'
this.match("throw");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "THROW",
// $ANTLR start TRY
mTRY: function() {
try {
var _type = this.TRY;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:403:5: ( 'try' )
// ES3.g3:403:7: 'try'
this.match("try");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "TRY",
// $ANTLR start TYPEOF
mTYPEOF: function() {
try {
var _type = this.TYPEOF;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:404:8: ( 'typeof' )
// ES3.g3:404:10: 'typeof'
this.match("typeof");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "TYPEOF",
// $ANTLR start VAR
mVAR: function() {
try {
var _type = this.VAR;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:405:5: ( 'var' )
// ES3.g3:405:7: 'var'
this.match("var");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "VAR",
// $ANTLR start VOID
mVOID: function() {
try {
var _type = this.VOID;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:406:6: ( 'void' )
// ES3.g3:406:8: 'void'
this.match("void");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "VOID",
// $ANTLR start WHILE
mWHILE: function() {
try {
var _type = this.WHILE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:407:7: ( 'while' )
// ES3.g3:407:9: 'while'
this.match("while");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "WHILE",
// $ANTLR start WITH
mWITH: function() {
try {
var _type = this.WITH;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:408:6: ( 'with' )
// ES3.g3:408:8: 'with'
this.match("with");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "WITH",
// $ANTLR start ABSTRACT
mABSTRACT: function() {
try {
var _type = this.ABSTRACT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:409:10: ( 'abstract' )
// ES3.g3:409:12: 'abstract'
this.match("abstract");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "ABSTRACT",
// $ANTLR start BOOLEAN
mBOOLEAN: function() {
try {
var _type = this.BOOLEAN;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:410:9: ( 'boolean' )
// ES3.g3:410:11: 'boolean'
this.match("boolean");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "BOOLEAN",
// $ANTLR start BYTE
mBYTE: function() {
try {
var _type = this.BYTE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:411:6: ( 'byte' )
// ES3.g3:411:8: 'byte'
this.match("byte");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "BYTE",
// $ANTLR start CHAR
mCHAR: function() {
try {
var _type = this.CHAR;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:412:6: ( 'char' )
// ES3.g3:412:8: 'char'
this.match("char");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "CHAR",
// $ANTLR start CLASS
mCLASS: function() {
try {
var _type = this.CLASS;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:413:7: ( 'class' )
// ES3.g3:413:9: 'class'
this.match("class");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "CLASS",
// $ANTLR start CONST
mCONST: function() {
try {
var _type = this.CONST;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:414:7: ( 'const' )
// ES3.g3:414:9: 'const'
this.match("const");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "CONST",
// $ANTLR start DEBUGGER
mDEBUGGER: function() {
try {
var _type = this.DEBUGGER;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:415:10: ( 'debugger' )
// ES3.g3:415:12: 'debugger'
this.match("debugger");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "DEBUGGER",
// $ANTLR start DOUBLE
mDOUBLE: function() {
try {
var _type = this.DOUBLE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:416:8: ( 'double' )
// ES3.g3:416:10: 'double'
this.match("double");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "DOUBLE",
// $ANTLR start ENUM
mENUM: function() {
try {
var _type = this.ENUM;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:417:6: ( 'enum' )
// ES3.g3:417:8: 'enum'
this.match("enum");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "ENUM",
// $ANTLR start EXPORT
mEXPORT: function() {
try {
var _type = this.EXPORT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:418:8: ( 'export' )
// ES3.g3:418:10: 'export'
this.match("export");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "EXPORT",
// $ANTLR start EXTENDS
mEXTENDS: function() {
try {
var _type = this.EXTENDS;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:419:9: ( 'extends' )
// ES3.g3:419:11: 'extends'
this.match("extends");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "EXTENDS",
// $ANTLR start FINAL
mFINAL: function() {
try {
var _type = this.FINAL;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:420:7: ( 'final' )
// ES3.g3:420:9: 'final'
this.match("final");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "FINAL",
// $ANTLR start FLOAT
mFLOAT: function() {
try {
var _type = this.FLOAT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:421:7: ( 'float' )
// ES3.g3:421:9: 'float'
this.match("float");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "FLOAT",
// $ANTLR start GOTO
mGOTO: function() {
try {
var _type = this.GOTO;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:422:6: ( 'goto' )
// ES3.g3:422:8: 'goto'
this.match("goto");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "GOTO",
// $ANTLR start IMPLEMENTS
mIMPLEMENTS: function() {
try {
var _type = this.IMPLEMENTS;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:423:12: ( 'implements' )
// ES3.g3:423:14: 'implements'
this.match("implements");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "IMPLEMENTS",
// $ANTLR start IMPORT
mIMPORT: function() {
try {
var _type = this.IMPORT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:424:8: ( 'import' )
// ES3.g3:424:10: 'import'
this.match("import");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "IMPORT",
// $ANTLR start INT
mINT: function() {
try {
var _type = this.INT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:425:5: ( 'int' )
// ES3.g3:425:7: 'int'
this.match("int");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "INT",
// $ANTLR start INTERFACE
mINTERFACE: function() {
try {
var _type = this.INTERFACE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:426:11: ( 'interface' )
// ES3.g3:426:13: 'interface'
this.match("interface");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "INTERFACE",
// $ANTLR start LONG
mLONG: function() {
try {
var _type = this.LONG;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:427:6: ( 'long' )
// ES3.g3:427:8: 'long'
this.match("long");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "LONG",
// $ANTLR start NATIVE
mNATIVE: function() {
try {
var _type = this.NATIVE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:428:8: ( 'native' )
// ES3.g3:428:10: 'native'
this.match("native");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "NATIVE",
// $ANTLR start PACKAGE
mPACKAGE: function() {
try {
var _type = this.PACKAGE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:429:9: ( 'package' )
// ES3.g3:429:11: 'package'
this.match("package");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "PACKAGE",
// $ANTLR start PRIVATE
mPRIVATE: function() {
try {
var _type = this.PRIVATE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:430:9: ( 'private' )
// ES3.g3:430:11: 'private'
this.match("private");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "PRIVATE",
// $ANTLR start PROTECTED
mPROTECTED: function() {
try {
var _type = this.PROTECTED;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:431:11: ( 'protected' )
// ES3.g3:431:13: 'protected'
this.match("protected");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "PROTECTED",
// $ANTLR start PUBLIC
mPUBLIC: function() {
try {
var _type = this.PUBLIC;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:432:8: ( 'public' )
// ES3.g3:432:10: 'public'
this.match("public");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "PUBLIC",
// $ANTLR start SHORT
mSHORT: function() {
try {
var _type = this.SHORT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:433:7: ( 'short' )
// ES3.g3:433:9: 'short'
this.match("short");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "SHORT",
// $ANTLR start STATIC
mSTATIC: function() {
try {
var _type = this.STATIC;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:434:8: ( 'static' )
// ES3.g3:434:10: 'static'
this.match("static");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "STATIC",
// $ANTLR start SUPER
mSUPER: function() {
try {
var _type = this.SUPER;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:435:7: ( 'super' )
// ES3.g3:435:9: 'super'
this.match("super");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "SUPER",
// $ANTLR start SYNCHRONIZED
mSYNCHRONIZED: function() {
try {
var _type = this.SYNCHRONIZED;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:436:14: ( 'synchronized' )
// ES3.g3:436:16: 'synchronized'
this.match("synchronized");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "SYNCHRONIZED",
// $ANTLR start THROWS
mTHROWS: function() {
try {
var _type = this.THROWS;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:437:8: ( 'throws' )
// ES3.g3:437:10: 'throws'
this.match("throws");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "THROWS",
// $ANTLR start TRANSIENT
mTRANSIENT: function() {
try {
var _type = this.TRANSIENT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:438:11: ( 'transient' )
// ES3.g3:438:13: 'transient'
this.match("transient");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "TRANSIENT",
// $ANTLR start VOLATILE
mVOLATILE: function() {
try {
var _type = this.VOLATILE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:439:10: ( 'volatile' )
// ES3.g3:439:12: 'volatile'
this.match("volatile");
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "VOLATILE",
// $ANTLR start LBRACE
mLBRACE: function() {
try {
var _type = this.LBRACE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:440:8: ( '{' )
// ES3.g3:440:10: '{'
this.match('{');
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "LBRACE",
// $ANTLR start RBRACE
mRBRACE: function() {
try {
var _type = this.RBRACE;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:441:8: ( '}' )
// ES3.g3:441:10: '}'
this.match('}');
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "RBRACE",
// $ANTLR start LBRACK
mLBRACK: function() {
try {
var _type = this.LBRACK;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:442:8: ( '[' )
// ES3.g3:442:10: '['
this.match('[');
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "LBRACK",
// $ANTLR start RBRACK
mRBRACK: function() {
try {
var _type = this.RBRACK;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:443:8: ( ']' )
// ES3.g3:443:10: ']'
this.match(']');
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "RBRACK",
// $ANTLR start DOT
mDOT: function() {
try {
var _type = this.DOT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:444:5: ( '.' )
// ES3.g3:444:7: '.'
this.match('.');
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "DOT",
// $ANTLR start SEMIC
mSEMIC: function() {
try {
var _type = this.SEMIC;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:445:7: ( ';' )
// ES3.g3:445:9: ';'
this.match(';');
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "SEMIC",
// $ANTLR start COMMA
mCOMMA: function() {
try {
var _type = this.COMMA;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:446:7: ( ',' )
// ES3.g3:446:9: ','
this.match(',');
this.state.type = _type;
this.state.channel = _channel;
}
finally {
}
},
// $ANTLR end "COMMA",
// $ANTLR start LT
mLT: function() {
try {
var _type = this.LT;
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// ES3.g3:447:4: ( '<' )
// ES3.g3:447:6: '<'
this.match('<');
this.state.type = _type;
this.state.channel = _channel;