Package

jaskell

parsec

Permalink

package parsec

Visibility
  1. Public
  2. All

Type Members

  1. class Ahead[E, T] extends Parsec[E, T]

    Permalink

    Ahead use a parser to parse state, return the result and rollback whatever

    Ahead use a parser to parse state, return the result and rollback whatever

    Version

    1.0.0

  2. class Attempt[E, T] extends Parsec[E, T]

    Permalink

    The parser try p behaves like parser p, except that it pretends that it hasn't consumed any input when an error occurs.

    The parser try p behaves like parser p, except that it pretends that it hasn't consumed any input when an error occurs.

    This combinator is used whenever arbitrary look ahead is needed. Since it pretends that it hasn't consumed any input when p fails, the (<|>) combinator will try its second alternative even when the first parser failed while consuming input.

    Version

    1.0.0

  3. class Between[E, T] extends Parsec[E, T]

    Permalink

    Between parse the open parser, and then sub parser, and then close parser, return sub parser result if success.

    Between parse the open parser, and then sub parser, and then close parser, return sub parser result if success.

    Version

    1.0.0

  4. trait Binder[E, T, O] extends AnyRef

    Permalink

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/06/12 19:03

  5. class Ch extends Parsec[Char, Char]

    Permalink

    If get one char equals the Ch prepared, return it.

    If get one char equals the Ch prepared, return it.

    Version

    1.0.0

  6. class ChIn extends Parsec[Char, Char]

    Permalink

    If get a char match any of content, return it.

    If get a char match any of content, return it.

    Version

    1.0.0

  7. class ChNone extends Parsec[Char, Char]

    Permalink

    Char None get next char, return it if none of content chars match.

    Char None get next char, return it if none of content chars match.

    Version

    1.0.0

  8. case class Chars1In(elements: String, caseSensitive: Boolean = true) extends Parsec[Char, String] with Product with Serializable

    Permalink

    TODO

    TODO

    Version

    1.0.0

    Since

    2022/05/06 00:59

  9. case class CharsIn(elements: String, caseSensitive: Boolean = true) extends Parsec[Char, String] with Product with Serializable

    Permalink

    TODO

    TODO

    Version

    1.0.0

    Since

    2022/05/06 00:59

  10. class Choice[E, T] extends Parsec[E, T]

    Permalink

    Choice just the operator <|> in Haskell parsec

    Choice just the operator <|> in Haskell parsec

    Version

    1.0.0

  11. trait CommonState[T] extends State[T]

    Permalink

    Common State has int status and transaction market.

    Common State has int status and transaction market. It can apply to Seq[T] or any serial collection.

    Version

    1.0.0

  12. class Count[E, T] extends Parsec[E, Seq[T]]

    Permalink

    count n p parses n occurrences of p.

    count n p parses n occurrences of p. If n is smaller or equal to zero, the parser equals to return []. Returns a list of n values returned by p.

    Version

    1.0.0

  13. class Crlf extends Parsec[Char, String]

    Permalink

    Crlf 即 haskell parsec 的 crlf 算子,匹配 \r\n .

    Crlf 即 haskell parsec 的 crlf 算子,匹配 \r\n .

    Version

    1.0.0

  14. class Decimal extends Parsec[Char, String]

    Permalink

    Decimal parser parse a decimal number with signed or no.

    Decimal parser parse a decimal number with signed or no.

    Version

    1.0.0

  15. class Digit extends Parsec[Char, Char]

    Permalink

    Digit parser return char if it is a digit

    Digit parser return char if it is a digit

    Version

    1.0.0

  16. class EndBy[E, T] extends Parsec[E, Seq[T]]

    Permalink

    EndBy p sep parses zero or more occurrences of p, separated and ended by sep.

    EndBy p sep parses zero or more occurrences of p, separated and ended by sep. Returns a seq of values returned by p.

    Version

    1.0.0

  17. class EndBy1[E, T] extends Parsec[E, Seq[T]]

    Permalink

    EndBy1 p sep parses one or more occurrences of p, separated and ended by sep.

    EndBy1 p sep parses one or more occurrences of p, separated and ended by sep. Returns a seq of values returned by p.

    Version

    1.0.0

  18. class EndOfLine extends Parsec[Char, String]

    Permalink

    check next content if a \n char or \r\n

    check next content if a \n char or \r\n

    Version

    1.0.0

  19. class Enumerate[E, T] extends Parsec[E, Set[T]]

    Permalink

    TODO

    TODO

    Version

    1.0.0

    Since

    2023/10/22 00:43

  20. class Eof[E] extends Parsec[E, Unit]

    Permalink

    Eof check state if get to end, It return nothing.

    Eof check state if get to end, It return nothing. Eof just success or failed.

    Version

    1.0.0

  21. class Eq[E] extends Parsec[E, E]

    Permalink

    Eq return from state if get a item equals its.

    Eq return from state if get a item equals its.

    Version

    1.0.0

  22. class Fail[E] extends Parsec[E, E]

    Permalink

    Fail do nothing but failed.

    Fail do nothing but failed.

    Version

    1.0.0

  23. class Find[E, T] extends Parsec[E, T]

    Permalink

    Find try and next util success or eof.

    Find try and next util success or eof.

    Version

    1.0.0

  24. class Int extends Parsec[Char, String]

    Permalink

    Int try to parse a long as long int from state and with signed.

    Int try to parse a long as long int from state and with signed.

    Version

    1.0.0

  25. class Is[T] extends Parsec[T, T]

    Permalink

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/07/23 14:18

  26. class Letter extends Parsec[Char, Char]

    Permalink

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/06/12 18:53

  27. class Many[E, T] extends Parsec[E, Seq[T]]

    Permalink

    Many try to parse the parse more times, and collect all results into a Seq.

    Many try to parse the parse more times, and collect all results into a Seq. Many could success 0 to any times.

  28. class Many1[E, T] extends Parsec[E, Seq[T]]

    Permalink

    Many try to parse the parse more times, and collect all results into a Seq.

    Many try to parse the parse more times, and collect all results into a Seq. Many must success once at lest

    Version

    1.0.0

  29. case class Many1In[E](toggle: Set[E]) extends Parsec[E, Seq[E]] with Product with Serializable

    Permalink

    TODO

    TODO

    Version

    1.0.0

    Since

    2022/05/06 00:47

  30. case class ManyIn[E](toggle: Set[E]) extends Parsec[E, Seq[E]] with Product with Serializable

    Permalink

    TODO

    TODO

    Version

    1.0.0

    Since

    2022/05/06 00:47

  31. class ManyTill[E, T, L] extends Parsec[E, Seq[T]]

    Permalink

    manyTill p end applies parser p zero or more times until parser end succeeds.

    manyTill p end applies parser p zero or more times until parser end succeeds. Returns the list of values returned by p. This parser can be used to scan comments.

    Version

    1.0.0

  32. class MkString extends Binder[Char, Seq[Char], String]

    Permalink

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/06/12 19:03

  33. class NCh extends Parsec[Char, Char]

    Permalink

    NCh return if get a char not equals prepared.

    NCh return if get a char not equals prepared.

    Version

    1.0.0

  34. class Ne[E] extends Parsec[E, E]

    Permalink

    Ne success if get item not equals the prepared one.

    Ne success if get item not equals the prepared one.

    Version

    1.0.0

  35. class Newline extends Parsec[Char, Char]

    Permalink

    Newline match \n char

    Newline match \n char

    Version

    1.0.0

  36. class NoWhitespace extends Parsec[Char, Char]

    Permalink

    NoWhitespace success if the char is't any whitespace.

    NoWhitespace success if the char is't any whitespace.

    Version

    1.0.0

  37. class NoneOf[E] extends Parsec[E, E]

    Permalink

    NoneOf success if get a item is none in prepared

    NoneOf success if get a item is none in prepared

    Version

    1.0.0

  38. class One[E] extends Parsec[E, E]

    Permalink

    One just take state.next, It maybe throw eof exception.

    One just take state.next, It maybe throw eof exception.

    Version

    1.0.0

  39. class OneOf[T] extends Parsec[T, T]

    Permalink

    OneOf success if item equals one of prepared.

    OneOf success if item equals one of prepared.

    Version

    1.0.0

  40. class Opt[E, T] extends Parsec[E, T]

    Permalink

    Opt x p tries to apply parser p.

    Opt x p tries to apply parser p. If p fails without consuming input, it returns the value x, otherwise the value returned by p.

    Version

    1.0.0

  41. trait Parsec[E, +T] extends AnyRef

    Permalink

    trait of Parsec parsers.

    trait of Parsec parsers.

    Version

    1.0.0

  42. class ParsecException extends Exception

    Permalink

    Parser throw ParsecException if failed.

    Parser throw ParsecException if failed.

    Version

    1.0.0

  43. class Return[E, T] extends Parsec[E, T]

    Permalink

    Return just lift a value to Parsec Parser.

    Return just lift a value to Parsec Parser.

    Version

    1.0.0

  44. class ScNumber extends Parsec[Char, String]

    Permalink

    TODO

    TODO

    Version

    1.0.0

  45. class SepBy[E, T] extends Parsec[E, Seq[T]]

    Permalink

    sepBy p sep parses zero or more occurrences of p, separated by sep.

    sepBy p sep parses zero or more occurrences of p, separated by sep. Returns a list of values returned by p.

    Version

    1.0.0

  46. class SepBy1[E, T] extends Parsec[E, Seq[T]]

    Permalink

    SepBy1 p sep parses one or more occurrences of p, separated by sep.

    SepBy1 p sep parses one or more occurrences of p, separated by sep. Returns a list of values returned by p.

    Version

    1.0.0

  47. class SepEndBy[E, T] extends Parsec[E, Seq[T]]

    Permalink

    SepEndBy p sep parses zero or more occurrences of p, separated and optionally ended by sep, ie.

    SepEndBy p sep parses zero or more occurrences of p, separated and optionally ended by sep, ie. haskell style statements. Returns a seq of values returned by p.

    Version

    1.0.0

  48. class SepEndBy1[E, T] extends Parsec[E, Seq[T]]

    Permalink

    SepEndBy1 p sep parses one or more occurrences of p, separated and optionally ended by sep.

    SepEndBy1 p sep parses one or more occurrences of p, separated and optionally ended by sep. Returns a list of values returned by p.

    Version

    1.0.0

  49. class Skip[E] extends Parsec[E, Unit]

    Permalink

    Skip p applies the parser p zero or more times, skipping its result.

    Skip p applies the parser p zero or more times, skipping its result.

    Version

    1.0.0

  50. class Skip1[E] extends Parsec[E, Unit]

    Permalink

    Skip1 p applies the parser p one or more times, skipping its result.

    Skip1 p applies the parser p one or more times, skipping its result.

    Version

    1.0.0

  51. class Skip1Spaces extends Parsec[Char, Unit]

    Permalink

    TODO

    TODO

    Version

    1.0.0

  52. class Skip1Whitespaces extends Parsec[Char, Unit]

    Permalink

    TODO

    TODO

    Version

    1.0.0

  53. class SkipSpaces extends Parsec[Char, Unit]

    Permalink

    TODO

    TODO

    Version

    1.0.0

  54. class SkipWhitespaces extends Parsec[Char, Unit]

    Permalink

    TODO

    TODO

    Version

    1.0.0

  55. class Space extends Parsec[Char, Char]

    Permalink

    TODO

    TODO

    Version

    1.0.0

  56. trait State[+E] extends AnyRef

    Permalink

    TODO

    TODO

    Version

    1.0.0

  57. class Text extends Parsec[Char, String]

    Permalink

    TODO

    TODO

    Version

    1.0.0

  58. class TxtState extends CommonState[Char]

    Permalink

    Txt State extends Common State trait.

    Txt State extends Common State trait. It special for text content analyst. Txt state could mark a status point in which line.

    Version

    1.0.0

  59. class UDecimal extends Parsec[Char, String]

    Permalink

    UDecimal parser parse a decimal number without signed

    UDecimal parser parse a decimal number without signed

    Version

    1.0.0

  60. class UInt extends Parsec[Char, String]

    Permalink

    Int try to parse a long as long int from state and without signed.

    Int try to parse a long as long int from state and without signed.

    Version

    1.0.0

  61. class Whitespace extends Parsec[Char, Char]

    Permalink

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/05/09 17:18

