Parsers
A trait that provides Parser factory methods that conform to a particular input Expr type parameter.
In scala 3, the Parser companion object contains methods similar to these for quoted.Expr, and as such this would generally by calling methods directly on Parser. However, since in scala 2 the Expr depends on a particular instance of blackbox.Context
, instead an Parsers must be constructed from the Parser companion object's macroParsers
method that takes a Context.
Attributes
- Source
- Parser.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Grouped members
String-Part
Succeeds if the next set of characters in the input is equal to the given string
Succeeds if the next set of characters in the input is equal to the given string
Attributes
- Source
- Parser.scala
String-Part as Char
Succeeds if the next character is a member of the given Set; captures that character
Succeeds if the next character is a member of the given Set; captures that character
Attributes
- Source
- Parser.scala
Succeeds if the next character is a member of the given Seq; captures that character
Succeeds if the next character is a member of the given Seq; captures that character
Attributes
- Source
- Parser.scala
Succeeds if the next character is a member of the given String; captures that character
Succeeds if the next character is a member of the given String; captures that character
Attributes
- Source
- Parser.scala
String-Part as Codepoint
Succeeds if the next codepoint is a member of the given Set; captures that code point
Succeeds if the next codepoint is a member of the given Set; captures that code point
Attributes
- Source
- Parser.scala
Succeeds if the next codepoint is a member of the given Seq; captures that code point
Succeeds if the next codepoint is a member of the given Seq; captures that code point
Attributes
- Source
- Parser.scala
Succeeds if the next codepoint is a member of the given string; captures that code point
Succeeds if the next codepoint is a member of the given string; captures that code point
Attributes
- Source
- Parser.scala
Succeeds if the next codepoint matches the given predicate; captures that code point
Succeeds if the next codepoint matches the given predicate; captures that code point
Attributes
- Source
- Parser.scala
Argument-Part
A parser that succeeds iff the next part of the input is an arg
with the given type, and captures the arg's tree
A parser that succeeds iff the next part of the input is an arg
with the given type, and captures the arg's tree
Attributes
- Source
- Parser.scala
Constant
A parser that always reports a failure
A parser that consumes no input and always succeeds
Position
A parser that succeeds iff the input is empty
Miscellaneous
Indirectly refers to a parser, to allow for mutual-recursion
A parser that acts like the Interpolator when interpolating, and like the Extractor when extracting
A parser that acts like the Interpolator when interpolating, and like the Extractor when extracting
Attributes
- Source
- Parser.scala