Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: b179236d59d4d0be43d9307d30b9e97609c9f96d
https://github.com/Perl/perl5/commit/b179236d59d4d0be43d9307d30b9e97609c9f96d
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M perly.act
M perly.h
M perly.tab
M perly.y
M toke.c
Log Message:
-----------
Rename some grammar rules/tokens to avoid 'method'
These token names are shared between perl.y and toke.c, to communicate
on the nature of various tokens parsed from perl source. The name
FUNCMETH used to refer to a method call with possible arguments
->NAME(...)
whereas METHOD referred to one without even the parens
->NAME
These names are a little confusing, and most importantly, METHOD was in
the way of my adding a new `method` keyword as part of the upcoming work
on 'use feature "class"'.
As such, this simple rename moves them out of the way and makes them
slightly more consistent and easier to read/remember, by calling them
METHCALL and METHCALL0.
This commit also renames the `method` grammar rule to `methodname`, for
similar reasons.
As all of these names are entirely internal to the tokenizer/parser,
there is not expected to be any upstream CPAN incompatibility, or other
issues, caused by these renames.