Skip to content
Discussion options

You must be logged in to vote

The short answer is "no". 😛

For a slightly longer answer, it depends what you mean by "custom language runtime".

If you're trying to replace Lua entirely, then your best bet is just to implement your own ILuaMachine, switch CC over to use it, and then do some mixins to use a different bios/rom.

If you're trying to have something which is callable from Lua (e.g. have an API like require("ocaml").run([[print_endline "Hello, world!"]])), then the easiest thing to do might be just to support bridging Lua <-> your language objects/functions, and then have some Lua code which handles exposing things like term. Some of the discussion in #2155 might be relevant here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lucyamonster
Comment options

Answer selected by lucyamonster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants