nobuyuki / lua-checker Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/lua-checker
License: Other
Automatically exported from code.google.com/p/lua-checker
License: Other
Eventually I will write some real documentation, for now here are a few notes. * No free()ing of heap allocated objects, since that's a pain and it's not necessary in this case because the amount of data allocated is proportional to the size of the (generally small) lua program that is parsed. * "dofile 'filename'" statements expanded inline at global scope. other dofiles (e.g. in expressions or inner scope) are not expanded since they might be conditional.
lua-checker does not build on Mac OS X 10.6. I am using MacPorts 1.9.2 and lua
5.1.4.
Problems:
1. Makefile tries to statically link "lua/src/liblua.a" instead of dynamically
linking "-llua".
2. CHECK_LUA.sh tries to run "lua/src/luac" instead of just "luac".
3. test.lua references missing file "tmp/abc.lua"
Attached is a patch that fixes these problems for Mac OS X, though I am sure
this patch will not be happy on other platforms like Linux (e.g. MacPorts' link
path "-L/opt/local/lib").
Original issue reported on code.google.com by [email protected]
on 14 Dec 2010 at 7:04
Attachments:
What steps will reproduce the problem?
1. echo 'print(("barf"):len())' > barf.lua
2. ./lua_simplifier barf.lua
What is the expected output? What do you see instead?
Error: syntax error, unexpected ':', expecting ',' or ')', at barf.lua:1
What version of the product are you using? On what operating system?
svn checkout from today, on Debian unstable linked against lua5.1
Original issue reported on code.google.com by [email protected]
on 9 Jul 2010 at 5:26
Attach the file to be able to build.
Original issue reported on code.google.com by [email protected]
on 22 Nov 2009 at 4:16
Attachments:
What steps will reproduce the problem?
1. svn checkout, then run make
What is the expected output? What do you see instead?
g++-4.4 complains about undefined functions (e.g. exit, strcmp). I solved it
by adding some includes.
What version of the product are you using? On what operating system?
svn checkout from today, on Debian unstable amd64
Please provide any additional information below.
I also had to link against -llua51 instead of lua/src/liblua.a
Original issue reported on code.google.com by [email protected]
on 9 Jul 2010 at 5:30
Attachments:
This sentence and the paragraph that follows suggests to me that the author has
conflated strong typing with static typing, when they are two orthogonal
concepts.
(Apologies if this is the wrong place for such pedantry, but it seemed like the
best choice).
Original issue reported on code.google.com by [email protected]
on 4 Feb 2011 at 12:10
What steps will reproduce the problem?
1. Create bad.lua file with these contents
tbl = { };
function tbl:func()
end
2. Run lua_simplier bad.lua
What is the expected output?
tbl = {};
tbl['func'] = function(self)
end;
What do you see instead?
tbl = {};
tbl['func'] = function(self, )
end;
What version of the product are you using? On what operating system?
SVN rev7
Windows XP SP3
CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
Original issue reported on code.google.com by [email protected]
on 31 Mar 2009 at 8:46
What steps will reproduce the problem?
1. try checkout out the code via command-line
2. get errors
3. check similar error at
http://www.lisnichenko.com/articles/svn-propfind-request-failed.html (suggests
you need to configure apache server to support SSL over command-line, read it
in a hurry but i thought that was the gist of it)
What is the expected output? What do you see instead?
checkout of lua-checker-read-only
What version of the product are you using? On what operating system?
linux
Please provide any additional information below.
[root@uklon-0648d lua-checker-src]# svn checkout
http://lua-checker.googlecode.com/svn/trunk/ lua-checker-read-only
svn: PROPFIND request failed on '/svn/trunk'
svn: PROPFIND of '/svn/trunk': 501 Not Implemented
(http://lua-checker.googlecode.com)
[root@uklon-0648d lua-checker-src]# svn checkout
http://lua-checker.googlecode.com/svn/trunk/ lua-checker-read-only
Original issue reported on code.google.com by [email protected]
on 23 May 2011 at 10:24
contact: peter X @ X wapeter.com (remove X)
Variable 'rawset' not declared
(same for 'getmetatable' )
Under MacOSX Mountain Lion,
Lua 5.2.1
solution fix:
in lua_checker.y
void Initialize() {
..
// peter: add rawset (after rawget)
scope_vars.back().vars["rawset"] = VariableInfo(0, 0, true);
...
// peter: add getmetatable (after setmetatable)
scope_vars.back().vars["getmetatable"] = VariableInfo(0, 0, true);
...
fyi: svn info (i get the lua_checker from the public svn branch)
petermac : ~/Documents/workspace/luachecker/lua-checker-read-only $ svn info
Path: .
Working Copy Root Path:
/Users/peter/Documents/workspace/luachecker/lua-checker-read-only
URL: http://lua-checker.googlecode.com/svn/trunk
Repository Root: http://lua-checker.googlecode.com/svn
Repository UUID: 3e0f4ab2-c54c-0410-afbc-87f5dd98f5ef
Revision: 7
Node Kind: directory
Schedule: normal
Last Changed Author: russ.ls
Last Changed Rev: 7
Last Changed Date: 2008-07-04 04:32:03 +0800 (Fri, 04 Jul 2008)Please provide
any additional information below.
Original issue reported on code.google.com by [email protected]
on 12 Jul 2013 at 5:54
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.