Value Members

  1. object Ahead

    Permalink
  2. object Atom

    Permalink

    Atom parsers, like one, eof, return and failed, equals and not equals, etc.

    Atom parsers, like one, eof, return and failed, equals and not equals, etc.

    Version

    1.0.0

  3. object Attempt

    Permalink
  4. object Between

    Permalink
  5. object Ch

    Permalink
  6. object ChIn

    Permalink
  7. object ChNone

    Permalink
  8. object Choice

    Permalink
  9. object Combinator

    Permalink

    Parsec Combinators

    Parsec Combinators

    Version

    1.0.0

  10. object Count

    Permalink
  11. object Crlf

    Permalink
  12. object Decimal

    Permalink
  13. object Digit

    Permalink
  14. object EndBy

    Permalink
  15. object EndBy1

    Permalink
  16. object EndOfLine

    Permalink
  17. object Eof

    Permalink
  18. object Eq

    Permalink
  19. object Fail

    Permalink
  20. object Find

    Permalink
  21. object Int

    Permalink
  22. object Letter

    Permalink
  23. object Many

    Permalink
  24. object Many1

    Permalink
  25. object ManyTill

    Permalink
  26. object MkString

    Permalink
  27. object NCh

    Permalink
  28. object Ne

    Permalink
  29. object Newline

    Permalink
  30. object NoWhitespace

    Permalink
  31. object NoneOf

    Permalink
  32. object One

    Permalink
  33. object OneOf

    Permalink
  34. object Opt

    Permalink
  35. object Parsec

    Permalink
  36. object Return

    Permalink
  37. object SepBy

    Permalink
  38. object SepBy1

    Permalink
  39. object Skip

    Permalink
  40. object Skip1

    Permalink
  41. object SkipSpaces

    Permalink
  42. object SkipWhitespaces

    Permalink
  43. object Space

    Permalink
  44. object State

    Permalink
  45. object Text

    Permalink
  46. object Txt

    Permalink

    Functions Helper include parsers for Text

    Functions Helper include parsers for Text

    Version

    1.0.0

  47. object TxtState

    Permalink
  48. object UDecimal

    Permalink
  49. object UInt

    Permalink
  50. object Whitespace

    Permalink

Ungrouped