Codebase list cafeobj / a7c066c
Fixed improper error messages. tswd 6 years ago
3 changed file(s) with 6 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
6767 (when (variable-occurs-in t1 sub)
6868 (return-from variable-occurs-in t))))))
6969
70 (defparameter non-exec-labels '(|:nonexec| |:non-exec| |:no-ex| |:noex| |:noexec|))
7170 (defparameter bad-rule-types '(:bad-rule :bad-beh))
7271
7372 (defun axiom-is-non-exec? (ax)
7272 (if (null preterm)
7373 (progn
7474 (with-output-simple-msg ()
75 (princ "[Error] empty input, no parse."))
75 (princ "[Error]: empty input, no parse."))
7676 (make-bconst-term *syntax-err-sort* '(the input is empty)))
7777 (let ((res nil))
7878 (setq res (catch :parse-error
126126 (setq *parse-raw-parse* result)
127127 (when (term-ill-defined result)
128128 (with-output-simple-msg ()
129 (format t "~&[Error] no successful parse")))
129 (format t "~&[Error]: no successful parse")))
130130 (parse-convert result module))))))
131131
132132 (defun select-parse (module final &optional print-warning)
469469 (unless (or fname bin-fname)
470470 (if errorp
471471 (with-output-chaos-error ('no-such-file)
472 (format t "no such file: ~a" (namestring file)))
473 (return-from chaos-input-file nil)
474 ))
472 (format t "No such file: ~a" (namestring file)))
473 (return-from chaos-input-file nil)))
475474 (when (and bin-fname fname (>= (file-write-date bin-fname)
476475 (file-write-date fname)))
477476 (setq fname bin-fname))
490489 (with-output-chaos-warning ()
491490 (format t "input nesting is ~d~%" *chaos-input-level*)
492491 (print-next)
493 (princ "probable input loop (can increase *chaos-input-nesting-limit*)")
494 ))
492 (princ "probable input loop (can increase *chaos-input-nesting-limit*)")))
495493 (apply proc args)
496 fname
497 )))))
494 fname)))))
498495 ;;;
499496 (defun set-search-path (paths)
500497 (when (consp paths)