GithubHelp home page GithubHelp logo

siangzhang / lua-checker Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 164 KB

Automatically exported from code.google.com/p/lua-checker

License: Other

Shell 1.86% Makefile 1.38% Lex 15.11% Yacc 61.55% C++ 14.29% Lua 2.70% C 3.11%

lua-checker's Issues

[PATCH] fix lua-checker build on Mac OS X

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:

"Languages such as C/C++ and Java are strongly typed. "

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

lua_simplifer incorrectly converts table method with 0 parameters

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

simplifier barfs on ('barf'):len()

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

Error checking out on command-line

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

some build problems

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:

rawset getmetatable keywords are treated as [variable not declared]

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.