Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 113 lines (108 sloc) 3.103 kB
fe7ebed copyrights, miscellany
Jake Donham authored
1 (*
2 * This file is part of ocamljs, OCaml to Javascript compiler
3 * Copyright (C) 2007-9 Skydeck, Inc
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18 * MA 02111-1307, USA
19 *)
20
aa568d8 support for inline javascript
Jake Donham authored
21 type unop =
22 | Jdelete
23 | Jvoid
24 | Jtypeof
25 | Jadd2_pre
26 | Jsub2_pre
27 | Jadd_pre
28 | Jsub_pre
29 | Jtilde
30 | Jnot
31 | Jadd2_post
32 | Jsub2_post
33
34 and binop =
35 | Jhashref
36 | Jmul
37 | Jdiv
38 | Jmod
39 | Jadd
40 | Jsub
41 | Jlt
42 | Jgt
43 | Jleq
44 | Jgeq
45 | Jlsr
46 | Jlsl
47 | Jasr
48 | Jeq
49 | Jneq
50 | Jinstanceof
51 | Jseq
52 | Jsneq
53 | Jland
54 | Jlor
55 | Jand
56 | Jxor
57 | Jor
58 | Jcomma
59 | Jassign
60 | Jmul_assign
61 | Jdiv_assign
62 | Jmod_assign
63 | Jadd_assign
64 | Jsub_assign
65 | Jlsl_assign
66 | Jlsr_assign
67 | Jasr_assign
68 | Jand_assign
69 | Jxor_assign
70 | Jor_assign
71
72 and exp =
73 | Jthis of loc
74 | Jvar of loc * string
3503c9f internal exp list in AST + list antiquotation.
Jake Donham authored
75 | Jarray of loc * exp
aa568d8 support for inline javascript
Jake Donham authored
76 | Jobject of loc * (exp * exp) list
77 | Jstring of loc * string * bool (* true if double-quoted *)
78 | Jnum of loc * string
79 | Jnull of loc
80 | Jbool of loc * bool
81 | Jfun of loc * string option * string list * stmt list
82 | Jfieldref of loc * exp * string
83 | Junop of loc * unop * exp
84 | Jbinop of loc * binop * exp * exp
85 | Jite of loc * exp * exp * exp
3503c9f internal exp list in AST + list antiquotation.
Jake Donham authored
86 | Jcall of loc * exp * exp
87 | Jnew of loc * exp * exp option
88 | Jexp_nil of loc
89 | Jexp_cons of loc * exp * exp
aa568d8 support for inline javascript
Jake Donham authored
90 | Jexp_Ant of loc * string
91
92 and stmt =
93 | Jempty of loc
94 | Jvars of loc * (string * exp option) list
95 | Jfuns of loc * string * string list * stmt list
96 | Jreturn of loc * exp option
97 | Jcontinue of loc * string option
98 | Jbreak of loc * string option
99 | Jswitch of loc * exp * (exp * stmt list) list * stmt list option
100 | Jites of loc * exp * stmt * stmt option
101 | Jthrow of loc * exp
102 | Jexps of loc * exp
103 | Jtrycatch of loc * stmt list * string * stmt list
104 | Jtryfinally of loc * stmt list * stmt list
105 | Jtrycatchfinally of loc * stmt list * string * stmt list * stmt list
106 | Jfor of loc * exp option * exp option * exp option * stmt
107 | Jdowhile of loc * stmt * exp
108 | Jwhile of loc * exp * stmt
109 | Jblock of loc * stmt list
110 | Jwith of loc * exp * stmt
111 | Jlabel of loc * string * stmt
112 | Jstmt_Ant of loc * string
Something went wrong with that request. Please try again.