| 1 |
Revision history for Parser-MGC |
| 2 |
|
| 3 |
0.23 2024-11-25 |
| 4 |
[CHANGES] |
| 5 |
* Formatting, style, and typo fixes in Tutorial.pod |
| 6 |
(thanks Étienne Mollier) (RT157369, RT157370) |
| 7 |
|
| 8 |
0.22 2024-10-11 |
| 9 |
[CHANGES] |
| 10 |
* Added `->warn` and `->warn_from` |
| 11 |
* Pass additional arguments to `->maybe` method through to invoked |
| 12 |
code |
| 13 |
* Swap unit tests from `Test::More` to `Test2::V0`; avoids need for |
| 14 |
`Test::Fatal` |
| 15 |
* General module style updates/refresh to code style, documentation, |
| 16 |
etc.. |
| 17 |
|
| 18 |
0.21 2022-02-23 |
| 19 |
[CHANGES] |
| 20 |
* Add stall-detection to list-repeating methods, in order to detect |
| 21 |
buggy grammars that can get stuck |
| 22 |
* Define optional subclassing methods ->on_parse_start and |
| 23 |
->on_parse_end |
| 24 |
* Added ->include_string to assist with file-inclusion, |
| 25 |
macro-expansion or similar tasks |
| 26 |
|
| 27 |
0.20 2022-02-14 |
| 28 |
[CHANGES] |
| 29 |
* Avoid File::Slurp::Tiny (RT137215) |
| 30 |
* Added methods |
| 31 |
+ ->filename |
| 32 |
+ ->nonempty_substring_before |
| 33 |
+ ->die and ->die_from |
| 34 |
* Make use of perl 5.32's `isa` operator when available |
| 35 |
|
| 36 |
0.19 2021-04-23 |
| 37 |
[CHANGES] |
| 38 |
* Document how to generate more helpful error messages from ->any_of |
| 39 |
* More helpful error message if ->from_file fails (RT134841) |
| 40 |
* Improved performance of ->skip_ws (RT74779) |
| 41 |
* Added a JSON-like parser example |
| 42 |
|
| 43 |
[BUGFIXES] |
| 44 |
* Fix spelling and syntax errors in documentation (RT134842, RT134843) |
| 45 |
|
| 46 |
0.18 2021-03-27 |
| 47 |
[CHANGES] |
| 48 |
* Repack tarball without stale `Makefile.PL` |
| 49 |
* No actual code changes |
| 50 |
|
| 51 |
0.17 2021-03-27 |
| 52 |
[CHANGES] |
| 53 |
* Wording fix in docs - remove duplicate `pending` (thanks hobbs) |
| 54 |
* Use Feature::Compat::Try instead of plain `eval {}` blocks |
| 55 |
* Style modernisations for perl v5.14+ |
| 56 |
|
| 57 |
0.16 2017/01/10 16:39:02 |
| 58 |
[CHANGES] |
| 59 |
* Added ->take method |
| 60 |
* Added ->committed_scope_of method |
| 61 |
* Added a simple Bencode example |
| 62 |
|
| 63 |
0.15 2015/12/03 16:56:19 |
| 64 |
[CHANGES] |
| 65 |
* Allow method names as well as CODE references to structure-forming |
| 66 |
methods |
| 67 |
* Added worked run-through example documentation and explanation of |
| 68 |
the expression evaluator parser example |
| 69 |
* Further expanded Parser::MGC::Tutorial |
| 70 |
|
| 71 |
0.14 2015/08/31 15:29:36 |
| 72 |
[CHANGES] |
| 73 |
* Many documentation improvements: |
| 74 |
+ More detailed explanation of backtracking behaviour and the use |
| 75 |
of the ->commit method |
| 76 |
+ Trailing delimiter does not upset ->list_of |
| 77 |
+ Added an as-yet incomplete Parser::MGC::Tutorial |
| 78 |
* Use Scalar::Util::blessed() to avoid the eval { ->isa } antipattern |
| 79 |
* Have long-deprecated ->one_of print a deprecation warning |
| 80 |
|
| 81 |
0.13 2015/06/25 19:05:10 |
| 82 |
[CHANGES] |
| 83 |
* Use File::Slurp::Tiny instead of File::Slurp |
| 84 |
|
| 85 |
0.12 2013/09/01 01:30:13 |
| 86 |
[CHANGES] |
| 87 |
* Ensure that ->expect / ->maybe_expect with optional capture groups |
| 88 |
don't yield warnings (thanks BP Jonsson) |
| 89 |
* Allow setting binmode for ->from_file |
| 90 |
* Slightly neater examples/parse-xml.pl |
| 91 |
|
| 92 |
0.11 CHANGES: |
| 93 |
* Allow different toplevel parse methods to the constructor |
| 94 |
* Added another example showing parsing XML - only a minimal example; |
| 95 |
do not use this as real code. :) |
| 96 |
|
| 97 |
0.10 CHANGES: |
| 98 |
* Added ->maybe_expect, for higher performance parsers |
| 99 |
|
| 100 |
0.09 CHANGES: |
| 101 |
* Added ->pos accessor and ->fail_from to throw failures from other |
| 102 |
locations |
| 103 |
* Added ->token_number as a convenience for int or float |
| 104 |
|
| 105 |
0.08 CHANGES: |
| 106 |
* Give ->list_of and ->sequence_of proper failure-handling semantics |
| 107 |
* Added ->generic_token |
| 108 |
* Defer conversion of pos into line/col/text until string-formatting |
| 109 |
a failure exception - improves performance of backtracking |
| 110 |
* Make token_float tuneable |
| 111 |
|
| 112 |
0.07 CHANGES: |
| 113 |
* Allow ->expect to return subgroup captures in list context |
| 114 |
* Documentation improvements |
| 115 |
|
| 116 |
BUGFIXES: |
| 117 |
* Use Data::Dumper rather than Data::Dump in examples, as the latter |
| 118 |
is not core; no point pulling in non-core deps simply for examples |
| 119 |
|
| 120 |
0.06 CHANGES: |
| 121 |
* Renamed ->one_of to ->any_of |
| 122 |
* Added ->substring_before |
| 123 |
* Allow ->scope_of to not take a start pattern |
| 124 |
* Recognise the usual set of character escapes in ->token_string |
| 125 |
* Added more example scripts to demonstrate: |
| 126 |
+ the use ->substring_before to parse POD-like notation |
| 127 |
+ accumulator variables instead of structural return |
| 128 |
* Unit-test the example scripts |
| 129 |
|
| 130 |
0.05 CHANGES: |
| 131 |
* Added ->scope_level |
| 132 |
* Added ->from_reader as a new potential source of string input |
| 133 |
|
| 134 |
0.04 CHANGES: |
| 135 |
* Added ->token_float |
| 136 |
* Optionally parse 0o... ad octal integers |
| 137 |
|
| 138 |
BUGFIXES: |
| 139 |
* Match strings non-greedily |
| 140 |
* Correct exception printing when line indent includes tabs (thanks |
| 141 |
to Khisanth/#perl) |
| 142 |
|
| 143 |
0.03 CHANGES: |
| 144 |
* Expanded documentation, more examples |
| 145 |
|
| 146 |
BUGFIXES: |
| 147 |
* Regexp quoting fix for perl >= 5.13.6 |
| 148 |
* Declare dependency on File::Slurp |
| 149 |
|
| 150 |
0.02 CHANGES: |
| 151 |
* ->expect now returns the consumed string |
| 152 |
* ->token_int recognises negative integers |
| 153 |
* ->token_* raises a failure at end-of-scope, rather than returning |
| 154 |
undef |
| 155 |
|
| 156 |
BUGFIXES: |
| 157 |
* 'use overload fallback' to keep Test::More 0.96 happy |
| 158 |
|
| 159 |
0.01 First version, released on an unsuspecting world. |
| 160 |
|