package parboiled2
- Alphabetic
- By Inheritance
- parboiled2
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
DynamicRuleDispatch[P <: Parser, L <: HList] extends AnyRef
Runs one of the rules of a parser instance of type
P
given the rules name.Runs one of the rules of a parser instance of type
P
given the rules name. The rule must have typeRuleN[L]
. -
trait
DynamicRuleHandler[P <: Parser, L <: HList] extends DeliveryScheme[L]
An application needs to implement this interface to receive the result of a dynamic parsing run.
An application needs to implement this interface to receive the result of a dynamic parsing run. Often times this interface is directly implemented by the Parser class itself (even though this is not a requirement).
-
class
ErrorFormatter extends AnyRef
Abstraction for error formatting logic.
Abstraction for error formatting logic. Instantiate with a custom configuration or override with custom logic.
- case class ParseError(position: Position, principalPosition: Position, traces: Seq[RuleTrace]) extends RuntimeException with Product with Serializable
- abstract class Parser extends RuleDSL
- trait ParserInput extends AnyRef
- type PopRule[-L <: HList] = Rule[L, HNil]
-
case class
Position(index: Int, line: Int, column: Int) extends Product with Serializable
Defines a position in an ParserInput.
Defines a position in an ParserInput.
- index
index into the input buffer (0-based)
- line
the text line the error occurred in (1-based)
- column
the text column the error occurred in (1-based)
- trait Repeated extends AnyRef
-
sealed
class
Rule[-I <: HList, +O <: HList] extends RuleX
The general model of a parser rule.
The general model of a parser rule. It is characterized by consuming a certain number of elements from the value stack (whose types are captured by the HList type parameter
I
for "Input") and itself pushing a certain number of elements onto the value stack (whose types are captured by the HList type parameterO
for "Output").At runtime there are only two instances of this class which signal whether the rule has matched (or mismatched) at the current point in the input.
- type Rule0 = Rule[HNil, HNil]
- type Rule1[+T] = Rule[HNil, ::[T, HNil]]
- type Rule2[+A, +B] = Rule[HNil, ::[A, ::[B, HNil]]]
- abstract class RuleDSL extends RuleDSLBasics with RuleDSLCombinators with RuleDSLActions
- trait RuleDSLActions extends AnyRef
- trait RuleDSLBasics extends AnyRef
- trait RuleDSLCombinators extends AnyRef
- type RuleN[+L <: HList] = Rule[HNil, L]
- trait RuleRunner[P <: Parser, L <: HList] extends AnyRef
- case class RuleTrace(prefix: List[NonTerminal], terminal: Terminal) extends Product with Serializable
- sealed trait RuleX extends AnyRef
-
class
ValueStack extends Iterable[Any]
A mutable untyped stack of values.
A mutable untyped stack of values. In most cases you won't have to access its API directly since parboiled2's DSL should allow you a safer and easier way to interact with the stack. However, in some cases, when you know what you are doing, direct access can be helpful.
- class ValueStackOverflowException extends RuntimeException
- class ValueStackUnderflowException extends RuntimeException
Value Members
- val EOI: Char
- val EmptyArray: Array[Any]
- val ISO-8859-1: Charset
- val UTF8: Charset
- object CharUtils
- object DynamicRuleDispatch
- object Parser
- object ParserInput
- object ParserMacros
- object Position extends Serializable
-
object
Rule extends Rule0
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!
- object RuleTrace extends Serializable