Terminal

alpaca.internal.parser.Terminal
See theTerminal companion object
final sealed case class Terminal(name: String) extends AnyVal

Represents a terminal symbol in the grammar.

Terminals are the basic tokens that come from the lexer and cannot be expanded further. For example, numbers, identifiers, and operators are typically terminals.

Value parameters

name

the name of the terminal (token name)

Attributes

Companion
object
Experimental
true
Source
Symbol.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all

Members list

Type members

Inherited and Abstract types

type IsEmpty <: Boolean

Attributes

Inherited from:
Symbol (hidden)
Source
Symbol.scala

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