Skip to content

Releases: xp-framework/compiler

2.0.0: AST API

06 Nov 20:38
Compare
Choose a tag to compare
  • Implemented use function and use const - @thekid
  • Fixed issue #21: Comments are not escaped - @thekid
  • Project AST API:
    • Merged PR #22: Extract AST (to https://github.com/xp-framework/ast)
    • Index annotations by name
    • Split new for static and anonymous types
    • Simplified parsing and emitting loops and if/else constructs
    • Renamed Node::$arity to Node::$kind
    • Merged PR #20: Refactor signature
    • Merged PR #19: Refactor value arrays to specialized types
      (@thekid)

1.4.0: Spread operator in arrays & maps

04 Nov 18:28
Compare
Choose a tag to compare
  • Merged PR #18: Allow using unpack operator inside array literals
    (@thekid)
  • Added option to specify target version to xp compile - @thekid
  • Fixed isse #17: Comments missing from generated code - @thekid

Hack language

04 Nov 14:45
Compare
Choose a tag to compare
  • Made it possible to use <?hh as opening tag, too. This way, we are
    able to parse Hack language files.
    (@thekid)

1.2.1: Ambiguity resolution fix

31 Oct 19:43
Compare
Choose a tag to compare
  • Changed ambiguity resolution between casts, braced expressions and
    lambda to be far more robust
    (@thekid)

1.2.0: Import aliases

31 Oct 18:12
Compare
Choose a tag to compare
  • Added support for import aliases (use Type as Alias) - @thekid
  • Fixed issue #16: Enums broken - @thekid

1.1.2: Interop fix with xp-forge/partial

31 Oct 17:01
Compare
Choose a tag to compare
  • Fixed issue #15: Interop with xp-forge/partial broken - @thekid

1.1.1: Map initialization fix

31 Oct 15:38
Compare
Choose a tag to compare
  • Fixed map initialization with keys consisting of complex expressions
    (@thekid)

1.1.0: Traits

31 Oct 14:51
Compare
Choose a tag to compare
  • Implemented trait usage, including aliasing via as. See issue #14
    (@thekid)

1.0.0: Parameter annotations

25 Oct 21:18
Compare
Choose a tag to compare
  • Indexed type members by name; implementing feature suggested in #10
    (@thekid)
  • Heads up: Implemented syntax for parameter annotations as stated
    in issue #1 - alongside the parameter; no longer in its "targeted" form
    $param: inject as in xp-framework/rfc#218
    (@thekid)
  • Added support for keywords as methods in PHP 5.6 - @thekid
  • Implemented xp-framework/rfc#326: Cast and nullable types - @thekid
  • Added support for casting value and array types - @thekid

0.9.1: Promoted arguments fix

22 Oct 16:28
Compare
Choose a tag to compare
Pre-release
  • Fixed promoted argument types not being recorded - @thekid