IndentParsers

parsers for indentations defined with packrat parsing

trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
trait Parsers
object Parser

Type members

Classlikes

case
class Data(indents: List[Int], steps: List[Int], needUppercase: Boolean) extends DataType
abstract
class LocationalParser[+T <: Locational] extends Parser[T]

Inherited classlikes

protected
trait DataType
Inherited from
EPackratParsers
object EMPTY
Inherited from
EPackratParsers
abstract
class EPackratParser[+T]
Inherited from
EPackratParsers
class EPackratReader[+T <: Elem](underlying: Reader[T])
Inherited from
EPackratParsers
case
class EPos(underlying: Position, emptyMatched: Boolean)
Inherited from
EPackratParsers
case
class Error
Inherited from
Parsers
case
class Failure
Inherited from
Parsers
trait From[T](using parser: Parser[T])
Inherited from
BasicParsers
sealed abstract
class NoSuccess
Inherited from
Parsers
object NoSuccess
Inherited from
Parsers
abstract
trait OnceParser[+T]
Inherited from
Parsers
sealed abstract
class ParseResult[+T]
Inherited from
Parsers
abstract
class Parser[+T]
Inherited from
Parsers
case
class Success[+T]
Inherited from
Parsers
case
class ~[+a, +b]
Inherited from
Parsers

Types

protected
type In = EPackratReader[Char]

Inherited types

type Elem >: Char <: Char
Inherited from
RegexParsers
type Input >: Reader[Elem] <: Reader[Elem]
Inherited from
Parsers

Value members

Concrete methods

protected
def handleReader[T](in: Input)(f: In => ParseResult[T]): ParseResult[T]
override
Definition Classes

Inherited methods

