Skip to content

Commit 113e77b

Browse files
committed
fix #633, syntax error for ** instead of ^
1 parent 5680100 commit 113e77b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/julia-parser.scm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118

119119
(define (read-operator port c)
120120
(read-char port)
121+
(if (and (eqv? c #\*) (eqv? (peek-char port) #\*))
122+
(error "use ^ instead of **"))
121123
(if (or (eof-object? (peek-char port)) (not (opchar? (peek-char port))))
122124
(symbol (string c)) ; 1-char operator
123125
(let loop ((str (string c))

0 commit comments

Comments
 (0)