summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/types.mli
blob: 570da0f98b7d0697b69c07a95cc15bd6b988c3b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
exception TooMuchRParen

type pos = string * int * int

type ident_type = I_scalar | I_hash | I_array | I_func | I_raw | I_star

type fromparser = 
   | Ident of ident_type * string option * string * pos

   | Num of float * pos
   | String of string * pos
   | Nil

   | Binary of string * fromparser * fromparser
   | If_then_else of string * (fromparser * fromparser) list * fromparser option