summaryrefslogtreecommitdiff
path: root/lparser.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* old error messages may be misleadingRoberto Ierusalimschy2011-12-021-4/+4
|
* more uses of 'l_noret'Roberto Ierusalimschy2011-11-301-7/+5
|
* detail (avoid applying macro 'getstr' with a function-call argument)Roberto Ierusalimschy2011-10-311-2/+3
|
* silly bug in 5.2 beta: assignment conflict code did not test to checkRoberto Ierusalimschy2011-10-241-17/+20
| | | | whether variable was a table element
* lint (unreachable code)Roberto Ierusalimschy2011-09-301-2/+2
|
* small bug in if-goto optimization: block must be closed ('leaveblock')Roberto Ierusalimschy2011-09-141-5/+8
| | | | *before* the jump out ('escapelist')
* optimization for |if cond then goto|Roberto Ierusalimschy2011-08-301-18/+37
|
* cleaner code for 'if' constructRoberto Ierusalimschy2011-08-251-20/+14
|
* 'nCcalls' should be local to each thread, as each thread may have itsRoberto Ierusalimschy2011-08-231-6/+6
| | | | own C stack (with LuaThreads or something similar)
* reducing even more use of C stack by the parser: struct 'FuncState'Roberto Ierusalimschy2011-07-271-12/+12
| | | | | does not need field 'L' + number of labels/gotos in a chunk may be limited to SHRT_MAX. (Also removed some non-needed 'unsigned's.)
* detail (cleaned whitespaces at end of lines)Roberto Ierusalimschy2011-07-151-3/+3
|
* small simplifications (and assert was wrongly written)Roberto Ierusalimschy2011-07-021-4/+2
|
* back to "one-label-per-block"Roberto Ierusalimschy2011-06-271-20/+13
|
* label syntax changed to '::label::'Roberto Ierusalimschy2011-06-201-6/+6
|
* label names must be unique inside a functionRoberto Ierusalimschy2011-06-161-12/+27
|
* commentRoberto Ierusalimschy2011-05-021-2/+2
|
* local function name only visible to debug info after being initializedRoberto Ierusalimschy2011-04-181-1/+6
|
* no need of lookahead in ZioRoberto Ierusalimschy2011-02-231-3/+3
|
* error for repeated label + jumps allowed to labels followed byRoberto Ierusalimschy2011-02-141-24/+34
| | | | 'no-op' statements
* 'break' does not need to be last statement in a block +Roberto Ierusalimschy2011-02-141-81/+84
| | | | 'explist1' -> 'explist' + moving a few functions around
* 'break' coded as 'goto' + small bug when closing multiple gotosRoberto Ierusalimschy2011-02-101-59/+52
| | | | to the same label
* simpler code for repeat-untilRoberto Ierusalimschy2011-02-091-11/+5
|
* corrected 'follow' for checking whether label is last statementRoberto Ierusalimschy2011-02-091-14/+21
| | | | in a block
* small changes in goto-related error messagesRoberto Ierusalimschy2011-02-091-8/+15
|
* ensures that all local variables are declared inside some block,Roberto Ierusalimschy2011-02-071-45/+39
| | | | opening a new block at 'open_func'
* some reorganization of dynamic data structures used by the parserRoberto Ierusalimschy2011-02-071-64/+65
|
* no more 'OP_CLOSE' instructions (use jumps to close upvalues)Roberto Ierusalimschy2011-02-071-3/+7
|
* first implementation of 'goto'Roberto Ierusalimschy2011-02-041-14/+174
|
* new scheme to close upvalues in 'break'; jump instructions mayRoberto Ierusalimschy2011-02-011-4/+4
| | | | do the close, avoiding the need for a OP_CLOSE instruction
* detail (cleaning trailing spaces)Roberto Ierusalimschy2011-01-261-2/+2
|
* new closures are always created on "next" register (so that GC knowsRoberto Ierusalimschy2010-12-171-9/+6
| | | | stack limit)
* commentRoberto Ierusalimschy2010-12-151-2/+2
|
* name "_ENV" configurable through 'luaconf.h'Roberto Ierusalimschy2010-09-071-4/+4
|
* 'pushclosure' -> 'codeclosure' (as there is another 'pushclosure' inRoberto Ierusalimschy2010-08-231-8/+13
| | | | 'lvm.c) + small detail
* new way to distinguish between indexing tables in registers andRoberto Ierusalimschy2010-07-071-20/+16
| | | | | tables in upvalues (+ fixed small bug when checking conflicts in multiple assignments)
* better organization for fields in struct 'expdesc'Roberto Ierusalimschy2010-07-021-14/+14
|
* 'getlocal' gets information about parameters of Lua functionsRoberto Ierusalimschy2010-06-211-2/+2
|
* new macro MAXUPVAL (maximum number of upvalues per closure)Roberto Ierusalimschy2010-05-311-3/+3
|
* semicolons now represent the empty statementRoberto Ierusalimschy2010-05-151-3/+5
|
* commentsRoberto Ierusalimschy2010-05-141-6/+6
|
* detail (breaking a long line)Roberto Ierusalimschy2010-05-131-4/+5
|
* better line numbers for function calls and unary/binary operators +Roberto Ierusalimschy2010-04-171-9/+12
| | | | null statement + no more "ambiguous syntax" restriction
* no need to keep "_ENV" name in global state (can be kept in lex state)Roberto Ierusalimschy2010-04-051-5/+5
|
* new macro 'eqstr'Roberto Ierusalimschy2010-04-051-3/+3
|
* '_ENV' name permanently stored in global state for easier accessRoberto Ierusalimschy2010-03-131-6/+3
|
* first version of _ENV; no more global variablesRoberto Ierusalimschy2010-03-121-37/+10
|
* first step towards _ENV: all chunks have an puvalues _ENV with theRoberto Ierusalimschy2010-03-081-11/+24
| | | | global table
* when searching for a variable name, look existing upvalues beforeRoberto Ierusalimschy2010-03-041-20/+32
| | | | goingg to upper levels
* new instructions to optimize indexing on upvaluesRoberto Ierusalimschy2010-02-261-9/+14
|
* again changing macro to function to save a few bytesRoberto Ierusalimschy2010-01-061-5/+9
|