Skip to content

Release v0.2.5

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 11 Jan 01:19

Parser

  • Allow dereferencing this without the this keyword (chain the dot operators).
  • Correct typings for SliceExpression.
  • Nest the binary expressions according to the binary operator precedence.

Walker 0.1.0

If the recursive walker fails, include the latest visited node in the error.

Interpreter 0.1.0

  • Ignore the imaginary operator ^^, recognise the existing one ||.
  • Fix built-in object method lookup.
  • Set default values to declared variables.
  • Introduce built-in objects Assoc, List and Regex.
  • Add runtime type checking to the built-in functions and object methods.
  • Include the last interpreted node in the runtime error report.
  • Inline the preparation of AST from an extra preprocessing step to the interpretation phase.

BREAKING CHANGE: The second parameters of interpret is an object with options. The parameter globals has been moved to a property in the options object.