Skip to content

v1.1.0

Choose a tag to compare

@leafo leafo released this 11 Aug 16:24
· 8 commits to master since this release
v1.1.0
  • Embed parse tables as generated Go code instead of JSON parsed at startup, CLI startup goes from 15ms to 2ms
  • Move the grammar into Go (internal/parser/grammar.go), one entry per production with its semantic action attached
  • Add in-repo LALR(1) table generator (go generate ./internal/parser), Jison and Node are no longer part of the grammar pipeline
  • Add test verifying the generated automaton is identical to the one upstream shipped
  • Replace string token tags with integer enums
  • Add hand written scanners for lexer hot paths (numbers, string openers, operators), replacing regexp2
  • Token values are now zero copy substrings of the source, tokens are slab allocated
  • Disable GC in the CLI since it's a one shot process, soft memory limit keeps large batch invocations bounded
  • Report the MoonCoffee version separately from the base CoffeeScript version

Output is still byte-for-byte identical to CoffeeScript 1.12.7.

Full Changelog: v1.0.0...v1.1.0