Skip to content

Releases: LorettaDevs/Loretta

v0.2.2

09 Apr 06:11
Compare
Choose a tag to compare

Changes:

  • Only store IScopes that directly reference a IVariable in the IVariable.ReferencingScopes;
  • Move CapturedVariables to IFunctionScope as it is not applicable to non-function scopes;
  • Add ReferencedVariables to IScope with all IVariables referenced by the scope and its children;
  • Updated the README with instructions and documentation on v0.2.

v0.2.1

09 Apr 04:42
Compare
Choose a tag to compare

Changes:

  • Implement 5.3 bitwise operators along with LuaSyntaxOptions setting for erroring on them;
  • Implement a warning about \n\r being used as it is recognized as a single line break by Lua;
  • Amortize allocations made by string parsing.

v0.2.0

09 Apr 01:22
Compare
Choose a tag to compare

Changes:

Everything.

v0.1.6

11 Mar 22:26
59d0d2e
Compare
Choose a tag to compare

Changes:

  • Fixes number parsing so that 0X1, 0O1 and 0B1 don't error.

v0.1.5

03 Mar 21:58
cffc04c
Compare
Choose a tag to compare

Changes:

  • [Breaking] Made VisitCompoundAssignment and VisitEmptyStatement virtual in TreeWalkerBase.

v0.1.4

05 Jan 19:57
Compare
Choose a tag to compare

This release is a bugfix release with a few breaking changes.

Changes:

  • [Breaking] Make Scope store variables in a way that allows more than one variable with the same name;
  • Add a new Scope.FindMethod which forces a new variable to always be created;
  • [Breaking] Changed LuaParser.ParseIdentifierExpression to accept a Scope.FindMode instead of a bool;
  • [Breaking] Made new Variables always be created in the following cases:
    • For the variable names of a LocalVariableDeclarationStatement;
    • For the name of a local function;
    • For the iteration variables of a loop;
    • For the arguments of any kind of function declaration.
  • [Breaking] Made LocalVariableDeclarationStatement do late binding of the identifiers so that identifiers on the right side of the = don't get assigned the same variables as the one in the left side;
  • Fixed AnonymousFunctionExpression.Children and FunctionDefinitionStatement.Children so that exceptions don't get thrown when there is a vararg in the arguments;
  • Fixed NumericForLoopStatement parsing so that its scope doesn't get leaked anymore.

v0.1.3

08 Nov 23:10
Compare
Choose a tag to compare
Fix version bump.

Version bump ended up incrementing twice instead of once.

v0.1.2

05 Nov 01:29
Compare
Choose a tag to compare

Changelog:

  • Fixes a bug in the identifier lexer module that made so that identifiers with numbers were improperly parsed when the LuaJIT identifier rules were disabled.

v0.1.1

02 Sep 16:11
Compare
Choose a tag to compare
Fix Lua 5.2 preset

v0.1.0

02 Sep 13:00
Compare
Choose a tag to compare
Add package info and define this as v0.1.0