Package

scala.meta.internal

fastparse

Permalink

package fastparse

Visibility
  1. Public
  2. All

Type Members

  1. abstract class Api[Elem, Repr] extends AnyRef

    Permalink

    This is basically a trait which contains the "public" API to fastparse packages.

    This is basically a trait which contains the "public" API to fastparse packages.

    It aliases all the different parsers available in fastparse.parsers.*, as well as many of the other useful types such as Mutable and Parsed and ParserInput, and fixes their type-parameters to [Elem, Repr], so that anyone who uses the aliases defined here will not need to worry about filling in these type parameters every time they want to use it.

    If someone wants to write a parser that works on both bytes and strings, they still have the option of using the "raw" types and doing that, but most people shouldn't need to bother.

    Also provides the implicits necessary for people who want to construct their own parsers, in the cases where we couldn't provide the implicit directly, e.g. for people defining their own subclass of Parser

  2. class StringApi extends Api[Char, String]

    Permalink
  3. class WhitespaceApi[+T] extends ParserApiImpl[T, Char, String]

    Permalink

    Custom version of ParserApi, that behaves the same as the default but injects whitespace in between every pair of tokens.

    Custom version of ParserApi, that behaves the same as the default but injects whitespace in between every pair of tokens. Also provides replacement methods repX and ~~ if you wish to call the original un-modified versions of these operators.

Value Members

  1. object CharPredicates

    Permalink

    Fast, pre-computed character predicates for charactes from 0 to 65535

    Fast, pre-computed character predicates for charactes from 0 to 65535

    Useful because FastParse does it's parsing character by character, so although this doesn't have the full range of the java Character.getType(c: Int) functions, it still is good enough for a wide range of use cases

  2. object StringReprOps extends ReprOps[Char, String]

    Permalink
  3. object WhitespaceApi

    Permalink
  4. object all extends StringApi

    Permalink
  5. package core

    Permalink
  6. object noApi extends StringApi

    Permalink
  7. package parsers

    Permalink

Ungrouped