-
Notifications
You must be signed in to change notification settings - Fork 6
/
sexp-lang.txt
77 lines (77 loc) · 1.67 KB
/
sexp-lang.txt
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
(ARRAY-INIT val ...)
(ASSIGN var val)
(UPDATE op var val)
(BLOCK statement ...)
(BREAK [label])
(CONTINUE [label])
(CALL method args ...)
(CASE caselabel statement)
(GUARDED-CATCH var guard statement)
(CATCH var statement)
(COMMA statement statement)
(DEBUGGER)
(DEFAULT statement)
(DELETE statement)
(TYPEOF statement)
(NEW function args ...)
(UNARY-MINUS statement)
(NOT statement)
(VOID statement)
(BITWISE-NOT statement)
(UNARY-PLUS statement)
(DO-WHILE condition statement)
(ATTRIBUTE object attribute)
(DEF-FUNCTION (name args ...) statement)
(FUNCTION (args ...) statement)
(FOR setup condition update statement)
(FOR-IN iterator object statement)
(FOR-IN-VAR iterator object statement)
(TERNARY condition truestatement falsestatement)
(INITVAR var initializer)
(IF condition thenpart)
(IF-ELSE condition thenpart elsepart)
(POST-INCREMENT var)
(POST-DECREMENT var)
(INCREMENT var)
(DECREMENT var)
(ARRAY-INDEX array index)
(LABELED-STATEMENT label statement)
TRUE
FALSE
THIS
NULL
(OBJECT-INIT property ...)
(PROPERTY name value)
(PLUS arg1 arg2)
(LT arg1 arg2)
(EQ arg1 arg2)
(AND arg1 arg2)
(OR arg1 arg2)
(MINUS arg1 arg2)
(MUL arg1 arg2)
(LE arg1 arg2)
(NE arg1 arg2)
(STRICT-EQ arg1 arg2)
(DIV arg1 arg2)
(GE arg1 arg2)
(INSTANCEOF class obj)
(IN attribute obj)
(GT arg1 arg2)
(BITWISE-OR arg1 arg2)
(BITWISE-AND arg1 arg2)
(BITWISE-XOR arg1 arg2)
(STRICT-NE arg1 arg2)
(LSH arg1 arg2)
(RSH arg1 arg2)
(URSH arg1 arg2)
(MOD arg1 arg2)
(REGEXP regexp modifiers)
(RETURN value)
(SCRIPT statement ...)
(SWITCH discriminant cases ...)
(THROW statement)
(TRY-FINALLY try-statement catches ... finally-statement)
(TRY try-statement catches ...)
(VAR var ...)
(CONST var ...)
(WHILE condition statement)