source: Deliverables/D4.1/Parser.mli @ 130

Last change on this file since 130 was 130, checked in by mulligan, 10 years ago

Commit again? Not sure what happened. All Parser files were already
under SVN control.

File size: 649 bytes
Line 
1type 'a parser = char list -> ('a * char list) list
2
3val return: 'a -> 'a parser
4val (>>=): 'a parser -> ('a -> 'b parser) -> 'b parser
5val prs_zero: 'a parser
6val prs_predicate: (char -> bool) -> char parser;;
7val prs_many1: 'a parser -> ('a list) parser;;
8val prs_many: 'a parser -> ('a list) parser;;
9val prs_exact: int  -> 'a parser -> ('a list) parser;;
10val prs_sep_by: 'a parser -> 'b parser -> ('a list) parser;;
11val prs_sep_by1: 'a parser -> 'b parser -> ('a list) parser;;
12val (++): 'a parser -> 'a parser -> 'a parser;;
13val (+++): 'a parser -> 'a parser -> 'a parser;;
14
15val prs_char: char -> char parser;;
16val prs_hex_digit: char parser;;
Note: See TracBrowser for help on using the repository browser.