Commit graph

30 commits

Author SHA1 Message Date
Simon Cruanes
b2cff1d0b7
prepare for 3.6 2021-10-18 22:31:44 -04:00
Simon Cruanes
9c72797515
minor changes 2021-09-25 20:51:18 -04:00
Simon Cruanes
938c7cb90a
more doc 2021-09-25 20:50:04 -04:00
Simon Cruanes
b8fa400465
a test to ensure chars1_if p = take1_if p >|= Slice.to_string 2021-09-25 20:48:23 -04:00
Simon Cruanes
e06cd516f0
detail 2021-09-25 15:38:35 -04:00
Simon Cruanes
396a7db967
more fixes 2021-09-24 22:58:08 -04:00
Simon Cruanes
8f9ecf5f41
some fixes related to review 2021-09-24 22:45:17 -04:00
Simon Cruanes
d46a679b3b fix bug in CCParse.line, add set_current_slice, fix tests 2021-06-06 23:00:51 -04:00
Simon Cruanes
352fc10d3b more doc for CCParse 2021-06-06 22:49:43 -04:00
Simon Cruanes
1517f64f55 CCParse: add slice and the ability to recurse on them
the idea is that it's often convenient to split the input into smaller
part (e.g. lines), or do a first pass of parsing that just returns a
slice of the input; and then later to use another parser on that slice
to extract the actual data. The new notion of `slice` allows that,
while preserving locations wrt the original input.
2021-06-06 22:42:20 -04:00
Simon Cruanes
88fe234a4c add CCParse.{char_fold, chars_fold_map}
useful for non-trivial lexing
2021-06-06 18:49:55 -04:00
Simon Cruanes
c10ae8d84f parse: fix bugs, add tests, add U.{in_paren,in_paren_opts,option} 2021-06-06 17:08:57 -04:00
Simon Cruanes
37af485971 parse: expose Position module, add or_, both, lookahead, U.bool 2021-06-06 15:08:13 -04:00
Simon Cruanes
171b4ddcd9 parse: deprecate try_, rename new function try_opt 2021-06-06 14:14:48 -04:00
Simon Cruanes
0ec40c2331 CCParse: heavy refactoring, many new functions 2021-06-06 14:14:48 -04:00
Simon Cruanes
7318162c55 wip: rework CCParse 2021-06-06 14:14:48 -04:00
Fardale
c4aabbf699 doc: fix doc in CCParse 2021-02-05 15:25:25 +01:00
Simon Cruanes
5126973173 prepare for 2.8 2019-12-14 17:50:35 -06:00
Simon Cruanes
bf0227d404 feat: on 4.08, support let operators
close #276
2019-12-14 12:08:48 -06:00
Simon Cruanes
1b5b23a8f1 remove unlabel, remove all traces of Result 2019-12-10 20:48:38 -06:00
JPR
1727cc8199 Few Comments corrections 2018-04-08 18:39:23 -05:00
Simon Cruanes
f7d5177540 chore(doc): update ocamldoc markup to remove odoc warnings 2018-03-30 01:49:38 -05:00
nathan moreau
3e2fbce3ee Comments - few changes 2018-02-07 14:36:03 +01:00
Simon Cruanes
ddf709fc5b reindent code 2018-02-01 19:01:32 -06:00
nathan moreau
00b2638ae7 Adding more comments 2018-01-30 14:07:05 +01:00
Simon Cruanes
cd2d07c76a new test and small readme section on CCParse 2017-02-16 11:58:47 +01:00
Simon Cruanes
03fd42e67d reindentation 2017-01-25 00:08:12 +01:00
Simon Cruanes
a0f3a5d24b update comments in CCParse 2017-01-24 23:28:08 +01:00
Simon Cruanes
8ad0dce97b CCFormat: remove start/stop args, make sep a unit printer 2017-01-24 22:50:26 +01:00
Simon Cruanes
72d43c6eeb add CCParse into core, a simple, lightweight version of parser combs 2016-11-03 20:10:18 +01:00