Viability of replacing lua with lisp.

  • MiningMarsh
    12th Apr 2014 Member 0 Permalink

    So, I am interested in replacing the embedded lua terminal with an embedded lisp terminal, but before I do anything, I was wondering how deeply ingrained the lua embedding is? Is it fairly compartmentalized, or would I end up having to replace hundreds of lua calls in the code?

     

    Just wondering as I want to know whether this is going to be worth the effort.

  • jacob1
    12th Apr 2014 Developer 2 Permalink
    All lua code is in src/lua, and can be disabled when LUACONSOLE isn't defined. The only other references to lua in the entire thing are a few things that call lua methods in GameController (which use the old console if LUACONSOLE isn't defined) and one thing in Simulation.cpp / one in Renderer.cpp for update / graphics function.

    It should (is supposed to be) be pretty simple to add in a lisp console without even touching the lua stuff. I would just look at LuaScriptInterface.cpp and CommandInterface.cpp to see how to add a new console.