Skip to content

Commit

Permalink
switched ⋆ to unary-and-binary-op
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reed committed Apr 4, 2019
1 parent 5efcf0b commit b86d3c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ is thrown, rather than a `ErrorException` ([#27900]).
* Functions that invoke commands (e.g. `run(::Cmd)`) now throw a `ProcessFailedException`
rather than an `ErrorException`, if those commands exit with non-zero exit code.
([#27900]).
* Added `` (`\star`) as unary operator ([#31604]).
* Added `` (`\star`) as unary and binary operator ([#31604]).

Command-line option changes
---------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/julia-parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@
0))

(define unary-ops (append! '(|<:| |>:|)
(add-dots '(+ - ! ~ ¬ √ ∛ ∜))))
(add-dots '(+ - ! ~ ¬ √ ∛ ∜))))

(define unary-op? (Set unary-ops))

; operators that are both unary and binary
(define unary-and-binary-ops '(+ - $ & ~ |.+| |.-|))
(define unary-and-binary-ops '(+ - $ & ~ |.+| |.-|))

(define unary-and-binary-op? (Set unary-and-binary-ops))

Expand Down

0 comments on commit b86d3c8

Please sign in to comment.