You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be possible, but I'm not sure how it should behave. Charly loads a prelude file on startup, so it would need to be run every time to make sure you always run off a blank slate.
Another option would be to instantiate a dedicated Charly object that would handle these things.
What I mean:
require"charly"
vm =Charly.new
vm.run "2 + 2"# => 4
code =<<-CODEprint("hello world")CODE
vm.run code # => hello world
Something similar to this is also included inside Issue #154.
Hey, that looks really nice, something like that was exactly what I had in mind.
I'm currently devoting most of my development to a new c++ virtual machine for the Charly programming language and will mostly likely deprecate the Crystal version once the VM is finished.
If you're interested in that, please take a look at the new project: KCreate/charly-vm
Hi @KCreate
Would be possible to use Charly inside Crystal?
I mean:
The text was updated successfully, but these errors were encountered: