halotukozak.alpaca.Token
See theToken companion object
Defines an opaque type Token that represents a token used in a lexer.
This type has three type parameters:
Name: The type of the token's name, restricted to a subtype ofValidName.Ctx: The type of the lexer context, restricted to a subtype ofLexerCtx.Value: The type of the token's value.
The exact implementation details of the underlying type are abstracted away by using Any. Opaque types provide type safety without exposing the underlying representation.
Attributes
- Companion
- object
- Experimental
- true
- Source
- lexer.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class IgnoredToken[Ctx]
In this article
