66 Commits

Author SHA1 Message Date
ranchuan
d77c39d187 翻译 readme.md
Some checks failed
CI / Build and test (push) Has been cancelled
2024-10-28 16:01:33 +08:00
steve-chavez
c24e27f0b8 feat: add sepby1 combinator
`sepby1` is a common reusable combinator in Haskell Parsec.

This adds `mpc_sepby1(mpc_fold_t f, mpc_parser_t *sep, mpc_parser_t *a)` according to Haskell's implementation:

https://hackage.haskell.org/package/parsec-3.1.16.1/docs/src/Text.Parsec.Combinator.html#sepBy1

Reuses existing `mpc_and`, `mpc_many`, and `mpcf_snd_free`.
2023-08-08 14:25:18 -05:00
Daniel Holden
84a820c946 Update README.md 2021-03-27 20:40:08 -04:00
Daniel Holden
e507d34428 Merge github.com:orangeduck/mpc 2020-07-19 08:54:16 -04:00
Daniel Holden
41aecb485e fixed renaming of mpcf_freefold to mpcf_all_free 2020-07-19 08:53:43 -04:00
Daniel Holden
dbe7308b9c Added destructor to check combinators 2019-06-15 14:30:41 -04:00
Daniel Holden
b31e02e427 version number 2018-12-16 09:53:56 -05:00
Ivan Veselov
462d5c8f9d Add documentation for ? and {d} in language approach. Fix EOL issues 2018-12-02 12:34:09 +00:00
Daniel Holden
4a992d91ab Added mode option to regex and also changed example from a line reader to a tokenizer. 2018-10-14 17:20:11 -04:00
Daniel Holden
95439eb9c8 Merge github.com:orangeduck/mpc 2018-10-13 18:28:02 -04:00
Daniel Holden
fbc5d8f9ae Added line-reader example. Changed behaviour of eof on regex to parse either eof or a newline followed be eof (better matchers other regex engines). 2018-10-13 18:27:42 -04:00
Daniel Holden
65060137b1 Adjust the behaviour of mpc_eoi so that it only is successful in matching the end of input once. 2018-10-13 17:35:21 -04:00
Daniel Holden
3f23d5e854 Update README.md
typo
2018-10-09 21:00:55 -04:00
Jerome M. BERGER
a63bedc74a Add mpc_checkf and mpc_check_withf combinators. 2018-04-03 14:53:13 +02:00
Jerome M. BERGER
6ac5594c4f Add mpc_check and mpc_check_with combinators. 2018-03-23 10:50:09 +01:00
Leway Colin
368d32ab8e Fixed README table format. 2017-06-28 13:22:07 +08:00
Daniel Holden
2a19e4c451 Fixed folding of single child asts with tags 2016-06-11 14:11:19 +01:00
Daniel Holden
c2908c37bb Added copy function 2016-02-20 14:44:08 +00:00
alpha123
07fe154100 Fix a minor README error.
Precedence of operators was flipped around in the fold_maths example.
2015-11-17 15:43:34 -07:00
Daniel Holden
3c266180c4 Update README.md 2015-11-07 17:34:47 +00:00
Daniel Holden
4472dd4363 Added basic optimise function for parsers. 2015-11-07 16:57:09 +00:00
Daniel Holden
3643fbe6bb Fixed bug in behaviour of counting parser. Removed changelog (git is the changelog). 2015-08-28 19:20:39 +01:00
Daniel Holden
81abc6f115 Update README.md 2015-03-11 09:48:10 +00:00
Daniel Holden
e85cbe9634 Update README.md 2015-03-11 09:47:16 +00:00
Daniel Holden
8c73fd20dd Update README.md 2015-03-11 09:43:44 +00:00
Daniel Holden
90af71c997 Update README.md 2015-03-11 09:43:01 +00:00
Daniel Holden
dba739cd3d merge 2015-03-10 10:46:36 +00:00
Daniel Holden
123a7919d1 Added string stripping functions 2015-03-10 10:44:29 +00:00
David Roth
af6e3db69e Fix typos: 'MPC_PRIMITIVE' (mpc.c), and 'stripped'/'stripping' (README.md) 2014-12-10 11:55:38 -05:00
Daniel Holden
396b7603ab Update README.md 2014-08-20 14:50:23 +01:00
Daniel Holden
6af8360517 Fixed bug with mpca_lang statement delete 2014-05-05 11:04:00 +01:00
Daniel Holden
b12b12c8dd Update README.md 2014-04-24 21:24:12 +01:00
Daniel Holden
f290b7d2dd Rephrased section about backtracking 2014-04-23 13:06:10 +01:00
Daniel Holden
0d8cc54ab0 Updated version 2014-04-23 12:20:40 +01:00
Daniel Holden
a5ed2097ea Fixed error with failure messages. Null terminated lists to mpca_lang and fixed crash. 2014-04-23 12:20:20 +01:00
Daniel Holden
60b1496bb5 Readme updates 2014-04-23 11:56:24 +01:00
Daniel Holden
17829c57f8 readme corrections 2014-04-17 11:41:19 +01:00
Daniel Holden
f73d8210f2 Readme updates 2014-04-17 11:33:40 +01:00
Daniel Holden
861e931bb8 upped version number 2014-04-17 11:09:43 +01:00
Daniel Holden
f7185c9762 Refactored boundary stuff into more general anchor 2014-04-16 23:20:52 +01:00
Daniel Holden
612bc046f0 Initial commit for boundary support 2014-04-16 18:16:16 +01:00
Daniel Holden
8d9bf9fdda Fixed bug in state tagging. Updated examples to use concatinated preprocessor strings 2014-04-16 17:06:16 +01:00
Daniel Holden
8d0ee197e1 Renamed language option constants 2014-04-15 16:06:59 +01:00
Daniel Holden
0164931350 Initial commit for recording parse state in ast 2014-04-15 16:04:07 +01:00
Daniel Holden
a25dc955a0 Readme updates 2014-02-12 20:51:45 +00:00
Daniel Holden
084bdea367 small readme tweaks 2014-01-26 11:47:55 +00:00
Daniel Holden
d5e2bdf977 Added flags to language specifiction. Added optional expect string to language specification. Added some exaple grammars for testing and demos 2014-01-26 11:25:50 +00:00
Daniel Holden
51dbf66b50 A couple more fixes and edits 2014-01-21 11:29:08 +00:00
Daniel Holden
0eaaf4bba2 Various fixes 2014-01-09 11:12:59 +00:00
Daniel Holden
a8257e5b8e Regex tests 2013-11-17 18:25:06 +00:00