mescc: Have Nyacc trace functions while parsing.
* guile/mescc.scm (main): Set NYACC_TRACE. * scripts/mescc.mes (main): Set NYACC_TRACE.
This commit is contained in:
parent
6932d83d82
commit
8481b54097
|
@ -133,6 +133,7 @@ Usage: mescc.scm [OPTION]... FILE...
|
|||
(multi-opt (lambda (option) (lambda (o) (and (eq? (car o) option) (cdr o)))))
|
||||
(defines (reverse (filter-map (multi-opt 'define) options)))
|
||||
(includes (reverse (filter-map (multi-opt 'include) options))))
|
||||
(setenv "NYACC_TRACE" "yes")
|
||||
(when (getenv "MES_DEBUG") (format (current-error-port) "options=~s\n" options)
|
||||
(format (current-error-port) "output: ~a\n" out))
|
||||
(if (and (pair? sources) (pair? objects)) (error "cannot mix source and object files:" files))
|
||||
|
|
|
@ -141,6 +141,7 @@ Usage: mescc.mes [OPTION]... FILE...
|
|||
(multi-opt (lambda (option) (lambda (o) (and (eq? (car o) option) (cdr o)))))
|
||||
(defines (reverse (filter-map (multi-opt 'define) options)))
|
||||
(includes (reverse (filter-map (multi-opt 'include) options))))
|
||||
(setenv "NYACC_TRACE" "yes")
|
||||
(when (getenv "MES_DEBUG") (format (current-error-port) "options=~s\n" options)
|
||||
(format (current-error-port) "output: ~a\n" out))
|
||||
(if (and (pair? sources) (pair? objects)) (error "cannot mix source and object files:" files))
|
||||
|
|
Loading…
Reference in a new issue