impc:compiler:print-badly-formed-expression-error   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/llvmti.xtm

Implementation

(define impc:compiler:print-badly-formed-expression-error
  (lambda (expr-type ast)
    (print-with-colors *impc:compiler:pretty-print-error-color*
                       'default #t (print "Syntax Error"))
    (print " badly formed ")
    (print-with-colors *impc:compiler:pretty-print-name-color* 'default #t (print expr-type))
    (print " expression:\n")
    (print-with-colors *impc:compiler:pretty-print-code-color* 'default #f (print ast "\n"))
    (if (impc:aot:currently-compiling?)
        (quit 2)
        (throw ""))))


Back to Index