ElmLexer
Provides tokenisation primitives for the Elm language dialect.
Elm is indentation-sensitive, so newlines are structurally significant. The lexer handles identifiers (lower and upper), operators, keywords, numeric and string literals, and whitespace management.
Attributes
- Source
- ElmLexer.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ElmLexer.type
Members list
Value members
Concrete methods
Parse content wrapped in curly braces.
Parse content wrapped in square brackets.
Parse a comma-separated list.
Parse a comma-separated list with at least one element.
Fully wraps a parser: skips leading whitespace and asserts end-of-input.
Fully wraps a parser: skips leading whitespace and asserts end-of-input.
Attributes
- Source
- ElmLexer.scala
Parse a specific keyword.
Parse content wrapped in parentheses.
Parse a specific symbol/operator.
Concrete fields
A character literal.
Matches end-of-line or end-of-input.
A floating-point literal.
Matches a single space or tab (horizontal whitespace).
Skips zero or more horizontal whitespace characters.
Any identifier (lower or upper).
An integer literal.
Elm reserved keywords. Exposed so tooling (editor tokenizers, doc generators) can stay in sync with the parser's notion of "keyword" without duplicating the list.
Elm reserved keywords. Exposed so tooling (editor tokenizers, doc generators) can stay in sync with the parser's notion of "keyword" without duplicating the list.
Attributes
- Source
- ElmLexer.scala
A lower-case identifier: starts with a lowercase letter or underscore.
A lower-case identifier: starts with a lowercase letter or underscore.
Attributes
- Source
- ElmLexer.scala
Matches a newline character.
A user-defined operator.
Elm hard operators. Exposed so tooling (editor tokenizers, doc generators) can stay in sync with the parser's notion of "operator" without duplicating the list.
Elm hard operators. Exposed so tooling (editor tokenizers, doc generators) can stay in sync with the parser's notion of "operator" without duplicating the list.
Attributes
- Source
- ElmLexer.scala
A string literal.
An upper-case identifier: starts with an uppercase letter.