Module boa_parser::lexer

source ·
Expand description

Boa’s lexical analyzer(Lexer) for ECMAScript source code.

The Lexer splits its input source code into a sequence of input elements called tokens, represented by the Token structure. It also removes whitespace and comments and attaches them to the next token.

This is tightly coupled with the parser due to the javascript goal-symbol requirements as documented by the spec.

More information:

Re-exports§

Modules§

  • This module contains the errors used by the lexer.
  • Boa’s lexing for ECMAScript regex literals.
  • Boa’s implementation of all ECMAScript Tokens.

Structs§

  • Lexer or tokenizer for the Boa JavaScript Engine.