Skip to content

Commit

Permalink
Remove more unicode alts
Browse files Browse the repository at this point in the history
Resolves   #700.
  • Loading branch information
evhub committed Dec 30, 2022
1 parent 7009da5 commit 4fad3e6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,6 @@ Coconut supports Unicode alternatives to many different operator symbols. The Un
∘**> (\u2218**>) => "..**>"
<**∘ (<**\u2218) => "<**.."
⁻ (\u207b) => "-" (only negation)
¬ (\xac) => "~"
≠ (\u2260) or ¬= (\xac=) => "!="
≤ (\u2264) or ⊆ (\u2286) => "<="
≥ (\u2265) or ⊇ (\u2287) => ">="
Expand Down
2 changes: 1 addition & 1 deletion coconut/compiler/grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ class Grammar(object):
dollar = Literal("$")
lshift = Literal("<<") | fixto(Literal("\xab"), "<<")
rshift = Literal(">>") | fixto(Literal("\xbb"), ">>")
tilde = Literal("~") | fixto(~Literal("\xac=") + Literal("\xac"), "~")
tilde = Literal("~")
underscore = Literal("_")
pound = Literal("#")
unsafe_backtick = Literal("`")
Expand Down
2 changes: 1 addition & 1 deletion coconut/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def get_bool_env_var(env_var, default=False):
"\u2191", # **
"\xf7", # /
"\u207b", # -
"\xac=?", # ~ !
"\xac=", # !=
"\u2260", # !=
"\u2264", # <=
"\u2265", # >=
Expand Down
2 changes: 1 addition & 1 deletion coconut/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
VERSION = "2.1.1"
VERSION_NAME = "The Spanish Inquisition"
# False for release, int >= 1 for develop
DEVELOP = 21
DEVELOP = 22
ALPHA = False # for pre releases rather than post releases

# -----------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 4fad3e6

Please sign in to comment.