All predicatesShow sourcejs_grammar.pl -- JavaScript grammar

This file provides a tokenizer for JavaScript (EcmaScript). This code supports the quasi quotation syntax javascript, defined in library(http/js_write).

See also
- http://tomcopeland.blogs.com/EcmaScript.html is used for the high-level syntax.
- http://www.ecma-international.org/ecma-262/5.1/ is used for implementing the tokenization code.
Source js_token(-TokenType)//
Matches and classifies the next JavaScript token.
Source token(-Type) is semidet[private]
Get the next token from the input. Fails when encountering the end of the input.
Errors
- syntax_error(Culprit)
Source comment// is semidet[private]
Source string_literal// is semidet[private]
Matches a string literal
Source numeric_literal//[private]
Matches JavaScript notion of a numeric constant
Source regex_literal// is semidet[private]
Matches regex expression /.../flags
Source q_codes//[private]
Shortest list of quoted characters.