Skip to content

Commit be06802

Browse files
author
Christopher Doris
committed
add some missing unicode operator aliases to py_macro
1 parent 0730963 commit be06802

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/py_macro.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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+
17
const PY_MACRO_UNOPS = Dict(
28
# operators
39
:(+) => (pypos, true),
@@ -50,12 +56,17 @@ const PY_MACRO_BINOPS = Dict(
5056
:() => (pyxor, true),
5157
:(==) => (pyeq, true),
5258
:(!=) => (pyne, true),
59+
:( ) => (pyne, true),
5360
:(<=) => (pyle, true),
61+
:( ) => (pyle, true),
5462
:(< ) => (pylt, true),
5563
:(>=) => (pyge, true),
64+
:( ) => (pyge, true),
5665
:(> ) => (pygt, true),
5766
:(===) => (pyis, false),
67+
:() => (pyis, false),
5868
:(!==) => (pyisnot, false),
69+
:() => (pyisnot, false),
5970
:in => (pyin, false),
6071
: => (pyin, false),
6172
: => (pynotin, false),

0 commit comments

Comments
 (0)