A simple JavaScript 1.5 lexer which is used for the JavaScript extractor.
Unknown Field: copyright | |
| |
Unknown Field: license | |
BSD, see LICENSE for more details. |
Variable | division_re |
Undocumented |
Variable | dotted_name_re |
Undocumented |
Variable | escapes |
Undocumented |
Variable | line_join_re |
Undocumented |
Variable | line_re |
Undocumented |
Variable | name_re |
Undocumented |
Variable | operators |
Undocumented |
Variable | regex_re |
Undocumented |
Variable | Token |
Undocumented |
Variable | uni_escape_re |
Undocumented |
Function | get_rules |
Get a tokenization rule list given the passed syntax options. |
Function | indicates_division |
A helper function that helps the tokenizer to decide if the current token may be followed by a division operator. |
Function | tokenize |
Tokenize JavaScript/JSX source. Returns a generator of tokens. |
Function | unquote_string |
Unquote a string with JavaScript rules. The string has to start with string delimiters (', " or the back-tick/grave accent (for template strings).) |
Variable | _rules |
Undocumented |
Get a tokenization rule list given the passed syntax options.
Internal to this module.
Parameters | |
source | Undocumented |
jsx | Enable (limited) JSX parsing. |
dotted | Read dotted names as single name token. |
template_string | Support ES6 template strings |