mingodad
|
1d62218bab
Add a type check before try to set an enum value as integer
|
7 years ago |
mingodad
|
125175c480
Change the "compile time check constant" character to '$' and allow it's usage on expressions and in table initialization.
|
7 years ago |
mingodad
|
9374ec39f1
Add experimental shortcut for string constant 'const :somestr; == const somestr = "somestr";'
|
7 years ago |
mingodad
|
1538b25375
Fix a bug with default parameters and local recursive calls, also added a test for it.
|
7 years ago |
mingodad
|
c2881a0565
Fix '#include' inside '#ifdef' and add a default macro '__SQUILU__'
|
7 years ago |
mingodad
|
358e54bb31
Accept and discard a C++/Java type for the catch parameter
|
7 years ago |
mingodad
|
69ab368819
Fix compiler bugs found using zzuf tool, also now accepts C++ namespace syntax "::" as an alias to ".", added the samples that crashed the compiler.
|
8 years ago |
mingodad
|
9f8b951d6d
Add preproccessor directives #ifdef, #else, #endif, #define and #undef they are parsed at the same time as the script, I mean it's not a two pass scan/parse, the named proproccessor variables are not accessible to scripts.
|
8 years ago |
mingodad
|
a8e2a31141
Cleanup unnecessary code.
|
8 years ago |
mingodad
|
d98dff4505
Add the missing bitwise operators "|=", "&=", "<<=", ">>=", ...
|
8 years ago |
mingodad
|
a2333d71ef
Added type info to the comments in the squilu bytecode generation option
|
8 years ago |
mingodad
|
55e5b72f75
Reformated it using codeblocks astyle plugin.
|
8 years ago |
mingodad
|
1cfc0f80f5
Fix for a bug reported and solved by https://github.com/virt00l on squirrel
|
8 years ago |
mingodad
|
ea079daa15
Several fixes from squirrel.
|
8 years ago |
mingodad
|
c74277f2c2
Several fixes found when translating lua 5.1 tests (http://www.inf.puc-rio.br/%7Eroberto/lua/lua5.1-tests.tar.gz)
|
8 years ago |
mingodad
|
fbfa0c2cfd
A better error message for case where we have a variable declaration inside a for loop.
|
8 years ago |
mingodad
|
e4650598a8
Accept two or more consecutive strings as one like in C/C++
|
8 years ago |
mingodad
|
280aeba8c9
The compiler now accept integer literal suffixes "uUsSlL" but still all of then are stored as SQInteger.
|
8 years ago |
mingodad
|
60322d444e
Make the compiler accept typedef of fixed size array "typedef int_t int_a8[8];"
|
8 years ago |
mingodad
|
7a4868caa2
Use sq_type instead of the duplicated sqtype as it's done in squirrel
|
8 years ago |
mingodad
|
2e71442f5e
Add an initial implementation of using environment var SQUILU_PATH to search for include files, inspired and based on LUA_PATH
|
8 years ago |
mingodad
|
b5e8601a95
Fix for a bad declaration of a table been interpreted as a class
|
8 years ago |
mingodad
|
6ee9f39571
Change macro type() to sqtype() as done in squirrel, also updating sqlite3
|
8 years ago |
mingodad
|
f938a4075f
Apply fixes from squirrel
|
8 years ago |
mingodad
|
012e6a4110
Now SquiLu can accept C++/Java template instantiation declaration, although it discards it, again the idea is to accept a subset of C/C++/Java syntax.
|
8 years ago |
mingodad
|
79f10cd2e1
Add a comment to the last fix on sq_compiler.
|
8 years ago |
mingodad
|
faf042b87f
Fix a segfault when compiling with gcc -O3
|
9 years ago |
mingodad
|
b61525390d
Fix a bug in the compiler "include" code where doing a Lex() before the include file could trigger a search for a symbol defined on the include file and because of that be attached to a global search at runtime.
|
9 years ago |
mingodad
|
eb1c8e4414
Added the global rawcall that was implemented on squirrel
|
9 years ago |
mingodad
|
f7753fc37d
Fix typescript style class member declarations
|
9 years ago |