wright

Module lexer

Source
Available on crate feature lexer only.
Expand description

First pass lexer that gets run on the source code and returns a series of tokens with their associated Fragments.

Note that this will strip out comments and whitespace, returning only fragments that match one of the paterns defined for tokens.

Modules§

  • Implementation of comment token lexing.
  • Implementation related to parsing keywords and identifiers.
  • Implementation for lexing integer literals.
  • Lexing implementation for quoted literals.
  • Token models.
  • Trivial tokens and their implementation.

Structs§

  • The lexical analyser for wright. This produces a series of tokens that make up the larger elements of the language.