NonTerminal

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

Represents a non-terminal symbol in the grammar.

Non-terminals are symbols that can be expanded into other symbols according to the grammar rules. For example, in a typical expression grammar, "expr" and "term" would be non-terminals.

Value parameters

name

the name of the non-terminal

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