mingodad / ljs Goto Github PK
View Code? Open in Web Editor NEWLua with C/C++/Java/Javascript syntax
License: MIT License
Lua with C/C++/Java/Javascript syntax
License: MIT License
I'd like to be able to code using ljs and then run it in an interpreted environment that uses standard lua 5.1 code (eg love2d/lovr).
Can you make a reverse converter?
i want to modify change
OP_MOVE
OP_LOADK
order, prevent hackers (Luadec)
code:
local CallCount = 0;
function Test2()
{
if (CallCount > 10) //error Always True
{
print("Compare_:"..CallCount);
}else
{
print("Count:"..CallCount);
}
CallCount++;
}
Occurs (CallCount > 10) equals TRUE
I was wondering if this would run on these platforms?
lua.set_function("TestNumber", =->lua_Number {return (lua_Number)0; });
code:
function Test()
{
local ss = TestNumber(); //《=== ss = 0
if (ss)
{
print(string.format("A-number:0x%08X",ss)); //《=== Enter ???????????
}else
{
print(string.format("B-number:0x%08X",ss));
}
}
Test()
i want to use it in luajit, does it support?
my main 3 issues with lua are:
keep up the good work
like this:
local s = [[
This
is
multiline
string
]]
Is there documentation on how to bind to a c99 program?
Hello,
I wonder what is your goal for the ljs project.
IMHO, the Lua syntax is not really sexy at all but I'm using it without problem.
I'm still looking about alternative, like moonscript, etc.
I thought (like your project) to using different language syntaxes to execute on the Lua VM (in fact in the LuaJIT one).
There is some case where the usual way to code is complicated to make abstraction.
For sample,
How to you deal with the first array's index is 1 in Lua VS 0 in JS ?
local cars = {"Saab", "Volvo", "BMW"}
print(cars[1]=="Saab")
VS
var cars = new Array("Saab", "Volvo", "BMW");
print(vars[0]=="Saab")
Regards,
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.