| 183 | } |
| 184 | |
| 185 | static readIdentifier() { |
| 186 | let name = ''; |
| 187 | while ( |
| 188 | (Parser.currentCharacterCode >= 97 && |
| 189 | Parser.currentCharacterCode <= 122) || // [a-z] |
| 190 | (Parser.currentCharacterCode >= 65 && |
| 191 | Parser.currentCharacterCode <= 90) || // [A-Z] |
| 192 | (Parser.currentCharacterCode >= 48 && |
| 193 | Parser.currentCharacterCode <= 57) || // [1-9] |
| 194 | Parser.currentCharacter === '_' |
| 195 | ) { |
| 196 | name += Parser.currentCharacter; |
| 197 | Parser.parserPosition++; |
| 198 | } |
| 199 | return name; |
| 200 | } |
| 201 | |
| 202 | static readNumber() { |
| 203 | let number = ''; |