trait Parser[+Result] extends AnyRef
- Alphabetic
- By Inheritance
- Parser
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def parse(input: TokenIterator): ParseResult[Result]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
*(): Parser[List[Result]]
r.*appliesrzero or more times and returns a list of the results. -
def
+(): Parser[List[Result]]
r.+appliesrone or more times and returns a list of the results. -
def
<~[Result2](rhs: ⇒ Parser[Result2]): Parser[Result]
lhs <~ rhsapplieslhsfollowed byrhsand returns the result oflhs. -
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
?(): Parser[Option[Result]]
r.?optionally matchesr, producingSome(res)as the result ifrsucceeds with the resultresorNoneifrfails. -
def
^^[Result2](f: (Result) ⇒ Result2): Parser[Result2]
Applies
fto the result of this rule if this rule is matched successfully and yields the result offas the result of the rule.Applies
fto the result of this rule if this rule is matched successfully and yields the result offas the result of the rule.This is also known as the Japanese Smiley Operator.
-
def
^^ ⇒ Result2): Parser[Result2]
Applies
fto the result of this rule and the location of the match if this rule is matched successfully and yields the result offas the result of the rule. -
def
^^^[Result2](exp: ⇒ Result2): Parser[Result2]
If this rule matches, return a successful result containing the given, lazily evaluated, expression.
-
def
^^^ ⇒ Result2): Parser[Result2]
Applies
fto the location of the match if this rule is matched successfully and yields the result offas the result of the rule. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mockParse(input: Token): ParseResult[Result]
Pretend we're parsing a token stream that contains just this one token.
Pretend we're parsing a token stream that contains just this one token. We use this to check whether the alternative could've matched the current token (or an expansion of the current token) as well, when the left side of a | already matched (and we therefore do not want to advance the token stream any further)
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @throws( ... )
-
def
|[Result2 >: Result](rhs: ⇒ Parser[Result2]): Parser[Result2]
lhs | rhsfirst tries to apply the rulelhs.lhs | rhsfirst tries to apply the rulelhs. If this fails *without consuming any tokens*,rhsis applied instead. This is successful iflhsorrhswere applied successfully, otherwise it's a failure. In case of a success the result value will be that of the rule that was successfully applied. -
def
~[Result2](rhs: ⇒ Parser[Result2]): Parser[(Result, Result2)]
lhs ~ rhsapplieslhsfollowed byrhs(iflhswas successful).lhs ~ rhsapplieslhsfollowed byrhs(iflhswas successful). The result will be a tuple containing the results of bothlhsandrhs. -
def
~>[Result2](rhs: ⇒ Parser[Result2]): Parser[Result2]
lhs ~> rhsapplieslhsfollowed byrhsand returns the result ofrhs. -
def
~^[Result2](rhs: (Result) ⇒ Parser[Result2]): Parser[Result2]
lhs ~^ (r => rhs(r))applieslhsfollowed byrhs(r)(iflhswas successful,rhs(r)ris the result of lhs). The final result will be the result of.