trait RuleDSLBasics extends AnyRef
- Alphabetic
- By Inheritance
- RuleDSLBasics
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait CharRangeSupport extends AnyRef
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
- def ANY: Rule0
Matches any character except EOI.
Matches any character except EOI.
- Annotations
- @compileTimeOnly("Calls to `ANY` must be inside `rule` macro")
- def EOI: Char
Matches the EOI (end-of-input) character.
- def MATCH: Rule0
Matches no character (i.e.
Matches no character (i.e. doesn't cause the parser to make any progress) but succeeds always (as a rule).
- def MISMATCH[I <: HList, O <: HList]: Rule[I, O]
A generic Rule that always fails.
- def MISMATCH0: Rule0
A Rule0 that always fails.
- def anyOf(chars: String): Rule0
Matches any single one of the given characters.
Matches any single one of the given characters.
Note: This helper has O(n) runtime with n being the length of the given string. If your string consists only of 7-bit ASCII chars using a pre-allocated CharPredicate will be more efficient.
- Annotations
- @compileTimeOnly("Calls to `anyOf` must be inside `rule` macro")
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def ch(c: Char): Rule0
Matches the given single character.
Matches the given single character.
- Annotations
- @compileTimeOnly("Calls to `ch` must be inside `rule` macro")
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail(expected: String): Rule0
A rule that always fails and causes the parser to immediately terminate the parsing run.
A rule that always fails and causes the parser to immediately terminate the parsing run. The resulting parse error only has a single trace with a single frame which holds the given error message.
- def failX[I <: HList, O <: HList](expected: String): Rule[I, O]
Fully generic variant of fail.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def ignoreCase(s: String): Rule0
Matches the given string of characters case insensitively.
Matches the given string of characters case insensitively. Note: the given string must be specified in all lower-case! This requirement is currently NOT enforced!
- Annotations
- @compileTimeOnly("Calls to `ignoreCase` must be inside `rule` macro")
- def ignoreCase(c: Char): Rule0
Matches the given single character case insensitively.
Matches the given single character case insensitively. Note: the given character must be specified in lower-case! This requirement is currently NOT enforced!
- Annotations
- @compileTimeOnly("Calls to `ignoreCase` must be inside `rule` macro")
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneOf(chars: String): Rule0
Matches any single character except the ones in the given string and except EOI.
Matches any single character except the ones in the given string and except EOI.
Note: This helper has O(n) runtime with n being the length of the given string. If your string consists only of 7-bit ASCII chars using a pre-allocated CharPredicate will be more efficient.
- Annotations
- @compileTimeOnly("Calls to `noneOf` must be inside `rule` macro")
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit def predicate(p: CharPredicate): Rule0
Matches any (single) character matched by the given
CharPredicate.Matches any (single) character matched by the given
CharPredicate.- Annotations
- @compileTimeOnly("Calls to `predicate` must be inside `rule` macro")
- implicit def str(s: String): Rule0
Matches the given string of characters.
Matches the given string of characters.
- Annotations
- @compileTimeOnly("Calls to `str` must be inside `rule` macro")
- implicit def str2CharRangeSupport(s: String): CharRangeSupport
- Annotations
- @compileTimeOnly("Calls to `str2CharRangeSupport` must be inside `rule` macro")
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueMap[T](m: Map[String, T], ignoreCase: Boolean = false)(implicit h: HListable[T]): RuleN[Out]
Matches any of the given maps keys and pushes the respective value upon a successful match.
Matches any of the given maps keys and pushes the respective value upon a successful match.
- ignoreCase
a flag that tells if map keys case should be ignored
- Annotations
- @compileTimeOnly("Calls to `valueMap` must be inside `rule` macro")
- implicit def valueMap[T](m: Map[String, T])(implicit h: HListable[T]): RuleN[Out]
Matches any of the given maps keys and pushes the respective value upon a successful match.
Matches any of the given maps keys and pushes the respective value upon a successful match.
- Annotations
- @compileTimeOnly("Calls to `valueMap` must be inside `rule` macro")
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()