Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to bind dart to lua?

Tags:

flutter

dart

lua

Or is it possible to scripting in Dart/Flutter? What I want to do is to run a snippet codes from a string or file, while have ways to interact with object/functions in original dart code.

I understand there's a official flutter library to interpret Lua string (https://github.com/drydart/flutter_lua), however that library could not allow me to bind Dart functions and objects to be used in Lua scripts.

like image 292
hythloday Avatar asked Oct 15 '25 14:10

hythloday


1 Answers

Okay, so in the end I didn't use lua at all. I choose to build my own script language and embedded it into Dart, to achieve the goal I wanted in the beginning: Two way binding(invoke script language function from host language and invoke host language function in scripting).

This is the script language I am currently using in Dart: https://github.com/hythl0day/HetuScript

like image 60
hythloday Avatar answered Oct 18 '25 05:10

hythloday



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!