Object/Class

akka.parboiled2

Rule

Related Docs: class Rule | package parboiled2

Permalink

object Rule extends Rule0

THIS IS NOT PUBLIC API and might become hidden in future. Use only if you know what you are doing!

Source
Rule.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rule
  2. Rule
  3. RuleX
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class Runnable[L <: HList] extends AnyRef

    Permalink

    THIS IS NOT PUBLIC API and might become hidden in future.

    THIS IS NOT PUBLIC API and might become hidden in future. Use only if you know what you are doing!

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(separator: Rule0)(implicit l: Lifter[Seq, HNil, HNil]): Rule[In, OptionalOut]

    Permalink

    Postfix shortcut for zeroOrMore(...).separatedBy(...).

    Postfix shortcut for zeroOrMore(...).separatedBy(...).

    Definition Classes
    Rule
    Annotations
    @compileTimeOnly( ... )
  4. def *(implicit l: Lifter[Seq, HNil, HNil]): Rule[In, OptionalOut] with Repeated

    Permalink

    Postfix shortcut for zeroOrMore.

    Postfix shortcut for zeroOrMore.

    Definition Classes
    Rule
    Annotations
    @compileTimeOnly( ... )
  5. def +(separator: Rule0)(implicit l: Lifter[Seq, HNil, HNil]): Rule[In, StrictOut]

    Permalink

    Postfix shortcut for oneOrMore(...).separatedBy(...).

    Postfix shortcut for oneOrMore(...).separatedBy(...).

    Definition Classes
    Rule
    Annotations
    @compileTimeOnly( ... )
  6. def +(implicit l: Lifter[Seq, HNil, HNil]): Rule[In, StrictOut] with Repeated

    Permalink

    Postfix shortcut for oneOrMore.

    Postfix shortcut for oneOrMore.

    Definition Classes
    Rule
    Annotations
    @compileTimeOnly( ... )
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def ?(implicit l: Lifter[Option, HNil, HNil]): Rule[In, OptionalOut]

    Permalink

    Postfix shortcut for optional.

    Postfix shortcut for optional.

    Definition Classes
    Rule
    Annotations
    @compileTimeOnly( ... )
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def named(name: String): Rule.this.type

    Permalink

    Attaches the given explicit name to this rule.

    Attaches the given explicit name to this rule.

    Definition Classes
    Rule
    Annotations
    @compileTimeOnly( ... )
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. def unary_!(): Rule0

    Permalink

    Creates a "negative syntactic predicate", i.e.

    Creates a "negative syntactic predicate", i.e. a rule that matches only if this rule mismatches and vice versa. The resulting rule doesn't cause the parser to make any progress (i.e. match any input) and also clears out all effects that the underlying rule might have had on the value stack.

    Definition Classes
    Rule
    Annotations
    @compileTimeOnly( ... )
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def |[I2 <: HNil, O2 >: HNil <: HList](that: Rule[I2, O2]): Rule[I2, O2]

    Permalink

    Combines this rule with the given other one in a way that the resulting rule matches if this rule matches or the other one matches.

    Combines this rule with the given other one in a way that the resulting rule matches if this rule matches or the other one matches. If this rule doesn't match the parser is reset and the given alternative tried. This operators therefore implements the "ordered choice' PEG combinator.

    Definition Classes
    Rule
    Annotations
    @compileTimeOnly( ... )
  28. def ~[I2 <: HList, O2 <: HList](that: Rule[I2, O2])(implicit i: TailSwitch[I2, HNil, HNil], o: TailSwitch[HNil, I2, O2]): Rule[Out, Out]

    Permalink

    Concatenates this rule with the given other one.

    Concatenates this rule with the given other one. The resulting rule type is computed on a type-level. Here is an illustration (using an abbreviated HList notation): Rule[, A] ~ Rule[, B] = Rule[, A:B] Rule[A:B:C, D:E:F] ~ Rule[F, G:H] = Rule[A:B:C, D:E:G:H] Rule[A, B:C] ~ Rule[D:B:C, E:F] = Rule[D:A, E:F]

    Definition Classes
    Rule
    Annotations
    @compileTimeOnly( ... )
  29. def ~!~[I2 <: HList, O2 <: HList](that: Rule[I2, O2])(implicit i: TailSwitch[I2, HNil, HNil], o: TailSwitch[HNil, I2, O2]): Rule[Out, Out]

    Permalink

    Same as ~ but with "cut" semantics, meaning that the parser will never backtrack across this boundary.

    Same as ~ but with "cut" semantics, meaning that the parser will never backtrack across this boundary. If the rule being concatenated doesn't match a parse error will be triggered immediately.

    Definition Classes
    Rule
    Annotations
    @compileTimeOnly( ... )

Inherited from Rule[HNil, HNil]

Inherited from RuleX

Inherited from AnyRef

Inherited from Any

Ungrouped