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

Last change on this file since 195 was 138, checked in by sacerdot, 10 years ago

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

File size: 716 bytes
1val chars_of_string: string -> char list
3type 'a parser = char list -> ('a * char list) list
5val return: 'a -> 'a parser
6val (>>=): 'a parser -> ('a -> 'b parser) -> 'b parser
7val prs_zero: 'a parser
8val prs_eof: unit parser
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;;
18val prs_char: char -> char parser;;
19val prs_hex_digit: char parser;;
Note: See TracBrowser for help on using the repository browser.