File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ # TODO :
2
+ # - function definition (wrap the function like a pycallback)
3
+ # - class definition (e.g. `struct User <: BaseModel; id::int=0; name::str=""; end`)
4
+ # - property syntax (e.g. `classmethod |> function foo(cls); cls(); end`)
5
+ # - with syntax (`@with`)
6
+
1
7
const PY_MACRO_UNOPS = Dict (
2
8
# operators
3
9
:(+ ) => (pypos, true ),
@@ -50,12 +56,17 @@ const PY_MACRO_BINOPS = Dict(
50
56
:(⊻ ) => (pyxor, true ),
51
57
:(== ) => (pyeq, true ),
52
58
:(!= ) => (pyne, true ),
59
+ :(≠ ) => (pyne, true ),
53
60
:(<= ) => (pyle, true ),
61
+ :(≤ ) => (pyle, true ),
54
62
:(< ) => (pylt, true ),
55
63
:(>= ) => (pyge, true ),
64
+ :(≥ ) => (pyge, true ),
56
65
:(> ) => (pygt, true ),
57
66
:(=== ) => (pyis, false ),
67
+ :(≡ ) => (pyis, false ),
58
68
:(!= = ) => (pyisnot, false ),
69
+ :(≢ ) => (pyisnot, false ),
59
70
:in => (pyin, false ),
60
71
:∈ => (pyin, false ),
61
72
:∉ => (pynotin, false ),
You can’t perform that action at this time.
0 commit comments