parser.mli 363 Bytes
Newer Older
1
2
exception Error of string

3
4
5
val expr : char Stream.t -> Ast.pexpr
val pat : char Stream.t -> Ast.ppat
val prog : char Stream.t -> Ast.pmodule_item list
6
val top_phrases : char Stream.t -> Ast.pmodule_item list
7

8
val sync : unit -> unit
9
10
11
12
13
14
15
16


(* Hooks to extend the syntax *)

module Hook: sig
  val expr: Ast.pexpr Grammar.Entry.e
  val pat: Ast.ppat Grammar.Entry.e
end