taesoobear / luna-gen Goto Github PK
View Code? Open in Web Editor NEWA lua binding code generator written in pure lua
A lua binding code generator written in pure lua
Since the generated file doesn't do using namespace std; cout needs the
namespace prefix in luna_gen.lua. It may even be better to use std::cerr
instead of std::cout in this case.
Original issue reported on code.google.com by losinggeneration
on 20 Aug 2011 at 1:49
Attachments:
What steps will reproduce the problem?
1. Try to compile with gcc
2.
3.
What version of the product are you using? On what operating system?
Head OSX 10.6
Please provide any additional information below.
It would seem to me that you have not tried to compile the generated code with
gcc as it is not valid C++.
You will gets errors that you are missing "template<>" from initialisations of
static members in the cpp file.
You are defining static member functions in the cpp file which no other
translation unit can see.
The "Register_" function is not declared in the generated header.
Original issue reported on code.google.com by [email protected]
on 11 Dec 2012 at 4:47
custumFunctionsToRegister should be customFunctionsToRegister.
Original issue reported on code.google.com by losinggeneration
on 22 Aug 2011 at 11:09
It looks like ==, !=, <=, and >= are not in implemented to be parsed (probably
more accurately, eq, lt, & gt since there is no direct 'ne' for ~=). While
parsing those operators, luna-gen's parseMemberFunction thinks the overloaded
operator is a function with a default argument. It would be nice if at least
eq, lt, & gt are implemented. != would be a nice too, but could be skipped, as
it can just be done in Lua with "not (a == b)"
Original issue reported on code.google.com by losinggeneration
on 22 Aug 2011 at 5:40
What steps will reproduce the problem?
1. run ./make.sh
2.
3.
What is the expected output? What do you see instead?
I don't know :) Fails to generate test files
./make.sh
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Found Lua51: /usr/local/lib/liblua.dylib
include directories:
/usr/local/include/lua
add_luna_test garbage_collection
add_luna_test var_arg
add_luna_test property
add_luna_test inheritance
add_luna_test operator_overloading
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/apple/Documents/projects/lua-gen-binding/luna-gen/test_luna/build_unix
[ 5%] Generating ../generated/test_garbage_collection.cpp
/Users/apple/Documents/projects/lua-gen-binding/luna-gen/test_luna/generated/tes
t_garbage_collection.cpp: No such file or directory
Scanning dependencies of target test_garbage_collection
[ 5%] Generating ../generated/test_garbage_collection.cpp
/Users/apple/Documents/projects/lua-gen-binding/luna-gen/test_luna/generated/tes
t_garbage_collection.cpp: No such file or directory
[ 10%] Building CXX object
CMakeFiles/test_garbage_collection.dir/generated/test_garbage_collection.cpp.o
i686-apple-darwin10-g++-4.2.1:
/Users/apple/Documents/projects/lua-gen-binding/luna-gen/test_luna/generated/tes
t_garbage_collection.cpp: No such file or directory
i686-apple-darwin10-g++-4.2.1: no input files
make[2]: ***
[CMakeFiles/test_garbage_collection.dir/generated/test_garbage_collection.cpp.o]
Error 1
make[1]: *** [CMakeFiles/test_garbage_collection.dir/all] Error 2
make: *** [all] Error 2
What version of the product are you using? On what operating system?
Head, Mac OsX 10.6
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 13 Aug 2011 at 2:47
Perhaps I'm doing something incorrect here, but it seems that pass by reference
and pass by pointer don't work. Attached is the test case.
Original issue reported on code.google.com by losinggeneration
on 22 Aug 2011 at 11:23
Attachments:
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.