Skip to content

Tokenizer Struct ​

Definition ​

Lexical tokenizer for an expression

  • Namespace: JASE.Expressions
  • Assembly: JASE.Expressions.dll

Value type
Instances of this type are copied by value.

Remarks ​

The Tokenizer consumes an input character span and produces a sequence of Token instances representing identifiers, literals, operators, punctuation, and keywords.

When an ISymbolResolver is supplied, the tokenizer may classify identifiers as Type, Function, or Property based on the symbol information returned from ResolveSymbolKind. When the resolver is null, identifiers are treated purely lexically and emitted as Identifier.

The tokenizer supports:

Boolean literals (true, false)null literalInteger and decimal numeric literals String literals with escape sequences and optional #date#-style date literals (e.g. "#2025-01-01T00:00:00Z#")

Common operators (+ - * / % == != >= <= > < && || ??), conditional tokens (?, :), parentheses, brackets, commas, and dots.