Roberto Ierusalimschy
|
525a91fed3
|
BUG: "lastline" was not reset on function entry, so debug information
started only in the 2nd line of a function.
|
27 years ago |
Roberto Ierusalimschy
|
accd7bc253
|
small modifications (format, small optimizations, etc)
|
27 years ago |
Roberto Ierusalimschy
|
2e7595522d
|
allows '\r' at the end of pragmas, so one can mix Windows and Unix files
|
27 years ago |
Roberto Ierusalimschy
|
592a3f289b
|
first implementation of centralized global state.
|
27 years ago |
Roberto Ierusalimschy
|
92791b9dd6
|
small details
|
27 years ago |
Roberto Ierusalimschy
|
45cad43c3f
|
"lua_open": now lua has an explicit open operation.
|
27 years ago |
Roberto Ierusalimschy
|
2bb94d9e22
|
using bison instead of yacc; lparser.c renamed to lstx.c (to
avoid confusion with lparser.h...)
|
27 years ago |
Roberto Ierusalimschy
|
a580480b07
|
new implementation for globals: Global value is stored in TaggedString
|
28 years ago |
Roberto Ierusalimschy
|
60cc473bcf
|
Lexical Analizer
|
28 years ago |
Roberto Ierusalimschy
|
a7793468aa
|
correct support for changing real to double (optional)
|
28 years ago |
Roberto Ierusalimschy
|
0892f0e5b7
|
BIG CHANGE: functions have their own "constant table".
|
28 years ago |
Roberto Ierusalimschy
|
11d97c34d5
|
skipping of '#' in first line is done by lex.c.
|
28 years ago |
Roberto Ierusalimschy
|
7820a47184
|
LOCALE support
|
28 years ago |
Roberto Ierusalimschy
|
c9a2dfeb2c
|
using "zio" for parsing Lua code.
|
28 years ago |
Roberto Ierusalimschy
|
33f4fef410
|
BUG: did not handle properly pragmas $endinput/$debug inside a $if.
|
28 years ago |
Roberto Ierusalimschy
|
faec0b0824
|
new pragma "$endinput"
|
28 years ago |
Roberto Ierusalimschy
|
64d93e7cf9
|
global variables (in $if) may have '_'.
|
28 years ago |
Roberto Ierusalimschy
|
a8cd072c76
|
nested "$if's", "$else", and "$if" constants (nil & 1).
|
28 years ago |
Roberto Ierusalimschy
|
c9e3d32182
|
first implementation of "$if";
new function "findstring" (useful in good places)
|
28 years ago |
Roberto Ierusalimschy
|
cae1eff901
|
small "bugs" detected by Purify: cannot read "next" after 0.
|
28 years ago |
Roberto Ierusalimschy
|
373363cb69
|
new name for old "mem.h" (conflicts with some compiler libraries)
|
28 years ago |
Roberto Ierusalimschy
|
2de803c250
|
new header 'auxlib.h' + new function luaL_verror
|
28 years ago |
Roberto Ierusalimschy
|
b48847c5fa
|
BUG: "inclinenumber" cannot use public buffer, since it could change
the buffer pointer (luaY_lex and read_long_string have local
pointers to it).
|
28 years ago |
Roberto Ierusalimschy
|
1f4ee4a4d2
|
ANSI ctype only works for unsigned chars (or EOF)
|
28 years ago |
Roberto Ierusalimschy
|
65459e7938
|
small BUG: pragma deletes 0 at end of yytext, so a syntax error just after
it may have a wrong token in message.
|
28 years ago |
Roberto Ierusalimschy
|
a103455dda
|
better format for error messages.
|
28 years ago |
Roberto Ierusalimschy
|
60242e1930
|
error message for syntax "1..2";
syntax error function is in "lex.c" (it has the token)
|
28 years ago |
Roberto Ierusalimschy
|
3e94febfc1
|
pragmas should not be recognized inside literal strings.
|
28 years ago |
Roberto Ierusalimschy
|
0af581f0bf
|
new way to handle pragmas (at the lexical level, instead of parsing).
|
29 years ago |
Roberto Ierusalimschy
|
f0cc2d5506
|
BUG: a program ending in a comment without EOL made lex loops forever.
|
29 years ago |
Roberto Ierusalimschy
|
5cddb264d4
|
lexical analiser may use luaI_buffer, instead of waste space with
a separate buffer.
|
29 years ago |
Roberto Ierusalimschy
|
9863223fbf
|
first version of vararg facility (plus new function "call").
|
29 years ago |
Roberto Ierusalimschy
|
9284742a11
|
better control when growing arrays.
|
29 years ago |
Roberto Ierusalimschy
|
7e0be1fbde
|
unused "#include"
|
29 years ago |
Roberto Ierusalimschy
|
281db390e8
|
no more "ugly" programs.
no more comments with '#'.
|
29 years ago |
Roberto Ierusalimschy
|
66fc0f554a
|
using double to read numbers.
|
29 years ago |
Roberto Ierusalimschy
|
15c17c24fa
|
small improvements
|
29 years ago |
Roberto Ierusalimschy
|
d1608c597e
|
reserved words are stored in main string table; "marked" field is
used to indicate its type.
Table initializations centralized by "tree.c".
|
29 years ago |
Roberto Ierusalimschy
|
0f4903a5d7
|
new header "lex.h".
|
29 years ago |
Roberto Ierusalimschy
|
41259bff31
|
BIG CHANGE: new data structure for constants, strings and globals, using
an array of hash tables for all them.
|
29 years ago |
Roberto Ierusalimschy
|
73be918285
|
a backslash followed by a newline allows the newline to go into
a string.
|
29 years ago |
Roberto Ierusalimschy
|
56fb06b6f5
|
"lua_debug" now is exported through debug interface (luadebug.h)
|
29 years ago |
Roberto Ierusalimschy
|
27ae8432b6
|
names generated by yacc (starting with "yy") are changed to start with
"luaY_", to avoid name clashes with hosts using yacc.
|
29 years ago |
Roberto Ierusalimschy
|
f188e1000b
|
useless "#include math.h"
|
29 years ago |
Roberto Ierusalimschy
|
9efc257d9d
|
new method to keep debug line information: current line is stored on the
Lua stack, just below (new) base, with tag LUA_T_LINE.
SETLINE opcodes are generated by lex.
|
29 years ago |
Roberto Ierusalimschy
|
b17c76817d
|
new function "luaI_findconstantbyname".
|
29 years ago |
Roberto Ierusalimschy
|
025589f772
|
nova forma de comentarios: de '#' ate' fim de linha (para uso de lua
como shell)
|
30 years ago |
Roberto Ierusalimschy
|
38411aa102
|
small correction to avoid problems with DOS/Windows
|
30 years ago |
Roberto Ierusalimschy
|
367139c6d9
|
buffer for literals now grows dynamically, allowing big programs between [[ and ]].
|
30 years ago |
Roberto Ierusalimschy
|
bcf46ee83b
|
new syntax for strings: [[ ... ]]. Still in tests,
since the code does not check buffer overflow.
|
30 years ago |