mingodad
|
65326f6619
A bit more close to get reference variables working.
|
13 years ago |
mingodad
|
c9cddd70ac
Remove a call to check "ErrorIfConst()" because it's not complete and was causing segfaults
|
13 years ago |
mingodad
|
d92650244e
Comment out some debug code
|
13 years ago |
mingodad
|
a98cbf7ba6
Modified a bit the recognition of pass by reference and added a check that raise an error in case of declare a parameter by reference and give default value.
|
13 years ago |
mingodad
|
1956ee8486
Moved code up that checks if "const" id already exists to make error messages show correct line number.
|
13 years ago |
mingodad
|
e07e89dfe6
Halfway to change enum/const declaration from global to local, meanwhile raise an error when try redeclare an already declared enum/const.
|
13 years ago |
mingodad
|
a032bbb5aa
Fix proposed by frosch to correct line number info in stack dumps
|
13 years ago |
mingodad
|
dbc3b5d130
Also when a statement folloes an "else if" and has no newline or semicolon presents the same problem reported from previous commit.
|
13 years ago |
mingodad
|
b5a916d4d6
Initial fix to a false sysntax error detected by the compiler.
|
13 years ago |
mingodad
|
9d38051739
Added type types declaration to the lexer and compiler, for now when declaring the following:
|
13 years ago |
mingodad
|
f4aaf6bcd6
Commented the warning on ignored keywords (right now only "new").
|
13 years ago |
mingodad
|
c1bdfe7919
Remove the modification on the compiler to prevent a identifier alone, Fagiano says that this is a language feature, for instance to have the side effect in case the _get method is implemented, also this modification makes the stack grow by one element all the time.
|
13 years ago |
mingodad
|
e9da3f5611
First try to fix bug in compiler that accepts identifiers alone silently.
|
13 years ago |
mingodad
|
2b9d6070ba
Add new token to lexer/compiler TK_IGNORE to ignore some keywords and make some C/C++ code be compiled, for the moment only "new" is ignored.
|
13 years ago |
mingodad
|
343ca7e2f2
Corrected a bug introduced by refactoring the compiler function "Expect", using a token paramter instead of "_token" in the new "GetTokenObject".
|
13 years ago |
mingodad
|
b4cf950f47
Refactored the parsing of json tables to allow unquoted keys.
|
13 years ago |
mingodad
|
c461d9bd71
Refactored the some compiler functions splitting then to use that functionality alone.
|
13 years ago |
mingodad
|
63c28432f2
Add keyword "var" as an alias to "local" when declaring local variables.
|
13 years ago |
mingodad
|
09cfbe61ca
Start git repository for squilu, squirrel language enhanced with lua goods.
|
13 years ago |