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 Serializable
trait Product
trait Equals
trait Token[Name, Ctx, Nothing]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala