diff --git a/composer.json b/composer.json index 77c55fc..e9eba1b 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "ylixir/phap", "description": "Php Has Another Parser", "type": "library", - "version": "0.5.0", + "version": "0.6.0", "license": "LGPL-3.0-or-later", "authors": [ { diff --git a/docs/_posts/2019-03-09-release-0.6.0.md b/docs/_posts/2019-03-09-release-0.6.0.md new file mode 100644 index 0000000..3ee4d5e --- /dev/null +++ b/docs/_posts/2019-03-09-release-0.6.0.md @@ -0,0 +1,16 @@ +--- +layout: post +--- + +This release says goodbye to the OOP programming interface. It's been an awkward fit for a combinator library. +It has also proved to be too much work to maintain docs and tests for two interfaces with nothing but aesthetic +benefit. + +I have also renamed the `or` and `and` functions to `alternatives` and `sequence` respectively. This should help to retain +the natural language flow found in the OOP interface. It also brings our +vocatulary more in line with other ecosystems. + +The `end` function has been reconfigured to not take a parser as input. Use it with `sequence` + +I have also added more example code in the `tests/Integration` folder. This includes an example of matching paremtheses (context free grammar) +along with a more elaborate example in the form of a json parser.