|
51 | 51 | (:/ "/" /)
|
52 | 52 | (:% "%" rem)
|
53 | 53 | (:^ "^" expt)
|
54 |
| - (:= "=" sal-equal) ; equality and assigment |
| 54 | + (:= "=" sal-equal) ; equality and assignment |
55 | 55 | (:!= "!=" not-sal-equal)
|
56 | 56 | (:< "<" <)
|
57 | 57 | (:> ">" >)
|
|
62 | 62 | (:-= "-=" -=) ; assignment increment-and-store
|
63 | 63 | (:*= "*=" *=) ; assignment multiply-and-store
|
64 | 64 | (:/= "/=" /=) ; assignment multiply-and-store
|
65 |
| - (:&= "&=" &=) ; assigment list collecting |
66 |
| - (:@= "@=" @=) ; assigment list prepending |
67 |
| - (:^= "^=" ^=) ; assigment list appending |
| 65 | + (:&= "&=" &=) ; assignment list collecting |
| 66 | + (:@= "@=" @=) ; assignment list prepending |
| 67 | + (:^= "^=" ^=) ; assignment list appending |
68 | 68 | (:! "!" not)
|
69 | 69 | (:& "&" and)
|
70 | 70 | (:\| "|" or)
|
|
211 | 211 | (setf line-no (pos-to-line beg source))
|
212 | 212 | ; (display "pperror" beg end (sal-error-start x))
|
213 | 213 |
|
214 |
| - ;; print the error. include the specfic line of input containing |
| 214 | + ;; print the error. include the specific line of input containing |
215 | 215 | ;; the error as well as a line below it marking the error position
|
216 | 216 | ;; with an arrow: ^
|
217 | 217 | (let* ((pos (- (sal-error-start x) beg))
|
|
484 | 484 | (setq end (search-delim input delimit start len))
|
485 | 485 | (if (equal start end) ; have a delimiter
|
486 | 486 | (cond ((char= char +semic+)
|
487 |
| - ;; comment skips to next line and trys again... |
| 487 | + ;; comment skips to next line and try again... |
488 | 488 | (while (and (< start len)
|
489 | 489 | (char/= (char input start) #\newline))
|
490 | 490 | (incf start))
|
|
1015 | 1015 | ;; with embedded operator symbols, e.g. x+y results in a warning
|
1016 | 1016 | ;; that this is an odd variable name. But if the symbol is declared
|
1017 | 1017 | ;; as a local, a parameter, a function name, or a global variable,
|
1018 |
| -;; then the warning is supressed. |
| 1018 | +;; then the warning is suppressed. |
1019 | 1019 | ;;
|
1020 | 1020 | (defun token-is (type &optional (suspicious-id-warn t))
|
1021 | 1021 | (let ((token-type
|
|
1174 | 1174 | ;; kargs is a flag indicating previous parameter was a keyword (all
|
1175 | 1175 | ;; the following parameters must then also be keyword parameters)
|
1176 | 1176 | ;; returns: (<keyword> <default>) or (nil <identifier>)
|
1177 |
| - ;; where <keyword> is a keyward parameter name (nil if not a keyword parm) |
| 1177 | + ;; where <keyword> is a keyword parameter name (nil if not a keyword parm) |
1178 | 1178 | ;; <default> is an expression for the default value
|
1179 | 1179 | ;; <identifier> is the parameter name (if not a keyword parm)
|
1180 | 1180 | (let (key default-value id)
|
|
1450 | 1450 | ((eq op '^=) (setq expr `(nconc ,vref (append ,expr nil))))
|
1451 | 1451 | ((eq op '<=) (setq expr `(min ,vref ,expr)))
|
1452 | 1452 | ((eq op '>=) (setq expr `(max ,vref ,expr)))
|
1453 |
| - (t (errexit (format nil "unknown assigment operator ~A" op)))) |
| 1453 | + (t (errexit (format nil "unknown assignment operator ~A" op)))) |
1454 | 1454 | (push (list 'setf vref expr) rslt))
|
1455 | 1455 | (setf rslt (add-line-info-to-stmts rslt set-token))
|
1456 | 1456 | (if (> (length rslt) 1)
|
|
0 commit comments