t

org.parboiled2

RuleDSLBasics

trait RuleDSLBasics extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RuleDSLBasics
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait CharRangeSupport extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def ANY: Rule0

    Matches any character except EOI.

    Matches any character except EOI.

    Annotations
    @compileTimeOnly("Calls to `ANY` must be inside `rule` macro")
  5. def EOI: Char

    Matches the EOI (end-of-input) character.

  6. 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).

  7. def MISMATCH[I <: HList, O <: HList]: Rule[I, O]

    A generic Rule that always fails.

  8. def MISMATCH0: Rule0

    A Rule0 that always fails.

  9. 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")
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. 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")
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. 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.

  16. def failX[I <: HList, O <: HList](expected: String): Rule[I, O]

    Fully generic variant of fail.

  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. 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")
  21. 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")
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. 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")
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. 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")
  28. 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")
  29. implicit def str2CharRangeSupport(s: String): CharRangeSupport
    Annotations
    @compileTimeOnly("Calls to `str2CharRangeSupport` must be inside `rule` macro")
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. 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")
  33. 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")
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped