Arc Forumnew | comments | leaders | submitlogin
Is it possible to translate ARC code to Scheme
2 points by steeleduncan 4131 days ago | 2 comments
I am curious if it is possible to translate ARC code to the MzScheme code it must presumably end up as.

I'm assuming that there must be a function somewhere that translates an ARC S-Expression into a Scheme S-Expression, is that correct?



3 points by fallintothis 4131 days ago | link

  $ mzscheme
  Welcome to Racket v5.2.1.
  > (load "as.scm")
  Use (quit) to quit, (tl) to return here after an interrupt.
  arc> ^Cuser break
  > (acompile "arc.arc")
  [...output elided...]
  > (exit)
  $ head arc.arc.scm
  (begin
    (let ((zz
           (ar-funcall2
            _annotate
            'mac
            (let ((| do| (lambda args `((fn () ,@(ar-nil-terminate args))))))
              | do|))))
      (namespace-set-variable-value! '_do zz)
      zz))

-----

1 point by steeleduncan 4131 days ago | link

thank you

-----