A sane way to add a cusom lang #2438
-
|
I'm working on a custom language runtime and I would like to ask if there's some way to access computer features like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
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 If you're trying to have something which is callable from Lua (e.g. have an API like |
Beta Was this translation helpful? Give feedback.
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 liketerm. Some of the discussion in #2155 might be relevant here.