def OnceParser[T](f: Input => ParseResult[T]): Parser[T] & OnceParser[T]
Inherited from
Parsers
def Parser[T](f: Input => ParseResult[T]): Parser[T]
Inherited from
Parsers
def accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]
Inherited from
Parsers
def accept[ES](es: ES)(implicit f: ES => List[Elem]): Parser[List[Elem]]
Inherited from
Parsers
def acceptIf(p: Elem => Boolean)(err: Elem => String): Parser[Elem]
Inherited from
Parsers
def acceptMatch[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]
Inherited from
Parsers
def acceptSeq[ES](es: ES)(implicit f: ES => Iterable[Elem]): Parser[List[Elem]]
Inherited from
Parsers
def chainl1[T, U](first: => Parser[T], p: => Parser[U], q: => Parser[(T, U) => T]): Parser[T]
Inherited from
Parsers
def chainl1[T](p: => Parser[T], q: => Parser[(T, T) => T]): Parser[T]
Inherited from
Parsers
def chainr1[T, U](p: => Parser[T], q: => Parser[(T, U) => U], combine: (T, U) => U, first: U): Parser[U]
Inherited from
Parsers
def commit[T](p: => Parser[T]): Parser[T]
Inherited from
Parsers
def decimalNumber: Parser[String]
Inherited from
JavaTokenParsers
def elem(e: Elem): Parser[Elem]
Inherited from
Parsers
def elem(kind: String, p: Elem => Boolean): Parser[Elem]
Inherited from
Parsers
def err(msg: String): Parser[Nothing]
Inherited from
Parsers
def errHandle[T](parser: Parser[T], result: ParseResult[T]): T
Inherited from
BasicParsers
def failure(msg: String): Parser[Nothing]
Inherited from
Parsers
Inherited from
JavaTokenParsers
def fromFileWithParser[T](f: String, parser: Parser[T]): T
Inherited from
BasicParsers
def guard[T](p: => Parser[T]): Parser[T]
Inherited from
Parsers
protected
def handleWhiteSpace(source: CharSequence, offset: Int): Int
Inherited from
RegexParsers
def ident: Parser[String]
Inherited from
JavaTokenParsers
def log[T](p: => Parser[T])(name: String): Parser[T]
Inherited from
Parsers
def memo[T](p: Parser[T]): EPackratParser[T]
Inherited from
EPackratParsers
def mkList[T]: T ~ List[T] => List[T]
Inherited from
Parsers
def not[T](p: => Parser[T]): Parser[Unit]
Inherited from
Parsers
def opt[T](p: => Parser[T]): Parser[Option[T]]
Inherited from
Parsers
def parse[T](str: String)(using parser: Parser[T]): T
Inherited from
BasicParsers
def parse[T](p: Parser[T], in: Reader): ParseResult[T]
Inherited from
RegexParsers
def parse[T](p: Parser[T], in: CharSequence): ParseResult[T]
Inherited from
RegexParsers
def parse[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
Inherited from
RegexParsers
def parseAll[T](p: Parser[T], in: CharSequence): ParseResult[T]
Inherited from
RegexParsers
def parseAll[T](p: Parser[T], in: Reader): ParseResult[T]
Inherited from
RegexParsers
def parseAll[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
Inherited from
RegexParsers
def parseBy[T](parser: Parser[T])(str: String): T
Inherited from
BasicParsers
override
def phrase[T](p: Parser[T]): EPackratParser[T]
Definition Classes
EPackratParsers -> Parsers
Inherited from
EPackratParsers
override
def positioned[T <: Positional](p: => Parser[T]): Parser[T]
Definition Classes
RegexParsers -> Parsers
Inherited from
RegexParsers
def rep[T](p: => Parser[T]): Parser[List[T]]
Inherited from
Parsers
@migration("The `p0` call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.", "2.9.0")
def rep1[T](first: => Parser[T], p0: => Parser[T]): Parser[List[T]]
Inherited from
Parsers
def rep1[T](p: => Parser[T]): Parser[List[T]]
Inherited from
Parsers
def rep1sep[T](p: => Parser[T], q: => Parser[Any]): Parser[List[T]]
Inherited from
Parsers
def repN[T](num: Int, p: => Parser[T]): Parser[List[T]]
Inherited from
Parsers
def repsep[T](p: => Parser[T], q: => Parser[Any]): Parser[List[T]]
Inherited from
Parsers
Inherited from
RegexParsers
Inherited from
RegexParsers
def skipWhitespace: Boolean
Inherited from
RegexParsers
@migration("`stringLiteral` allows escaping single and double quotes, but not forward slashes any longer.", "2.10.0")
def stringLiteral: Parser[String]
Inherited from
JavaTokenParsers
def success[T](v: T): Parser[T]
Inherited from
Parsers
protected
def trimInput[T](in: Input): Input
Inherited from
BasicParsers
def wholeNumber: Parser[String]
Inherited from
JavaTokenParsers

Concrete fields

val EOL: Regex

end of line

end of line

val dedent: Parser[Unit]

a dedent parser

a dedent parser

val indent: Parser[Unit]

a indent parser

a indent parser

val next: Parser[Unit]

a next parser

a next parser

val upper: Parser[Unit]

turn on needUppercase symbols

turn on needUppercase symbols

override
val whiteSpace: Regex

treat only spaces as white spaces

treat only spaces as white spaces

Inherited fields

lazy
val bigint: Parser[BigInt]
Inherited from
BasicParsers
lazy
val bool: Parser[Boolean]
Inherited from
BasicParsers
lazy
val camel: Regex
Inherited from
BasicParsers
lazy
val codeUnit: Parser[Char]
Inherited from
BasicParsers
lazy
val decimal: Parser[BigDecimal]
Inherited from
BasicParsers
lazy
val double: Parser[Double]
Inherited from
BasicParsers
lazy
val int: Parser[Int]
Inherited from
BasicParsers
lazy
val integer: Regex
Inherited from
BasicParsers
lazy
val loc: Parser[Loc]
Inherited from
BasicParsers
lazy
val newline: Regex
Inherited from
BasicParsers
lazy
val number: Regex
Inherited from
BasicParsers
lazy
val pos: Parser[Pos]
Inherited from
BasicParsers
lazy
val string: Parser[String]
Inherited from
BasicParsers
lazy

white spaces with comments

white spaces with comments

Inherited from
BasicParsers
lazy
val word: Regex
Inherited from
BasicParsers

Givens

Inherited givens

protected
given given_Conversion_Input_Pos: Conversion[Input, Pos]

implicit conversion from scala parser's Input to util.Pos

implicit conversion from scala parser's Input to util.Pos

Inherited from
BasicParsers

Implicits

Implicits

implicit override
def literal(s: String): Parser[String]

a parser that matches a literal string

a parser that matches a literal string

Definition Classes
RegexParsers
implicit

implicit conversion from parsers to locational parsers

implicit conversion from parsers to locational parsers

Inherited implicits

implicit
def accept(e: Elem): Parser[Elem]
Inherited from
Parsers
implicit
def parser2packrat[T](p: => Parser[T]): EPackratParser[T]
Inherited from
EPackratParsers
implicit
def regex(r: Regex): Parser[String]
Inherited from
RegexParsers