Skip to content

Commit

Permalink
Merge branch 'master' of github.com:JuliaLang/julia
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed May 27, 2014
2 parents 1a670f9 + 2e594e3 commit 01552f6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/julia-parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,12 @@
(apply append (map eval prec-names)))))

(define op-chars
(list->string
(delete-duplicates
(apply append
(map string->list (map symbol->string operators))))))
(delete-duplicates
(apply append
(map string->list (map symbol->string operators)))))

;; characters that can be in an operator
(define (opchar? c) (and (char? c) (string.find op-chars c)))
(define opchar? (Set op-chars))
;; characters that can follow . in an operator
(define (dot-opchar? c) (and (char? c) (string.find ".*^/\\+-'<>!=%" c)))
(define operator? (Set operators))
Expand Down

0 comments on commit 01552f6

Please sign in to comment.