case class Terminal(s: String) extends Word with Product with Serializable
A terminal symbol of the grammar
Terminals look like single-quoted versions of themselves:
scala> import org.benknoble.ebnf._ import org.benknoble.ebnf._ scala> val t = Terminal("abc").format t: String = 'abc'
- s
the String representing the terminal symbol
- Alphabetic
- By Inheritance
- Terminal
- Serializable
- Serializable
- Product
- Equals
- Word
- Expr
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Terminal(s: String)
create a new Terminal
create a new Terminal
- s
the String representing the terminal symbol
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
*(): Expr
Returns a org.benknoble.ebnf.Repetition of this
Returns a org.benknoble.ebnf.Repetition of this
- Definition Classes
- Expr
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
?(): Expr
Returns a org.benknoble.ebnf.Option of this
Returns a org.benknoble.ebnf.Option of this
- Definition Classes
- Expr
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
format: String
Returns a formatted version of this
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val s: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
||(right: Expr): Expr
Returns an org.benknoble.ebnf.Alternation
-
def
~(right: Expr): Expr
Returns a org.benknoble.ebnf.Sequence