Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/compiler/ElabData/syntax/absyn.sig
ViewVC logotype

Annotation of /sml/trunk/compiler/ElabData/syntax/absyn.sig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 902 - (view) (download) (as text)
Original Path: sml/trunk/src/compiler/ElabData/syntax/absyn.sig

1 : blume 902 (* absyn.sig
2 :     *
3 :     * (C) 2001 Lucent Technologies, Bell Labs
4 :     *)
5 :     signature ABSYN =
6 :     sig
7 :    
8 :     type region
9 :    
10 :     datatype numberedLabel = LABEL of {name: Symbol.symbol, number: int}
11 :    
12 :     datatype exp
13 :     = VARexp of VarCon.var ref * Types.ty list
14 :     | CONexp of VarCon.datacon * Types.ty list
15 :     | INTexp of IntInf.int * Types.ty
16 :     | WORDexp of IntInf.int * Types.ty
17 :     | REALexp of string
18 :     | STRINGexp of string
19 :     | CHARexp of string
20 :     | RECORDexp of (numberedLabel * exp) list
21 :     | SELECTexp of numberedLabel * exp
22 :     | VECTORexp of exp list * Types.ty
23 :     | PACKexp of exp * Types.ty * Types.tycon list
24 :     | APPexp of exp * exp
25 :     | HANDLEexp of exp * handler
26 :     | RAISEexp of exp * Types.ty
27 :     | CASEexp of exp * rule list * bool
28 :     | FNexp of rule list * Types.ty
29 :     | LETexp of dec * exp
30 :     | SEQexp of exp list
31 :     | CONSTRAINTexp of exp * Types.ty
32 :     | MARKexp of exp * region
33 :    
34 :     and rule = RULE of pat * exp
35 :    
36 :     and handler = HANDLER of exp
37 :    
38 :     and pat
39 :     = WILDpat
40 :     | VARpat of VarCon.var
41 :     | INTpat of IntInf.int * Types.ty
42 :     | WORDpat of IntInf.int * Types.ty
43 :     | REALpat of string
44 :     | STRINGpat of string
45 :     | CHARpat of string
46 :     | CONpat of VarCon.datacon * Types.ty list
47 :     | RECORDpat of {fields : (Types.label * pat) list,
48 :     flex : bool, typ : Types.ty ref}
49 :     | APPpat of VarCon.datacon * Types.ty list * pat
50 :     | CONSTRAINTpat of pat * Types.ty
51 :     | LAYEREDpat of pat * pat
52 :     | ORpat of pat * pat
53 :     | VECTORpat of pat list * Types.ty
54 :     | NOpat
55 :    
56 :     and dec
57 :     = VALdec of vb list
58 :     | VALRECdec of rvb list
59 :     | TYPEdec of Types.tycon list
60 :     | DATATYPEdec of {datatycs: Types.tycon list, withtycs: Types.tycon list}
61 :     | ABSTYPEdec of {abstycs: Types.tycon list,
62 :     withtycs: Types.tycon list, body: dec}
63 :     | EXCEPTIONdec of eb list
64 :     | STRdec of strb list
65 :     | ABSdec of strb list
66 :     | FCTdec of fctb list
67 :     | SIGdec of Modules.Signature list
68 :     | FSIGdec of Modules.fctSig list
69 :     | OPENdec of (SymPath.path * Modules.Structure) list
70 :     | LOCALdec of dec * dec
71 :     | SEQdec of dec list
72 :     | OVLDdec of VarCon.var
73 :     | FIXdec of {fixity: Fixity.fixity, ops: Symbol.symbol list}
74 :     | MARKdec of dec * region
75 :    
76 :     and strexp
77 :     = VARstr of Modules.Structure
78 :     | STRstr of Bindings.binding list
79 :     | APPstr of {oper: Modules.Functor, arg: Modules.Structure,
80 :     argtycs: Types.tycpath list}
81 :     | LETstr of dec * strexp
82 :     | MARKstr of strexp * region
83 :    
84 :     and fctexp
85 :     = VARfct of Modules.Functor
86 :     | FCTfct of {param: Modules.Structure, argtycs: Types.tycpath list,
87 :     def: strexp}
88 :     | LETfct of dec * fctexp
89 :     | MARKfct of fctexp * region
90 :    
91 :     and vb = VB of {pat: pat, exp: exp, boundtvs: Types.tyvar list,
92 :     tyvars: Types.tyvar list ref}
93 :    
94 :     and rvb = RVB of {var: VarCon.var, exp: exp, boundtvs: Types.tyvar list,
95 :     resultty: Types.ty option, tyvars: Types.tyvar list ref}
96 :    
97 :     and eb = EBgen of {exn: VarCon.datacon, etype: Types.ty option, ident: exp}
98 :     | EBdef of {exn: VarCon.datacon, edef: VarCon.datacon}
99 :    
100 :     and strb = STRB of {name: Symbol.symbol, str: Modules.Structure, def: strexp}
101 :     and fctb = FCTB of {name: Symbol.symbol, fct: Modules.Functor, def: fctexp}
102 :    
103 :     end (* signature ABSYN *)

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0