* opc-itab.scm (compute-syntax): Emit a parse error if an operand
given in a syntax string is undefined.
2001-03-21 Ben Elliston <bje@redhat.com>
+ * opc-itab.scm (compute-syntax): Emit a parse error if an operand
+ given in a syntax string is undefined.
+
* opc-itab.scm (compute-syntax): Emit a parse error if an operand
name is empty or invalid -- eg. "$(rs)" instead of "($rs)".
(let ((n (id-len (string-drop1 syn))))
(if (= n 0)
(parse-error context "empty or invalid operand name" syntax))
+ (let ((operand (string->symbol (substring syn 1 (1+ n)))))
+ (if (not (current-op-lookup operand))
+ (parse-error context "undefined operand " operand syntax)))
(loop (string-drop (1+ n) syn)
(string-append result op-macro " ("
(string-upcase