Skip to content

Releases: xp-framework/ast

3.0.1: Children iteration fix

22 Sep 21:32
Compare
Choose a tag to compare
  • Fixed xp-framework/compiler#71: Call to a member function children()
    on array, which occured with if, catch and switch statements
    as well as for array literals.
    (@thekid)

3.0.0: Element -> Node, Code generator

09 Sep 14:36
Compare
Choose a tag to compare
  • Heads up: Changed transformation API - functions must accept a
    reference to the code generation process as their first parameter.
    (@thekid)
  • Heads up: Added kind to UnaryExpression constructor which is
    either prefix or suffix, supporting ++$i as well as $i++.
    (@thekid)
  • Merged PR #4: Add Node class replacing Element and Value - @thekid

2.0.0: Compact AST

06 Sep 11:29
Compare
Choose a tag to compare
  • Merged PR #3: Allow multiple transformations per kind - @thekid
  • Heads up: Removed Symbol and Node classes, which belong to the
    compiler internals now only
    (@thekid)
  • Merged PR #2: Refactor AST. This makes programmatic AST creation far
    easier and improves on memory usage.
    (@thekid)

1.4.0: PHP 7.4 compatibility

10 Aug 14:18
Compare
Choose a tag to compare
  • Made compatible with PHP 7.4 - refrain using {} for string offsets
    (@thekid)

1.3.0: Using

02 Apr 12:17
Compare
Choose a tag to compare

1.2.0: Constant types

02 Apr 12:17
Compare
Choose a tag to compare
  • Added type to class constants - @thekid

1.1.0: Mixed type

29 Mar 13:58
Compare
Choose a tag to compare
  • Added support for mixed type - @thekid

1.0.1: Nullable fix

29 Mar 10:56
Compare
Choose a tag to compare
  • Fixed nullable value types being emitted incorrectly - @thekid

1.0.0: Extracted from XP Compiler

06 Nov 20:35
Compare
Choose a tag to compare