p

jaskell

parsec

package parsec

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

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

    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

    Since

    2020/05/09 13:33

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

    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

    Since

    2020/05/09 13:43

  3. class Ch extends Parsec[Char, Char]

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

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

    Version

    1.0.0

    Since

    2020/05/09 13:50

  4. class ChIn extends Parsec[Char, Char]

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

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

    Version

    1.0.0

    Since

    2020/05/09 13:51

  5. class ChNone extends Parsec[Char, Char]

    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

    Since

    2020/05/09 13:59

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

    Choice just the operator <|> in Haskell parsec

    Choice just the operator <|> in Haskell parsec

    Version

    1.0.0

    Since

    2020/05/09 14:06

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

    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

    Since

    2020/05/08 14:47

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

    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

    Since

    2020/05/25 23:02

  9. class Crlf extends Parsec[String, Char]

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

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

    Version

    1.0.0

    Since

    2020/05/09 14:16

  10. class Decimal extends Parsec[String, Char]

    Decimal parser parse a decimal number with signed or no.

    Decimal parser parse a decimal number with signed or no.

    Version

    1.0.0

    Since

    2020/05/09 14:21

  11. class Digit extends Parsec[Char, Char]

    Digit parser return char if it is a digit

    Digit parser return char if it is a digit

    Version

    1.0.0

    Since

    2020/05/09 14:32

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

    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

    Since

    2020/05/25 20:44

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

    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

    Since

    2020/05/25 20:44

  14. class EndOfLine extends Parsec[String, Char]

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

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

    Version

    1.0.0

    Since

    2020/05/09 16:05

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

    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

    Since

    2020/05/08 16:53

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

    Eq return from state if get a item equals its.

    Eq return from state if get a item equals its.

    Version

    1.0.0

    Since

    2020/05/09 10:52

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

    Fail do nothing but failed.

    Fail do nothing but failed.

    Version

    1.0.0

    Since

    2020/05/09 16:14

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

    Find try and next util success or eof.

    Find try and next util success or eof.

    Version

    1.0.0

    Since

    2020/05/09 16:22

  19. class Int extends Parsec[String, Char]

    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

    Since

    2020/05/09 15:23

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

    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.

    Version

    1.0.0

    Since

    2020/05/09 14:55

  21. class Many1[T, E] extends Parsec[List[T], E]

    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

    Since

    2020/05/09 15:22

  22. class ManyTill[T, L, E] extends Parsec[List[T], E]

    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

    Since

    2020/05/09 16:39

  23. class Maybe[T, E] extends Parsec[Option[T], E]

    Maybe p tries to apply parser p.

    Maybe p tries to apply parser p. If p fails without consuming input, it return Nothing, otherwise it returns Just the value returned by p.

    Version

    1.0.0

    Since

    2020/05/25 21:52

  24. class NCh extends Parsec[Char, Char]

    NCh return if get a char not equals prepared.

    NCh return if get a char not equals prepared.

    Version

    1.0.0

    Since

    2020/05/09 16:47

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

    Ne success if get item not equals the prepared one.

    Ne success if get item not equals the prepared one.

    Version

    1.0.0

    Since

    2020/05/09 13:20

  26. class Newline extends Parsec[Char, Char]

    Newline match \n char

    Newline match \n char

    Version

    1.0.0

    Since

    2020/05/11 11:50

  27. class NoWhitespace extends Parsec[Char, Char]

    NoWhitespace success if the char is't any whitespace.

    NoWhitespace success if the char is't any whitespace.

    Version

    1.0.0

    Since

    2020/05/09 17:18

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

    NoneOf success if get a item none of any in prepared

    NoneOf success if get a item none of any in prepared

    Version

    1.0.0

    Since

    2020/05/09 14:00

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

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

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

    Version

    1.0.0

    Since

    2020/05/08 22:28

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

    OneOf success if item equals one of prepared.

    OneOf success if item equals one of prepared.

    Version

    1.0.0

    Since

    2020/05/09 13:52

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

    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

    Since

    2020/05/25 21:55

  32. trait Parsec[T, E] extends AnyRef

    trait of Parsec parsers.

    trait of Parsec parsers.

    Version

    1.0.0

    Since

    2020/05/08 22:28

  33. class ParsecException extends Exception

    Parser throw ParsecException if failed.

    Parser throw ParsecException if failed.

    Version

    1.0.0

    Since

    2020/05/08 22:29

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

    Return just lift a value to Parsec Parser.

    Return just lift a value to Parsec Parser.

    Version

    1.0.0

    Since

    2020/05/09 16:53

  35. class SepBy[T, E] extends Parsec[List[T], E]

    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

    Since

    2020/05/09 16:55

  36. class SepBy1[T, E] extends Parsec[List[T], E]

    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

    Since

    2020/05/09 16:55

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

    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

    Since

    2020/05/25 20:54

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

    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

    Since

    2020/05/25 20:54

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

    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

    Since

    2020/05/09 17:09

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

    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

    Since

    2020/05/09 17:09

  41. class SkipSpaces extends Parsec[Unit, Char]

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/05/09 17:20

  42. class SkipWhitespaces extends Parsec[Unit, Char]

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/05/09 17:20

  43. class Space extends Parsec[Char, Char]

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/05/09 17:26

  44. trait State[+E] extends AnyRef

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/05/08 17:06

  45. class Text extends Parsec[String, Char]

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/05/09 16:05

  46. class Try[T, E] extends Parsec[T, E]

    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

    Since

    2020/05/09 14:22

  47. class TxtState extends CommonState[Char]

    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

    Since

    2020/05/15 17:34

  48. class UDecimal extends Parsec[String, Char]

    UDecimal parser parse a decimal number without signed

    UDecimal parser parse a decimal number without signed

    Version

    1.0.0

    Since

    2020/05/09 14:21

  49. class UInt extends Parsec[String, Char]

    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

    Since

    2020/05/09 15:17

  50. class Whitespace extends Parsec[Char, Char]

    TODO

    TODO

    Version

    1.0.0

    Since

    2020/05/09 17:18

Value Members

  1. object Ahead
  2. object Atom

    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

    Since

    2020/05/09 17:35

  3. object Between
  4. object Ch
  5. object ChIn
  6. object ChNone
  7. object Choice
  8. object Combinator

    Parsec Combinators

    Parsec Combinators

    Version

    1.0.0

    Since

    2020/05/09 17:35

  9. object Count
  10. object Crlf
  11. object Decimal
  12. object Digit
  13. object EndBy
  14. object EndBy1
  15. object EndOfLine
  16. object Eof
  17. object Eq
  18. object Fail
  19. object Find
  20. object Int
  21. object Many
  22. object Many1
  23. object ManyTill
  24. object NCh
  25. object Ne
  26. object Newline
  27. object NoWhitespace
  28. object NoneOf
  29. object One
  30. object OneOf
  31. object Opt
  32. object Parsec
  33. object Return
  34. object SepBy
  35. object SepBy1
  36. object Skip
  37. object Skip1
  38. object SkipSpaces
  39. object SkipWhitespaces
  40. object Space
  41. object State
  42. object Text
  43. object Try
  44. object Txt

    Functions Helper include parsers for Text

    Functions Helper include parsers for Text

    Version

    1.0.0

    Since

    2020/05/09 17:36

  45. object TxtState
  46. object UDecimal
  47. object UInt
  48. object Whitespace

Ungrouped