47 lines
1.9 KiB
JavaScript
Executable File
47 lines
1.9 KiB
JavaScript
Executable File
exports.TokenType = {
|
|
String: 'String',
|
|
Comment: 'Comment',
|
|
Unknown: 'Unknown',
|
|
Newline: 'Newline',
|
|
Space: 'Space',
|
|
Tab: 'Tab',
|
|
ExclamationMark: 'ExclamationMark', // !
|
|
QuotationMark: 'QuotationMark', // "
|
|
NumberSign: 'NumberSign', // #
|
|
DollarSign: 'DollarSign', // $
|
|
PercentSign: 'PercentSign', // %
|
|
Ampersand: 'Ampersand', // &
|
|
Apostrophe: 'Apostrophe', // '
|
|
LeftParenthesis: 'LeftParenthesis', // (
|
|
RightParenthesis: 'RightParenthesis', // )
|
|
Asterisk: 'Asterisk', // *
|
|
PlusSign: 'PlusSign', // +
|
|
Comma: 'Comma', // ,
|
|
HyphenMinus: 'HyphenMinus', // -
|
|
FullStop: 'FullStop', // .
|
|
Solidus: 'Solidus', // /
|
|
Colon: 'Colon', // :
|
|
Semicolon: 'Semicolon', // ;
|
|
LessThanSign: 'LessThanSign', // <
|
|
EqualsSign: 'EqualsSign', // =
|
|
GreaterThanSign: 'GreaterThanSign', // >
|
|
QuestionMark: 'QuestionMark', // ?
|
|
CommercialAt: 'CommercialAt', // @
|
|
LeftSquareBracket: 'LeftSquareBracket', // [
|
|
ReverseSolidus: 'ReverseSolidus', // \
|
|
RightSquareBracket: 'RightSquareBracket', // ]
|
|
CircumflexAccent: 'CircumflexAccent', // ^
|
|
LowLine: 'LowLine', // _
|
|
LeftCurlyBracket: 'LeftCurlyBracket', // {
|
|
VerticalLine: 'VerticalLine', // |
|
|
RightCurlyBracket: 'RightCurlyBracket', // }
|
|
Tilde: 'Tilde', // ~
|
|
Identifier: 'Identifier',
|
|
DecimalNumber: 'DecimalNumber'
|
|
};
|
|
|
|
// var i = 1;
|
|
// for (var key in exports.TokenType) {
|
|
// exports.TokenType[key] = i++;
|
|
// }
|