abstract class StringGrammar extends CustomGrammarWithoutChildren with BiGrammarWithoutChildren
Takes a grammar for parsing, and uses toString for printing. so the result of the grammar is exactly what has been consumed. verifyWhenPrinting When printing, make sure the string to print can be consumed by the grammar.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- StringGrammar
- BiGrammarWithoutChildren
- CustomGrammarWithoutChildren
- Printer
- BiGrammar
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new StringGrammar(verifyWhenPrinting: Boolean = false)
Abstract Value Members
- abstract def getParserBuilder(keywords: Set[String]): BiGrammarToParser.Parser[Any]
- Definition Classes
- CustomGrammarWithoutChildren
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def children: Seq[BiGrammar]
- Definition Classes
- BiGrammarWithoutChildren → BiGrammar
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def containsParser(recursive: (BiGrammar) => Boolean): Boolean
- Definition Classes
- StringGrammar → BiGrammar
- def containsParser(): Boolean
- Definition Classes
- BiGrammar
- def deepClone: BiGrammar
- Definition Classes
- BiGrammar
- def deepMap(function: (BiGrammar) => BiGrammar): BiGrammar
- Definition Classes
- BiGrammar
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def flattenOptionSeq: BiGrammar
- Definition Classes
- BiGrammar
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getLeftChildren(recursive: (BiGrammar) => Seq[BiGrammar]): Seq[BiGrammar]
- Attributes
- protected
- Definition Classes
- BiGrammar
- def getLeftChildren: Seq[BiGrammar]
- Definition Classes
- BiGrammar
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- lazy val height: Int
- Definition Classes
- BiGrammar
- def indent(width: Int = 2): BiGrammar
- Definition Classes
- BiGrammar
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLeftRecursive: Boolean
- Definition Classes
- BiGrammar
- def map(function: (ResponsiveDocument) => ResponsiveDocument): Printer[Any]
- Definition Classes
- Printer
- def map[T, U](afterParsing: (T) => U, beforePrinting: (U) => T)(implicit arg0: ClassTag[U]): BiGrammar
- Definition Classes
- BiGrammar
- def mapSome[T, U](afterParsing: (T) => U, beforePrinting: (U) => Option[T])(implicit arg0: ClassTag[U]): BiGrammar
- Definition Classes
- BiGrammar
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def option: BiGrammar
- Definition Classes
- BiGrammar
- def optionToSeq: BiGrammar
- Definition Classes
- BiGrammar
- lazy val parser: SingleResultParser[Any]
- def selfAndDescendants: Seq[BiGrammar]
- Definition Classes
- BiGrammar
- def seqToSet: BiGrammar
- Definition Classes
- BiGrammar
- def setValue[T](value: T)(implicit arg0: ClassTag[T]): BiGrammar
- Definition Classes
- BiGrammar
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- BiGrammar → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withChildren(newChildren: Seq[BiGrammar]): BiGrammarWithoutChildren
- Definition Classes
- BiGrammarWithoutChildren → BiGrammar
- def write(from: WithMap[Any]): TryState[ResponsiveDocument]
- Definition Classes
- StringGrammar → Printer
- def |(other: BiGrammar): BiChoice
- Definition Classes
- BiGrammar
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.