SharedPackageDefs

fastparse.SharedPackageDefs$
See theSharedPackageDefs companion trait

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def log[T](parse0: () => ParsingRun[T])(implicit ctx: ParsingRun[_], name: Name, logger: Logger): ParsingRun[T]

Wraps a parser to log when it succeeds and fails, and at what index. Useful for seeing what is going on within your parser. Nicely indents the logs for easy reading

Wraps a parser to log when it succeeds and fails, and at what index. Useful for seeing what is going on within your parser. Nicely indents the logs for easy reading

Attributes

def logAfter[T](parse0: () => ParsingRun[T], msg: => Any)(implicit ctx: ParsingRun[_], logger: Logger): ParsingRun[T]

Prints the given message, nicely indented, after the wrapped parser finishes

Prints the given message, nicely indented, after the wrapped parser finishes

Attributes

def logBefore[T](parse0: () => ParsingRun[T], msg: => Any)(implicit ctx: ParsingRun[_], logger: Logger): ParsingRun[T]

Prints the given message, nicely indented, before the wrapped parser starts

Prints the given message, nicely indented, before the wrapped parser starts

Attributes

def opaque[T](parse0: () => ParsingRun[T], msg: String)(implicit ctx: ParsingRun[Any]): ParsingRun[T]