Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 2.13 KB

CHANGELOG.md

File metadata and controls

48 lines (35 loc) · 2.13 KB

0.4.18-remastered.7 (2022-07-18)

  • Fixed to work for Node.js 10+

0.4.18-remastered.6 (2022-07-18)

  • Added packTable option for parser generateModule() method (parser.generateModule("esm", { packTable: "advanced" })), to employ a more sophisticated approach for packing BNF table, this is useful for large tables to reduce tens of kilobytes down to just a few kilobytes
  • Removed auto-resolved conflict warnings in non-debug mode
  • Removed unnecessary export in generated ESM code

0.4.18-remastered.5 (2022-04-05)

  • Added Lexer#setMatch(start, end) method
  • Fixed updating yytext, yyleng, yylloc, yylineno, offset and match on match changes

0.4.18-remastered.4 (2022-04-05)

  • Fixed Lexer#showPosition() input slicing
  • Added Lexer#eof() method
  • Added parameter position for Lexer#showPosition()
  • Changed Lexer#_input to contain entire input instead of unmatched input
  • Removed Lexer#matched
  • Removed Lexer#pastInput()
  • Removed Lexer#upcomingInput()
  • Restricted Lexer#unput() to allow unput only a part of match substring

0.4.18-remastered.3 (2021-04-03)

  • Fixed function body extraction for arrow functions in a rule action

0.4.18-remastered.2 (2021-04-03)

  • Dropped support for Node.js prior 10.10
  • Reworked Lexer's code generation
  • Changed Lexer constructor Lexer(dict, input, tokens)Lexer(dict, tokens)
  • Renamed Lexer.generate() method into Lexer.generateModule()
  • Removed support for moduleName in Lexer#generateModule() and Lexer.generateModule() methods
  • Added format option for Lexer#generateModule(format) and Lexer.generateModule(dict, tokes, format) methods. Supported formats are cjs, esm and iife
  • Changed Generator#generateModule(opts)Generator#generateModule(format)
  • Reduced package size by omitting test files

0.4.18-remastered.1 (2020-11-10)

  • Removed web site sources
  • Removed CLI & bundling. Those things may back in the future but in fresh way
  • Removed generator methods except generateModule
  • Refactored to use ES6+ features, remove redundant abstractions, minor bug fixes
  • Added support for function patterns in lexer