@@ -14,11 +14,6 @@ and [Metatheory.jl](https://github.com/0x0f0f0f/Metatheory.jl).
14
14
Returns ` true ` if ` x ` is an expression tree (an S-expression). If true, ` head `
15
15
and ` children ` methods must be defined for ` x ` .
16
16
17
- #### ` iscall(x::T) `
18
-
19
- Returns ` true ` if ` x ` is a function call expression. If true, ` operation ` , ` arguments ` must also be defined for ` x::T ` .
20
-
21
-
22
17
#### ` head(x) `
23
18
24
19
Returns the head of the S-expression.
@@ -27,17 +22,6 @@ Returns the head of the S-expression.
27
22
28
23
Returns the children (aka tail) of the S-expression.
29
24
30
-
31
- #### ` operation(x) `
32
-
33
- Returns the function a function call expression is calling. ` iscall(x) ` must be
34
- true as a precondition.
35
-
36
- #### ` arguments(x) `
37
-
38
- Returns the arguments to the function call in a function call expression.
39
- ` iscall(x) ` must be true as a precondition.
40
-
41
25
#### ` maketerm(T, head, children, type=nothing, metadata=nothing) `
42
26
43
27
Constructs an expression. ` T ` is a constructor type, ` head ` and ` children ` are
@@ -57,6 +41,20 @@ Packages providing expression types _must_ implement this method for each expres
57
41
If your types do not support type information or metadata, you still need to accept
58
42
these arguments and may choose to not use them.
59
43
44
+ #### ` iscall(x::T) `
45
+
46
+ Returns ` true ` if ` x ` is a function call expression. If true, ` operation ` , ` arguments ` must also be defined for ` x::T ` .
47
+
48
+ #### ` operation(x) `
49
+
50
+ Returns the function a function call expression is calling. ` iscall(x) ` must be
51
+ true as a precondition.
52
+
53
+ #### ` arguments(x) `
54
+
55
+ Returns the arguments to the function call in a function call expression.
56
+ ` iscall(x) ` must be true as a precondition.
57
+
60
58
### Optional
61
59
62
60
#### ` arity(x) `
0 commit comments