object Syntax extends SyntaxCompanionVersionSpecific

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Syntax
  2. SyntaxCompanionVersionSpecific
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. lazy val alphaNumeric: Syntax[String, Char, Char, Char]

    Syntax of a single alpha-numeric character

  2. val anyChar: Syntax[Nothing, Char, Char, Char]

    Syntax that parses/prints a single character

  3. lazy val anyString: Syntax[Nothing, Char, Char, String]

    Syntax that parses/prints an arbitrary long string

  4. def char[Err](value: Char, failure: Err): Syntax[Err, Char, Char, Unit]

    Parse or print a specific character 'value' or fail with 'failure', result in unit

  5. def char(value: Char): Syntax[String, Char, Char, Unit]

    Parse or print a specific character 'value' and result in unit

  6. def charIn(chars: String): Syntax[String, Char, Char, Char]

    Syntax that parses/prints a single character that matches one of the characters in 'chars'

  7. def charIn(chars: Char*): Syntax[String, Char, Char, Char]

    Syntax that parses/prints a single character that matches one of 'chars'

  8. def charNotIn(chars: String): Syntax[String, Char, Char, Char]

    Syntax that parses/prints a single character that does not match any of the characters in 'chars'

  9. def charNotIn(chars: Char*): Syntax[String, Char, Char, Char]

    Syntax that parses/prints a single character that does not match any of 'chars'

  10. lazy val digit: Syntax[String, Char, Char, Char]

    Syntax of a single digit

  11. lazy val end: Syntax[Nothing, Any, Nothing, Unit]

    Syntax that in parser mode only succeeds if the input stream has been consumed fully.

    Syntax that in parser mode only succeeds if the input stream has been consumed fully.

    This can be used to require that a parser consumes the full input.

  12. def fail[Err](failure: Err): Syntax[Err, Any, Nothing, Nothing]

    Syntax that does not pares or print anything but fails with 'failure'

  13. def filterChar[Err](filter: (Char) => Boolean, failure: Err): Syntax[Err, Char, Char, Char]

    Syntax that parses/prints a single character that matches the given predicate, or fails with 'failure'

  14. lazy val index: Syntax[Nothing, Any, Nothing, Int]

    Syntax that in parser mode results in the current input stream position

  15. lazy val letter: Syntax[String, Char, Char, Char]

    Syntax of a single letter

  16. def notChar[Err](value: Char, failure: Err): Syntax[Err, Char, Char, Char]

    Parse or print a single character and fail with 'failure' if it is 'value'

  17. def notChar(value: Char): Syntax[String, Char, Char, Char]

    Parse or print a single character and fail if it is 'value'

  18. def oneOf[A, I, O](syntax: Syntax[String, I, O, _ <: A], syntaxes: Syntax[String, I, O, _ <: A]*): Syntax[String, I, O, A]
  19. def regex[Err](regex: Regex, failure: Err): Syntax[Err, Char, Char, Chunk[Char]]

    Syntax that executes a regular expression on the input and results in the chunk of the parsed characters, or fails with 'failure'.

  20. def regexChar[Err](regex: Regex, failure: Err): Syntax[Err, Char, Char, Char]

    Syntax that during parsing executes a regular expression on the input and results in the last parsed character, or fails with 'failure'.

    Syntax that during parsing executes a regular expression on the input and results in the last parsed character, or fails with 'failure'. Useful for regexes that are known to parse a single character. The printer prints the character provided as input value.

  21. def regexDiscard[Err](regex: Regex, failure: Err, value: Chunk[Char]): Syntax[Err, Char, Char, Unit]

    Parse with a given regular expression and discard its results.

    Parse with a given regular expression and discard its results. If the regex fails, fail with 'failure'. When printing, the chunk of characters in 'value' gets printed.

  22. def string[Result](str: String, value: Result): Syntax[String, Char, Char, Result]

    Syntax that parses/prints a specific string 'str', and results in 'value'

  23. def succeed[Value](value: Value): Syntax[Nothing, Any, Nothing, Value]

    Syntax that does not parse or print anything but succeeds with 'value'

  24. lazy val unit: Syntax[Nothing, Any, Nothing, Unit]

    Syntax that results in unit

  25. def unsafeRegex[Err](regex: Regex): Syntax[Nothing, Char, Char, Chunk[Char]]

    Syntax that executes a regular expression on the input and results in the chunk of the parsed characters.

    Syntax that executes a regular expression on the input and results in the chunk of the parsed characters. The regex should never fail.

  26. def unsafeRegexChar(regex: Regex): Syntax[Nothing, Char, Char, Char]

    Syntax that during parsing executes a regular expression on the input and results in the last parsed character.

    Syntax that during parsing executes a regular expression on the input and results in the last parsed character. The regex should never fail. Useful for regexes that are known to parse a single character. The printer prints the character provided as input value.

  27. def unsafeRegexDiscard(regex: Regex, value: Chunk[Char]): Syntax[Nothing, Char, Char, Unit]

    Parse with a given regular expression and discard its results.

    Parse with a given regular expression and discard its results. The regex should never fail. When printing, the chunk of characters in 'value' gets printed.

  28. lazy val whitespace: Syntax[String, Char, Char, Char]

    Syntax of a single whitespace character