Module anysexpr::parse

source ·
Expand description

Translating a character stream to a token stream. This is (currently) called “parser” because it fully parses atoms (like strings, symbols, etc.), thus “tokenizer” may be selling it short (?). The only tokens denoting nesting are Token::Open and Token::Close. See read if interested in trees rather than atoms / tokens.

Structs

Enums

Functions

  • Possibly return opening or closing token for a given character.
  • Parse a stream of characters and their positions into a stream of tokens (atoms or opening/closing tokens).