added lua interpreter support for custom math functions

This commit is contained in:
2023-10-31 19:02:40 +01:00
parent 4ace2b4385
commit e10faf2204
8 changed files with 185 additions and 34 deletions

12
go/test.lua Normal file
View File

@@ -0,0 +1,12 @@
function add(a,b)
return a + b
end
function parallelresistance(a,b)
return 1.0 / (a * b)
end
function init()
RegisterFuncTwoArg("add")
RegisterFuncTwoArg("parallelresistance")
end