Commit History

Author SHA1 Message Date
  mingodad f4b7786eab Now const/enums have local scope. Also checking for double global declarations on the same compilation unit. 13 years ago
  mingodad 5ffcf2d4d8 Hopefully fixed the bug that do not allow functions declared as local to be called recursively. 13 years ago
  mingodad 8820a82880 Fix a mistake of by interpreting _OP_LOADFLOAT been always valid for SQFloat. 13 years ago
  mingodad a2d1a995fa Refactored a bit Lexer with the idea to expose it for SquiLu scripts. 13 years ago
  mingodad 093d9e6ea2 Revert this attempt to fix local function declaration recursion bug. 13 years ago
  mingodad d19915c3b5 Enhance code generated and fix mistakes. 13 years ago
  mingodad 409fe0966a Added new api to write bytecode as SquiLu code to make it easier to understand bytecode generation. 13 years ago
  mingodad e5aa50e70e Added a check for array/table as default parameters and throw an error, this is because the actual implementation is reusing the same object on every call instead of creating a new one. 13 years ago
  mingodad 074fac4319 Some white spaces wiped. 13 years ago
  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