RuleTrace

org.parboiled2.RuleTrace
See theRuleTrace companion object
case class RuleTrace(prefix: List[NonTerminal], terminal: Terminal)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Returns a RuleTrace starting with the first RuleTrace.Atomic element or the first sub-trace whose offset from the reported error index is zero (e.g. the RuleTrace.Terminal). If this is wrapped in one or more RuleTrace.NonTerminal.Named the outermost of these is returned instead.

Returns a RuleTrace starting with the first RuleTrace.Atomic element or the first sub-trace whose offset from the reported error index is zero (e.g. the RuleTrace.Terminal). If this is wrapped in one or more RuleTrace.NonTerminal.Named the outermost of these is returned instead.

Attributes

def named(name: String): RuleTrace

Wraps this trace with a RuleTrace.Named wrapper if the given name is non-empty.

Wraps this trace with a RuleTrace.Named wrapper if the given name is non-empty.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product