frabert / netlua Goto Github PK
View Code? Open in Web Editor NEWCompletely managed .NET Lua
License: MIT License
Completely managed .NET Lua
License: MIT License
Curious to see so I can output everything in the AST.
I was wondering if I could edit AST Generated from NetLua, and then put it back into Lua.
Would I have to make my own method for it or, is there a native function that does it?
https://github.com/frabert/NetLua/blob/master/NetLua/LuaEvents.cs#L290
causes an (null reference) exception (not LuaException) when Lua tries to call a function that does not exist.
To reproduce, simply call a nonexisting function:
lua.DoString("anything()");
I don't exactly understand which part of it is null. Would be nice to get the name and line number of the missing function in a (Lua)Exception message.
I couldnt find any boolean function example to register into lua. My way of doing it is like this,
I need exactly 1 boolean do i have to check everything like this ? Is there any way like registerFunction like LuaInterface ?
static LuaArguments test(LuaArguments args)
{
if (args.Length ==1 && args[0].Type == LuaType.boolean)
{
return Lua.Return(!args[0]);
}
return Lua.Return(null);
}
private void Form1_Load(object sender, EventArgs e)
{
lua = new Lua();
lua.Context.SetGlobal("test", (LuaFunction)test);
}
When Parsing a String, like:
function abc(a, ...) return 10 end
Returns an Error in the Parse String Method: Error In (0, 16): Syntax Error Identifier Expected
While In Normal lua this works.
Add Irony dependency trough nuget ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.