Skip to content

Commit

Permalink
Remove redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Jul 25, 2019
1 parent 17dd0bc commit cfbfd8e
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,42 +46,9 @@ const KEYWORD_TOKENS_MAP = {
'null': TOKENS.NULL
};

const STRING_STATES = {
_START_: 0,
START_QUOTE_OR_CHAR: 1,
ESCAPE: 2
};

const ESCAPES = {
'"': 0, // Quotation mask
'\\': 1, // Reverse solidus
'/': 2, // Solidus
'b': 3, // Backspace
'f': 4, // Form feed
'n': 5, // New line
'r': 6, // Carriage return
't': 7, // Horizontal tab
'u': 8 // 4 hexadecimal digits
};

const NUMBER_STATES = {
_START_: 0,
MINUS: 1,
ZERO: 2,
DIGIT: 3,
POINT: 4,
DIGIT_FRACTION: 5,
EXP: 6,
EXP_DIGIT_OR_SIGN: 7
};


module.exports = {
TOKENS,
TOKEN_COLORS,
PUNCTUATOR_TOKENS_MAP,
KEYWORD_TOKENS_MAP,
STRING_STATES,
ESCAPES,
NUMBER_STATES
KEYWORD_TOKENS_MAP
};

0 comments on commit cfbfd8e

Please sign in to comment.