File: parsing.mli

package info (click to toggle)
ocaml-stdcompat 20~git20240529-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,540 kB
  • sloc: ml: 34,099; sh: 861; makefile: 249
file content (36 lines) | stat: -rw-r--r-- 994 bytes parent folder | download | duplicates (62)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
val symbol_start : unit -> int
val symbol_end : unit -> int
val rhs_start : int -> int
val rhs_end : int -> int
val symbol_start_pos : unit -> Lexing.position
val symbol_end_pos : unit -> Lexing.position
val rhs_start_pos : int -> Lexing.position
val rhs_end_pos : int -> Lexing.position
val clear_parser : unit -> unit
exception Parse_error 
val set_trace : bool -> bool
type parser_env
type parse_tables =
  {
  actions: (parser_env -> Obj.t) array ;
  transl_const: int array ;
  transl_block: int array ;
  lhs: string ;
  len: string ;
  defred: string ;
  dgoto: string ;
  sindex: string ;
  rindex: string ;
  gindex: string ;
  tablesize: int ;
  table: string ;
  check: string ;
  error_function: string -> unit ;
  names_const: string ;
  names_block: string }
exception YYexit of Obj.t 
val yyparse :
  parse_tables -> int -> (Lexing.lexbuf -> 'a) -> Lexing.lexbuf -> 'b
val peek_val : parser_env -> int -> 'a
val is_current_lookahead : 'a -> bool
val parse_error : string -> unit