Skip to content

Releases: xp-framework/compiler

3.0.0: Compiler continuation

10 Aug 14:47
Compare
Choose a tag to compare
  • Made compatible with PHP 7.4 - refrain using {} for string offsets
    (@thekid)
  • Merged PR #45 - Multiple errors - @thekid
  • Changed compiler to emit deprecation warnings for Hack language style
    arrow functions and compact methods using ==>, instead advocating the
    use of PHP 7.4 with the fn keyword; see issue #65
    (@thekid)

2.13.0: PHP 7.4 features

15 Jun 15:33
Compare
Choose a tag to compare
  • Added preliminary PHP 8 support - see #62 (@thekid)
  • Added support for PHP 7.4 features
    • Implemented numeric literal separator, e.g. 1_000_000_000 - see #61
    • Implemented null-colaesce assignment operator ??= - see #58
    • Implemented support PHP 7.4-style short closures with fn - see #60
    • Implemented support for emitting typed properties in PHP 7.4 - see #57
      (@thekid)

2.12.0: PHP 7.3 compatibility

28 Dec 16:45
Compare
Choose a tag to compare

Fix path resolution

14 Sep 08:50
Compare
Choose a tag to compare
  • Fixed #56: Resolved paths not absolute - @thekid

2.11.0: Filenames in errors

11 Aug 14:59
Compare
Choose a tag to compare
  • Merged PR #54: Ensure filenames in errors reflect source files - @thekid

2.10.1: URI loading fixes

24 Jun 17:24
Compare
Choose a tag to compare
  • Fixed throw expressions with variables, e.g. () ==> throw $e;.
    (@thekid)
  • Fixed URI loading for CompilingClassLoader - this way, loading
    classes via URIs works, and thus e.g. xp test path/to/Test.php.
    (@thekid)

2.10.0: Throw expression

21 Jun 20:25
Compare
Choose a tag to compare
  • Merged PR #53: Implement throw expressions - @thekid

2.9.0: Arrow functions with blocks, goto

18 Jun 23:33
Compare
Choose a tag to compare
  • Merged PR #52: Implement "goto" statement - @thekid
  • Merged PR #50: Allow arrow functions with blocks - @thekid

2.8.0: Echo

16 Jun 23:44
Compare
Choose a tag to compare
  • Merged PR #47: Allow empty catch type to catch all exceptions - @thekid
  • Merged PR #44: Implement echo statement - @thekid

2.7.0: Compile only mode

16 Jun 19:27
Compare
Choose a tag to compare
  • Merged PR #43: Add "-n" command line option to compile only - @thekid
  • Merged PR #42: Raise errors when members are redeclared - @thekid