develooper Front page | perl.perl5.changes | Postings from January 2021

[Perl/perl5] 5a3174: regcomp.c: Change experimental warnings

From:
Karl Williamson via perl5-changes
Date:
January 11, 2021 00:10
Subject:
[Perl/perl5] 5a3174: regcomp.c: Change experimental warnings
Message ID:
Perl/perl5/push/refs/heads/smoke-me/khw-regpiece/000000-27affd@github.com
  Branch: refs/heads/smoke-me/khw-regpiece
  Home:   https://github.com/Perl/perl5
  Commit: 5a3174d3364b6485e5e4fab70834eea70804cafd
      https://github.com/Perl/perl5/commit/5a3174d3364b6485e5e4fab70834eea70804cafd
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-01-10 (Sun, 10 Jan 2021)

  Changed paths:
    M regcomp.c

  Log Message:
  -----------
  regcomp.c: Change experimental warnings

This changes the warnings for three experimental features to indicate
where in the pattern they occur, and makes sure they aren't raised more
than once per pattern.


  Commit: a91676c7fd62228560158f2ab45c3dcccd157f82
      https://github.com/Perl/perl5/commit/a91676c7fd62228560158f2ab45c3dcccd157f82
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-01-10 (Sun, 10 Jan 2021)

  Changed paths:
    M regcomp.c

  Log Message:
  -----------
  Revert "regcomp.c: Change experimental warnings"

This reverts commit 8019c26779087da97dce32574477d2ec19d12675.


  Commit: 9ec74a5c99d0ac727c3e1137bd534c122a4f52af
      https://github.com/Perl/perl5/commit/9ec74a5c99d0ac727c3e1137bd534c122a4f52af
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-01-10 (Sun, 10 Jan 2021)

  Changed paths:
    M regcomp.c

  Log Message:
  -----------
  regcomp.c: Change names of 2 macros to for mnemonics

The new names are more understandable to me.  This also adds a second
parameter to one macro, that is unused until the next commit in the
series.


  Commit: 9e2d49da52a5d09be048dad0e999a607a0962266
      https://github.com/Perl/perl5/commit/9e2d49da52a5d09be048dad0e999a607a0962266
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-01-10 (Sun, 10 Jan 2021)

  Changed paths:
    M embed.fnc
    M embed.h
    M proto.h
    M regcomp.c
    M toke.c

  Log Message:
  -----------
  Revamp regcurly(), regpiece() use of it

This commit copies portions of new_regcurly(), which has been around
since 5.28, into plain regcurly(), as a baby step in preparation for
converting entirely to the new one.  These functions are used for
parsing {m,n} quantifiers.  Future commits will add capabilities not
available using the old version.

The commit adds an optional parameter, to return to the caller
information it gleans during parsing.

regpiece() is changed by this commit to use this information, instead of
itself reparsing the input.  Part of the reason for this commit is that
changes are planned soon to what is legal syntax.  With this commit in
place, those changes only have to be done once.

This commit also extracts into a function the calculation of the
quantifier bounds.  This allows the logic for that to be done in one
place instead of two.


  Commit: 905775b6c3c6b145105608045c4c6c7ee47be255
      https://github.com/Perl/perl5/commit/905775b6c3c6b145105608045c4c6c7ee47be255
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-01-10 (Sun, 10 Jan 2021)

  Changed paths:
    M regcomp.c
    M t/re/reg_mesg.t

  Log Message:
  -----------
  Point to error in malformed /x{y,z}/

Prior to this comment a curly quantifier that had an error in the bounds
pointed to the left brace.  Now the error message points to the first
bound that has a problem.


  Commit: 63cbc35437b856c5bd440022895a8aaaf438738f
      https://github.com/Perl/perl5/commit/63cbc35437b856c5bd440022895a8aaaf438738f
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-01-10 (Sun, 10 Jan 2021)

  Changed paths:
    M embed.fnc
    M embed.h
    M pod/perldelta.pod
    M pod/perlre.pod
    M pod/perlrequick.pod
    M pod/perlreref.pod
    M pod/perlretut.pod
    M proto.h
    M regcomp.c
    M t/re/re_tests
    M t/re/reg_mesg.t

  Log Message:
  -----------
  Allow empty lower bound in /{,n}/

This change has been planned for a long time, bringing Perl into parity
with similar languages, but it took many deprecation cycles to be able
to reach the point where it could safely go in.

This fixes GH #18264


  Commit: 8fcc860b6223b7c081def890b3130fbd366650ca
      https://github.com/Perl/perl5/commit/8fcc860b6223b7c081def890b3130fbd366650ca
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-01-10 (Sun, 10 Jan 2021)

  Changed paths:
    M pod/perlre.pod

  Log Message:
  -----------
  l


  Commit: 82d04de466cb18db26443b68686e76a0739cdaa2
      https://github.com/Perl/perl5/commit/82d04de466cb18db26443b68686e76a0739cdaa2
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-01-10 (Sun, 10 Jan 2021)

  Changed paths:
    M t/lib/Cname.pm

  Log Message:
  -----------
  t/lib/Cname.pm: Comment, white-space only


  Commit: 27affd9bc171e9046afa04f49254928cd55e2193
      https://github.com/Perl/perl5/commit/27affd9bc171e9046afa04f49254928cd55e2193
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-01-10 (Sun, 10 Jan 2021)

  Changed paths:
    M dquote.c
    M embed.fnc
    M pod/perldelta.pod
    M pod/perldiag.pod
    M pod/perlop.pod
    M pod/perlre.pod
    M pod/perlrebackslash.pod
    M pod/perlrequick.pod
    M pod/perlretut.pod
    M proto.h
    M regcomp.c
    M t/opbasic/qq.t
    M t/re/pat_advanced.t
    M t/re/re_tests
    M t/re/reg_mesg.t
    M toke.c

  Log Message:
  -----------
  l


Compare: https://github.com/Perl/perl5/compare/5a3174d3364b%5E...27affd9bc171



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About