Wednesday, March 16, 2011

Actionscript 3 REPL

Is there a REPL (Read-Eval-Print Loop) available anywhere for Actionscript 3? I could not find anything on google, but it would really come in handy.

From stackoverflow
  • actionscript3 is a compiled language so is this even possible?

    leppie : What does this have to do with the ability to have a REPL?
    John Burton : I thought that the point of a REPL was to let you enter code at run time and evaluate that code interactivly. In javascript you can use "eval" to compile/run new code like this but no such ability exists in actionscript as the compiler is not available at runtime. Did I miss the point?
    Jesse Millikan : Plenty of compiled languages have REPLs. OCaml, Haskell and Erlang come to mind.
    John Burton : Ok fair enough. It's clearly possible if the compiler is available at run time which as far as I know it isn't in actionscript. I may be wrong :)
    Charles : @John Buton: Hurlant's Eval library packages the Tamarin ESC compiler, providing a means of compiling and eval'ing AS3: http://eval.hurlant.com/
    Charles : ... which, as I just realized, is what Thom linked to in his answer.
  • Google harder. ;)

0 comments:

Post a Comment