Skip to content

Releases: conflowio/parsley

0.4.0

09 Sep 09:47
Compare
Choose a tag to compare

BACKWARDS INCOMPATIBILITIES:

  • Typo fix in some methods: peak -> peek

IMPROVEMENTS:

  • Move precompiled whitespace regexp to a separate variable in text reader

OTHER:

  • Fix example JSON parser + add comparison benchmarks against encoding/json

0.3.3

02 Sep 08:05
Compare
Choose a tag to compare

IMPROVEMENTS:

  • allow nil pos in reader errors, replace {{err}} placeholder in WrapError
  • add filename to position, add new file reader constructor

0.3.2

01 Sep 16:24
Compare
Choose a tag to compare

IMPROVEMENTS:

  • reader.WrapError() falls back to the cause's error message if no error message was given and the cause is not a reader error

0.3.1

26 Aug 11:54
Compare
Choose a tag to compare

IMPROVEMENTS:

  • Add SepByOrValue and SepByOrValue1 combinators which will return the value node if only the value parser is matched

0.3.0

21 Aug 13:21
Compare
Choose a tag to compare

BACKWARDS INCOMPATIBILITIES:

  • Add history object to parser.Parse
  • Move Memoize back to the combinators
  • Move parsley package to a directory
  • Change top-level Parse/Evaluate methods
  • Remove parser.Stat, collect call statistics in history

IMPROVEMENTS:

  • Add Sentence root parser

0.2.3

17 Aug 17:59
Compare
Choose a tag to compare

IMPROVEMENTS:

  • reader.WrapError keeps the original error message if empty string is given as message

0.2.2

17 Aug 17:58
Compare
Choose a tag to compare

IMPROVEMENTS:

  • Add parser.FuncFactory interface

0.2.1

16 Aug 11:33
Compare
Choose a tag to compare

BUGFIXES:

  • the ast.Node mock wasn't regenerated

IMPROVEMENTS:

  • Generate mock for parser.Parser

0.2.0

16 Aug 11:14
Compare
Choose a tag to compare

BACKWARDS INCOMPATIBILITIES:

  • combinator.Memoize was removed. Use the Memoize method on the history object instead.
  • parser.Error, parser.NewError and parser.WrapError was moved to reader
  • Interpreter.Eval now returns a reader.Error instead of a general error
  • Node.Value now returns a reader.Error instead of a general error
  • Terminal.Value now returns a reader.Error instead of a general error
  • NonTerminal.Value now returns a reader.Error instead of a general error

0.1.5

15 Aug 16:28
Compare
Choose a tag to compare

IMPROVEMENTS:

  • Add cause to parser.Error, add parser.WrapError constructor