IgnoredToken
alpaca.internal.lexer.IgnoredToken
final case class IgnoredToken[Name <: ValidName, +Ctx <: LexerCtx](info: TokenInfo, ctxManipulation: Ctx => Unit) extends Token[Name, Ctx, Nothing]
A token that is matched but not included in the output.
Ignored tokens are useful for whitespace, comments, and other lexical elements that should be recognized but not passed to the parser.
Type parameters
- Ctx
-
the global context type
- Name
-
the token name type
Value parameters
- ctxManipulation
-
function to update context
- info
-
token information
Attributes
- Experimental
- true
- Source
- Token.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article
