Mini_ml_lib.Parser
type error =
| UnexpectedEnd
When end of source unexpectedly reached
| UnexpectedRest of string
When not all characters where parsed
| SyntaxError of string
For other errors
Type for parsing error
type 'a result =
| Parsed of 'a * char list
| ParseError of error
Type for result of parsing
val parse_line : string -> Ast.t result
Parses one expression
val show_error : error -> string
Shows error in human readable format
val show_result : Ast.t result -> string
Shows result in human readable format