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

Last change on this file since 557 was 138, checked in by sacerdot, 9 years ago

Several bug fixes and code clean-up.
New main file: test.ml to parse and execute an HEX file.
Usage: ./test.native foo.hex

File size: 716 bytes
RevLine 
[138]1val chars_of_string: string -> char list
2
[130]3type 'a parser = char list -> ('a * char list) list
4
5val return: 'a -> 'a parser
6val (>>=): 'a parser -> ('a -> 'b parser) -> 'b parser
7val prs_zero: 'a parser
[138]8val prs_eof: unit parser
[130]9val prs_predicate: (char -> bool) -> char parser;;
10val prs_many1: 'a parser -> ('a list) parser;;
11val prs_many: 'a parser -> ('a list) parser;;
12val prs_exact: int  -> 'a parser -> ('a list) parser;;
13val prs_sep_by: 'a parser -> 'b parser -> ('a list) parser;;
14val prs_sep_by1: 'a parser -> 'b parser -> ('a list) parser;;
15val (++): 'a parser -> 'a parser -> 'a parser;;
16val (+++): 'a parser -> 'a parser -> 'a parser;;
17
18val prs_char: char -> char parser;;
19val prs_hex_digit: char parser;;
Note: See TracBrowser for help on using the repository browser.