| 1 |
Revision history for XS-Parse-Keyword |
| 2 |
|
| 3 |
0.51 2026-09-24 |
| 4 |
[CHANGES] |
| 5 |
* Recognise the new undef-aware equality operators on Perl 5.45.3 |
| 6 |
onwards (PPC0030) |
| 7 |
|
| 8 |
0.50 2026-09-10 |
| 9 |
[BUGFIXES] |
| 10 |
* Use `SvROK` not `SvRV` to check for values being references |
| 11 |
(CVE-2026-85644) |
| 12 |
* Avoid putting #ifdef inside the arguments to `boolSV()`, that may |
| 13 |
itself be a macro (RT170453) |
| 14 |
|
| 15 |
0.49 2025-09-23 |
| 16 |
[BUGFIXES] |
| 17 |
* Appease C compilers that don't like to `return` a void expression |
| 18 |
from a void-returning function (RT170345) |
| 19 |
|
| 20 |
0.48 2025-01-09 |
| 21 |
[CHANGES] |
| 22 |
* Added `XPK_FLAG_PERMIT_LEXICAL`, allowing optional 'my'-prefixed |
| 23 |
keywords |
| 24 |
|
| 25 |
0.47 2024-11-25 |
| 26 |
[BUGFIXES] |
| 27 |
* Don't upset gcc 15, by ensuring that function pointer casts fully |
| 28 |
specify argument types (RT157196) |
| 29 |
|
| 30 |
0.46 2024-09-03 |
| 31 |
[CHANGES] |
| 32 |
* Added `XPK_PREFIXED_TERMEXPR_ENTERLEAVE` |
| 33 |
* Use module-specific rather than dist-specific dirs to store |
| 34 |
`include/` files |
| 35 |
|
| 36 |
0.45 2024-08-29 |
| 37 |
[CHANGES] |
| 38 |
* Refuse to register operators that have neither `.new_op` nor |
| 39 |
`.ppadd`, as these will never work |
| 40 |
|
| 41 |
[BUGFIXES] |
| 42 |
* Update for perl 5.41.3: `OP_SMARTMATCH` is now removed, so make |
| 43 |
that registration conditional (RT155194) |
| 44 |
|
| 45 |
0.44 2024-07-19 |
| 46 |
[BUGFIXES] |
| 47 |
* `boot_xs_parse_infix()` has to load `XS/Parse/Infix.pm`, the perl |
| 48 |
module |
| 49 |
* Fix opname check for lexical operator alises, to match Perl's |
| 50 |
actual identifier rules |
| 51 |
* Fix deparse logic for fully-qualified infix operator names |
| 52 |
* Fix `lex_scan_packagename()` to not get confused by attribute |
| 53 |
syntax |
| 54 |
|
| 55 |
0.43 2024-07-03 |
| 56 |
[CHANGES] |
| 57 |
* Use `File::ShareDir` for storing .h include files, rather than |
| 58 |
storing the contents in the `__DATA__` section of the build helpers |
| 59 |
* Support a new naming model for infix operators that supports |
| 60 |
lexical-aliases and renaming at import time |
| 61 |
|
| 62 |
0.42 2024-04-30 |
| 63 |
[BUGFIXES] |
| 64 |
* Don't crash on zero-argument calls to list-associative wrapper |
| 65 |
functions (thanks aquanight) (RT153244) |
| 66 |
|
| 67 |
0.41 2024-04-25 |
| 68 |
[BUGFIXES] |
| 69 |
* Remmeber to EXTEND the stack in list-associative operator wrapper |
| 70 |
functions (thanks aquanight) (RT153173) |
| 71 |
|
| 72 |
0.40 2024-04-23 |
| 73 |
[CHANGES] |
| 74 |
* Support N-way list-associative operators, implemented as LISTOPs |
| 75 |
* Delete the no-longer-used API constants |
| 76 |
XPI_OPERAND_{ARITH,TERM,CUSTOM} from XSParseInfix.h |
| 77 |
|
| 78 |
[BUGFIXES] |
| 79 |
* Avoid a subsequent `use VERSION` in unit tests to keep perl 5.39.8 |
| 80 |
happy |
| 81 |
|
| 82 |
0.39 2023-12-04 |
| 83 |
[CHANGES] |
| 84 |
* Added optional variants of XPK_ARITHEXPR, XPK_TERMEXPR, |
| 85 |
XPK_LISTEXPR and the context-forcing versions |
| 86 |
|
| 87 |
0.38 2023-08-09 |
| 88 |
[BUGFIXES] |
| 89 |
* Fix warn() non-static format string (RT149346) |
| 90 |
* Don't bother with Build.PL probing for PL_infix_plugin; just use |
| 91 |
perl version number |
| 92 |
|
| 93 |
0.37 2023-08-08 |
| 94 |
[CHANGES] |
| 95 |
* Added `XPK_WARNING()` and several conditional variants |
| 96 |
|
| 97 |
0.36 2023-07-20 |
| 98 |
[BUGFIXES] |
| 99 |
* Remember to also call `op_scope()` after `block_end()` if the |
| 100 |
XPK_FLAG_BLOCKSCOPE flag is set |
| 101 |
|
| 102 |
0.35 2023-07-19 |
| 103 |
[CHANGES] |
| 104 |
* Added XPK_INTRO_MY, to call `intro_my()` |
| 105 |
* Added XPK_FLAG_BLOCKSCOPE to wrap a block_start()+block_end() |
| 106 |
around a syntax construction |
| 107 |
* Renamed XPK_PARENSCOPE to XPK_PARENS, etc.. |
| 108 |
* Adjusted documentation of XS::Parse::Infix for release of |
| 109 |
Perl v5.38 |
| 110 |
|
| 111 |
0.34 2023-06-14 |
| 112 |
[CHANGES] |
| 113 |
* Swap all unit tests from Test::More to Test2::V0 |
| 114 |
|
| 115 |
[BUGFIXES] |
| 116 |
* Remember to set `-std=c99` compiler flag on Perls before v5.36 |
| 117 |
* Skip whitespace between pieces of SEQUENCE or SEPARATEDLIST |
| 118 |
|
| 119 |
0.33 2023-02-18 |
| 120 |
[CHANGES] |
| 121 |
* Added XPK_LEXVAR, a non `my`-alike variant |
| 122 |
* Added XPK_*_pieces() macros allowing caller to dynamically generate |
| 123 |
sub-arrays of pieces |
| 124 |
|
| 125 |
[BUGFIXES] |
| 126 |
* Remember to consume whitespace between XPK_REPEATED elements |
| 127 |
|
| 128 |
0.32 2023-01-12 |
| 129 |
[BUGFIXES] |
| 130 |
* Ensure that XPK_TERMEXPR acting as a fullexpr is OK with empty |
| 131 |
parens (RT145618) |
| 132 |
|
| 133 |
0.31 2022-12-25 |
| 134 |
[CHANGES] |
| 135 |
* PL_infix_plugin now exists in 5.37.7 |
| 136 |
* Support the new infix operator precedence levels added by |
| 137 |
perl v5.37.7 |
| 138 |
* Various updates to hax/ support files |
| 139 |
|
| 140 |
0.30 2022-12-03 |
| 141 |
[CHANGES] |
| 142 |
* Added XPK_STAGED_ANONSUB; inspired a bit by XS::Parse::Sublike for |
| 143 |
customising the parsing of anonmethod |
| 144 |
|
| 145 |
0.29 2022-12-01 |
| 146 |
[CHANGES] |
| 147 |
* Added XPK_PREFIXED_TERMEXPR_ENTERLEAVE |
| 148 |
|
| 149 |
[BUGFIXES] |
| 150 |
* Don't try to call `SvPVX()` on a `newSV(0)` because -DDEBUGGING |
| 151 |
perls get upset (RT145278) |
| 152 |
* Remember to `break` out of switch block cases when testing for |
| 153 |
`KEYWORD_PLUGIN_*` return values |
| 154 |
|
| 155 |
0.28 2022-11-25 |
| 156 |
[CHANGES] |
| 157 |
* Include a XSParseInfixClassification field in the XSParseInfixInfo |
| 158 |
structure |
| 159 |
* Do not permit mixed identifier/non characters in the names of |
| 160 |
registered infix operators |
| 161 |
* No longer supports XSParseInfix ABI version 0 |
| 162 |
|
| 163 |
[BUGFIXES] |
| 164 |
* When parsing an infix operator name, make sure not to be confused |
| 165 |
by additional identifier characters immediately after it |
| 166 |
|
| 167 |
0.27 2022-10-31 |
| 168 |
[CHANGES] |
| 169 |
* Updates to XS::Parse::Infix for latest `infix-plugin` perl5 branch |
| 170 |
+ parsedata field is now an SV **, not an ANY * |
| 171 |
* Expose parse_infix() as a real ABI function, allowing infix |
| 172 |
operators to be hyper-operators and parse other operator names |
| 173 |
|
| 174 |
0.26 2022-10-24 |
| 175 |
[CHANGES] |
| 176 |
* Updates to XS::Parse::Infix for latest `infix-plugin` perl5 branch |
| 177 |
+ Requires classification to set the operator precedence |
| 178 |
+ No longer need XPI_OPERAND_ARITH or XPI_OPERAND_TERM; most of |
| 179 |
.lhs_flags and .rhs_flags are redundant now |
| 180 |
+ No longer support XPI_OPERAND_CUSTOM |
| 181 |
+ Optional `parse` phase for parametric/hyper-operators |
| 182 |
* Bump XS::Parse::Infix ABI version to 2 |
| 183 |
* Declare XPI ABI v0 as deprecated, soon to be removed |
| 184 |
|
| 185 |
0.25 2022-07-25 |
| 186 |
[CHANGES] |
| 187 |
* Permit infix operators to consume fewer than all the available |
| 188 |
symbols; allowing for RHS operands that begin with symbols without |
| 189 |
intervening whitespace |
| 190 |
* Improved unit-testing of infix operator parser precedence issues |
| 191 |
* Added `XPI_OPERAND_ARITH`; renumbered `XPI_OPERAND_TERM` to be |
| 192 |
non-zero. Currently zero is accepted for back-compat |
| 193 |
|
| 194 |
0.24 2022-06-26 |
| 195 |
[CHANGES] |
| 196 |
* Skip attempting to create duplicate wrapper funcs, in case of |
| 197 |
multiple registrations of the same operator with different |
| 198 |
spellings |
| 199 |
|
| 200 |
[BUGFIXES] |
| 201 |
* Arrange extra_linker_flags correctly while building probe program |
| 202 |
for PL_infix_plugin |
| 203 |
|
| 204 |
0.23 2022-05-18 |
| 205 |
[CHANGES] |
| 206 |
* Defined XPK_KEYWORD, a better version of XPK_LITERAL for |
| 207 |
keyword-like tokens |
| 208 |
* Defined XPK_ARITHEXPR, a higher-precedence version of XPK_TERMEXPR |
| 209 |
* Defined XPK_ARGSCOPE, a variant of XPK_PARENSCOPE where the parens |
| 210 |
themselves are optional |
| 211 |
* Undocument the old XPK_STRING token type |
| 212 |
|
| 213 |
[BUGFIXES] |
| 214 |
* Fixes for bugs that affect -DDEBUGGING-enabled perls |
| 215 |
+ Remember to clear OPf_KIDS when stealing the op_first of a |
| 216 |
LISTOP (RT142770) |
| 217 |
+ Don't call cv_clone() at compiletime when unit testing; generate |
| 218 |
an OP_ANONCODE instead (RT142771) |
| 219 |
|
| 220 |
0.22 2022-02-21 |
| 221 |
[CHANGES] |
| 222 |
* Added XPK_AUTOSEMI piece type |
| 223 |
|
| 224 |
[BUGFIXES] |
| 225 |
* Don't segfault if lex_scan_lexvar() fails (RT140402) |
| 226 |
* Set required version of ExtUtils::ParseXS for multiple t/*.xs files |
| 227 |
|
| 228 |
0.21 2021-10-12 |
| 229 |
[BUGFIXES] |
| 230 |
* Fix for perl 5.20 - cannot use assert() as an expression |
| 231 |
|
| 232 |
0.20 (bad MANIFEST) |
| 233 |
|
| 234 |
0.19 2021-10-05 |
| 235 |
[CHANGES] |
| 236 |
* Defined XPK_PREFIXED_BLOCK_ENTERLEAVE and XPK_SETUP for customizing |
| 237 |
the parser context around blocks |
| 238 |
|
| 239 |
0.18 2021-09-28 |
| 240 |
[CHANGES] |
| 241 |
* Define the XPI_OPERAND_ONLY_LOOK flag |
| 242 |
* Define a callchecker for list/list infix operators. Add a |
| 243 |
callchecker that can optimise out certain kinds of operations |
| 244 |
(ref to padav or pkgav, anonlist if XPI_OPERAND_ONLY_LOOK is set) |
| 245 |
|
| 246 |
[BUGFIXES] |
| 247 |
* cygwin requires deparse_infix to be declared with XS_INTERNAL() |
| 248 |
(RT139449) |
| 249 |
* Some architectures require intermediate storage for values in the |
| 250 |
test function pp_addpairs (RT139445) |
| 251 |
* Fix conditions in lexical variable type checking (RT139444) |
| 252 |
|
| 253 |
0.17 2021-09-23 |
| 254 |
[CHANGES] |
| 255 |
* Support certain kinds of list operands on LHS of infix operators |
| 256 |
* Generate wrapper functions around list-list infix operators, which |
| 257 |
unpack their argument lists from two ARRAYrefs |
| 258 |
|
| 259 |
0.16 2021-09-21 |
| 260 |
[CHANGES] |
| 261 |
* Attempt automatic deparsing of infix operators |
| 262 |
* Support certain kinds of list operands on RHS of infix operators |
| 263 |
|
| 264 |
0.15 2021-09-06 |
| 265 |
[CHANGES] |
| 266 |
* Optional generation of wrapper functions around scalar-infix |
| 267 |
operators |
| 268 |
* Quieter Build.PL by skipping PL_infix_plugin check on versions |
| 269 |
of perl known to be too old it |
| 270 |
|
| 271 |
0.14 2021-08-31 |
| 272 |
[CHANGES] |
| 273 |
* Added the entire XS::Parse::Infix subsystem |
| 274 |
* Added XPK_INFIX_* token types |
| 275 |
|
| 276 |
0.13 2021-08-26 |
| 277 |
[CHANGES] |
| 278 |
* Bump to ABI version 2; pass build1's arg0 param as a pointer, not a |
| 279 |
direct struct copy |
| 280 |
|
| 281 |
[BUGFIXES] |
| 282 |
* Back-compat for ABI version 1's build1 arg0 param not having a line |
| 283 |
number (RT138708) |
| 284 |
|
| 285 |
0.12 2021-08-16 |
| 286 |
[CHANGES] |
| 287 |
* Support probe on XPK_IDENT, XPK_PACKAGENAME, XPK_COMMALIST |
| 288 |
* Provide optional versions of XPK_IDENT and XPK_PACKAGENAME |
| 289 |
* Report the line number each piece was parsed from |
| 290 |
|
| 291 |
0.11 2021-08-03 |
| 292 |
[BUGFIXES] |
| 293 |
* Split Builder.pm into two parts (static + dynamic), so the static |
| 294 |
part can be indexed as normal by usual CPAN toolchain (RT138313) |
| 295 |
|
| 296 |
0.10 2021-07-13 |
| 297 |
[CHANGES] |
| 298 |
* Better configure-time probing for HPUX compiler support |
| 299 |
|
| 300 |
[BUGFIXES] |
| 301 |
* Fix for CHOICE/TAGGEDCHOICE corrupting the value of ->i in the |
| 302 |
result (RT136845) |
| 303 |
|
| 304 |
0.09 2021-07-12 |
| 305 |
[CHANGES] |
| 306 |
* Attempt to support HPUX, which may need additional compiletime |
| 307 |
arguments to support anonymous inner unions |
| 308 |
* Better compiletime error messages by attempting to include some |
| 309 |
source context in the same style as yyerror() |
| 310 |
* Slight compiletime performance boost by setting PERL_NO_GET_CONTEXT |
| 311 |
|
| 312 |
[BUGFIXES] |
| 313 |
* Check for recursive parser errors and abort (RT137458) |
| 314 |
|
| 315 |
0.08 2021-06-17 |
| 316 |
[CHANGES] |
| 317 |
* Support probe in XPK_CHOICE and XPK_TAGGEDCHOICE |
| 318 |
|
| 319 |
[BUGFIXES] |
| 320 |
* Remember to mask off the typeflags in probe_piece() |
| 321 |
|
| 322 |
0.07 2021-06-16 |
| 323 |
[CHANGES] |
| 324 |
* Added XPK_BLOCK_VOIDCTX and XPK_TERMEXPR_VOIDCTX |
| 325 |
* Undocumented the _flags() variants of XPK_BLOCK and XPK_TERMEXPR, |
| 326 |
and all the flags for them |
| 327 |
* Support probing in XPK_BLOCK |
| 328 |
* (undocumented) trial to see if all supported platforms support |
| 329 |
anonymous unions |
| 330 |
|
| 331 |
0.06 2021-06-01 |
| 332 |
[BREAKING CHANGES] |
| 333 |
* ABI version is now 1 - this will require a from-source rebuild of |
| 334 |
all modules using it. |
| 335 |
|
| 336 |
[CHANGES] |
| 337 |
* Renamed XPK_STRING to XPK_LITERAL |
| 338 |
* Support probe on the four bracketed scope types |
| 339 |
* Added _OPT-suffixed versions of the four bracketed scope types |
| 340 |
* Added more token types: |
| 341 |
+ XPK_LEXVAR_MY |
| 342 |
+ XPK_COMMA |
| 343 |
+ XPK_PREFIXED_BLOCK |
| 344 |
+ XPK_SEQUENCE |
| 345 |
|
| 346 |
0.05 2021-05-31 |
| 347 |
[CHANGES] |
| 348 |
* Added context-setting variants of block/expr types: |
| 349 |
+ XPK_BLOCK_SCALARCTX, XPK_BLOCK_LISTCTX |
| 350 |
+ XPK_TERMEXPR_SCALARCTX |
| 351 |
+ XPK_LISTEXPR_LISTCTX |
| 352 |
|
| 353 |
0.04 2021-05-24 |
| 354 |
[CHANGES] |
| 355 |
* Added many more token types: XPK_LEXVARNAME, XPK_ATTRIBUTES, |
| 356 |
XPK_VSTRING, XPK_VSTRING_OPT, XPK_EQUALS |
| 357 |
* Added XPK_COMMALIST structure type |
| 358 |
* Defined hooks flags XPK_FLAG_STMT, XPK_FLAG_EXPR, XPK_FLAG_AUTOSEMI |
| 359 |
* API change to the way .build is invoked, allowing greater future |
| 360 |
compatibility for args structures |
| 361 |
|
| 362 |
0.03 2021-04-27 |
| 363 |
[BUGFIXES] |
| 364 |
* Fix the `VAR never introduced at ...` warnings from uses of |
| 365 |
XPK_BLOCK |
| 366 |
* Make sure the Builder.pm file is mentioned in META.{yml,json} so |
| 367 |
CPAN tools can find it |
| 368 |
|
| 369 |
0.02 2021-04-21 |
| 370 |
[CHANGES] |
| 371 |
* Back-compat to perl 5.14 |
| 372 |
* Avoid passing user strings directly to printf, by emitting |
| 373 |
XPK_FAILURE using croak("%s", str) |
| 374 |
* Various documentation wording improvements |
| 375 |
|
| 376 |
0.01 2021-04-14 |
| 377 |
First version, released on an unsuspecting world. |