Perl 5.42
5.44 5.42
Grammar changes
Tokens
Source: perly.y @ v5.42.0 (5551b97) / lrama 0.8.0 / 2025-07-02
These diagrams describe a parser grammar, rather than the complete language specification. Lexer state and semantic checks may impose additional restrictions.
Artistic License 1.0
Start wrapper
Unreachable
BNF $accept ::= grammar YYEOF
Used by (0)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
GRAMPROG end of file
Midrule action
grammar › $@1
BNF $@1 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
BNF grammar ::= GRAMPROG $@1 remember stmtseq
| GRAMEXPR $@2 optexpr
| GRAMBLOCK $@3 block
| GRAMBARESTMT $@4 barestmt
| GRAMFULLSTMT $@5 fullstmt
| GRAMSTMTSEQ $@6 stmtseq
| GRAMSUBSIGNATURE $@7 subsigguts
Used by (1)
References (14)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
GRAMPROG
Midrule action
grammar › $@2
BNF $@2 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › $@3
BNF $@3 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › $@4
BNF $@4 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › $@5
BNF $@5 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › $@6
BNF $@6 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › $@7
BNF $@7 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › sigsub_or_method_named
BNF sigsub_or_method_named ::= KW_SUB_named_sig
| KW_METHOD_named
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
sub
grammar › block
BNF block ::= PERLY_BRACE_OPEN remember stmtseq PERLY_BRACE_CLOSE
Used by (8)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
{ }
Code example if (1) { print "hello\n"; }
grammar › stmtseq › empty
BNF empty ::= ε
Used by (16)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › remember
BNF remember ::= ε
Used by (6)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › mblock
BNF mblock ::= PERLY_BRACE_OPEN mremember stmtseq PERLY_BRACE_CLOSE
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
{ }
grammar › barestmt › mblock › mremember
BNF mremember ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › catch_paren
BNF catch_paren ::= empty
| PERLY_PAREN_OPEN $@8 scalar $@9 PERLY_PAREN_CLOSE
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › catch_paren › $@8
BNF $@8 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › catch_paren › $@9
BNF $@9 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › stmtseq
BNF stmtseq ::= empty
| stmtseq fullstmt
Used by (8)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Code example my @values = (1, 2, 3);
grammar › fullstmt
BNF fullstmt ::= barestmt
| labfullstmt
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
PLUGSTMT
grammar › fullstmt › labfullstmt
BNF labfullstmt ::= LABEL barestmt
| LABEL labfullstmt
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
LABEL PLUGSTMT
grammar › barestmt
BNF barestmt ::= PLUGSTMT
| KW_FORMAT startformsub formname formblock
| KW_SUB_named subname startsub $@10 proto subattrlist optsubbody
| sigsub_or_method_named subname startsub $@11 subattrlist optsigsubbody
| PHASER startsub $@12 optsubbody
| KW_PACKAGE BAREWORD BAREWORD PERLY_SEMICOLON
| KW_CLASS BAREWORD BAREWORD subattrlist PERLY_SEMICOLON
| KW_USE_or_NO startsub $@13 BAREWORD BAREWORD optlistexpr PERLY_SEMICOLON
| KW_IF PERLY_PAREN_OPEN remember mexpr PERLY_PAREN_CLOSE mblock else
| KW_UNLESS PERLY_PAREN_OPEN remember mexpr PERLY_PAREN_CLOSE mblock else
| KW_GIVEN PERLY_PAREN_OPEN remember mexpr PERLY_PAREN_CLOSE mblock
| KW_WHEN PERLY_PAREN_OPEN remember mexpr PERLY_PAREN_CLOSE mblock
| KW_DEFAULT block
| KW_WHILE PERLY_PAREN_OPEN remember texpr PERLY_PAREN_CLOSE mintro mblock cont
| KW_UNTIL PERLY_PAREN_OPEN remember iexpr PERLY_PAREN_CLOSE mintro mblock cont
| KW_FOR PERLY_PAREN_OPEN remember mnexpr PERLY_SEMICOLON $@14 texpr PERLY_SEMICOLON $@15 mintro mnexpr PERLY_PAREN_CLOSE mblock
| KW_FOR KW_MY remember my_scalar PERLY_PAREN_OPEN mexpr PERLY_PAREN_CLOSE mblock cont
| KW_FOR KW_MY remember PERLY_PAREN_OPEN my_list_of_scalars PERLY_PAREN_CLOSE PERLY_PAREN_OPEN mexpr PERLY_PAREN_CLOSE mblock cont
| KW_FOR scalar PERLY_PAREN_OPEN remember mexpr PERLY_PAREN_CLOSE mblock cont
| KW_FOR my_refgen remember my_var @16 PERLY_PAREN_OPEN mexpr PERLY_PAREN_CLOSE mblock cont
| KW_FOR REFGEN refgen_topic PERLY_PAREN_OPEN remember mexpr PERLY_PAREN_CLOSE mblock cont
| KW_FOR PERLY_PAREN_OPEN remember mexpr PERLY_PAREN_CLOSE mblock cont
| KW_TRY mblock KW_CATCH remember catch_paren $@17 mblock finally
| block cont
| KW_PACKAGE BAREWORD BAREWORD PERLY_BRACE_OPEN remember $@18 stmtseq PERLY_BRACE_CLOSE
| KW_CLASS BAREWORD BAREWORD subattrlist PERLY_BRACE_OPEN remember $@19 stmtseq PERLY_BRACE_CLOSE
| fielddecl PERLY_SEMICOLON
| sideff PERLY_SEMICOLON
| KW_DEFER mblock
| YADAYADA PERLY_SEMICOLON
| PERLY_SEMICOLON
Used by (3)
References (42)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
PLUGSTMT
Midrule action
grammar › barestmt › $@10
BNF $@10 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › $@11
BNF $@11 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › $@12
BNF $@12 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › $@13
BNF $@13 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › $@14
BNF $@14 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › $@15
BNF $@15 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › @16
BNF @16 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › $@17
BNF $@17 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › $@18
BNF $@18 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › barestmt › $@19
BNF $@19 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › sideff › condition
BNF condition ::= expr
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST
grammar › barestmt › sideff
BNF sideff ::= YYerror
| expr
| expr KW_IF condition
| expr KW_UNLESS condition
| expr KW_WHILE condition
| expr KW_UNTIL iexpr
| expr KW_FOR condition
| expr KW_WHEN condition
Used by (2)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
error
grammar › barestmt › else
BNF else ::= empty
| KW_ELSE mblock
| KW_ELSIF PERLY_PAREN_OPEN mexpr PERLY_PAREN_CLOSE mblock else
Used by (2)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › cont
BNF cont ::= empty
| KW_CONTINUE block
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › finally
BNF finally ::= ε
| KW_FINALLY block
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › mintro
BNF mintro ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › mnexpr › nexpr
BNF nexpr ::= empty
| sideff
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › texpr
BNF texpr ::= ε
| expr
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › iexpr
BNF iexpr ::= expr
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST
grammar › barestmt › mexpr
BNF mexpr ::= expr
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST
grammar › barestmt › mnexpr
BNF mnexpr ::= nexpr
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › startsub
BNF startsub ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › fielddecl › term › anonymous › startanonsub
BNF startanonsub ::= ε
Used by (2)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › subname
BNF subname ::= BAREWORD
| PRIVATEREF
Used by (3)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
bareword
grammar › barestmt › proto
BNF proto ::= empty
| THING
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › subattrlist
BNF subattrlist ::= empty
| COLONATTR THING
| COLONATTR
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › fielddecl › term › myattrterm › myattrlist
BNF myattrlist ::= COLONATTR THING
| COLONATTR
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
COLONATTR
grammar › subsigguts › optsiglist › siglist › sigelem › sigslurpelem
BNF sigslurpelem ::= sigslurpsigil sigvarname
| sigslurpsigil sigvarname ASSIGNOP
| sigslurpsigil sigvarname ASSIGNOP term
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
@
grammar › subsigguts › optsiglist › siglist › sigelem › sigscalarelem
BNF sigscalarelem ::= PERLY_DOLLAR sigvarname
| PERLY_DOLLAR sigvarname ASSIGNOP
| PERLY_DOLLAR sigvarname ASSIGNOP term
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$
grammar › subsigguts › optsiglist › siglist › sigelem
BNF sigelem ::= sigscalarelem
| sigslurpelem
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$
grammar › subsigguts › optsiglist › siglist
BNF siglist ::= siglist PERLY_COMMA
| siglist PERLY_COMMA sigelem
| sigelem
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$
grammar › subsigguts › optsiglist
BNF optsiglist ::= empty
| siglist
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › optsigsubbody › sigsubbody › optsubsignature
BNF optsubsignature ::= empty
| subsignature
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
Midrule action
grammar › subsigguts › $@20
BNF $@20 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › subsigguts
BNF subsigguts ::= $@20 optsiglist
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › optsubbody
BNF optsubbody ::= subbody
| PERLY_SEMICOLON
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
;
grammar › barestmt › optsubbody › subbody
BNF subbody ::= remember PERLY_BRACE_OPEN stmtseq PERLY_BRACE_CLOSE
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
{ }
grammar › barestmt › optsigsubbody
BNF optsigsubbody ::= sigsubbody
| PERLY_SEMICOLON
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
;
Midrule action
grammar › barestmt › optsigsubbody › sigsubbody › $@21
BNF $@21 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › optsigsubbody › sigsubbody
BNF sigsubbody ::= remember optsubsignature PERLY_BRACE_OPEN $@21 stmtseq PERLY_BRACE_CLOSE
Used by (2)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
{ }
grammar › optexpr › expr
BNF expr ::= expr ANDOP expr
| expr PLUGIN_LOGICAL_AND_LOW_OP expr
| expr OROP expr
| expr PLUGIN_LOGICAL_OR_LOW_OP expr
| listexpr
Used by (12)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST
Code example my $value = 1 + 2;
grammar › optexpr › expr › listexpr
BNF listexpr ::= listexpr PERLY_COMMA
| listexpr PERLY_COMMA term
| term
Used by (5)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST
grammar › barestmt › fielddecl › term › listop
BNF listop ::= LSTOP indirob listexpr
| BLKLSTOP block listexpr
| FUNC PERLY_PAREN_OPEN indirob expr PERLY_PAREN_CLOSE
| term ARROW methodname PERLY_PAREN_OPEN optexpr PERLY_PAREN_CLOSE
| term ARROW methodname
| term ARROW PERLY_AMPERSAND subname PERLY_PAREN_OPEN optexpr PERLY_PAREN_CLOSE
| term ARROW PERLY_AMPERSAND subname
| METHCALL0 indirob optlistexpr
| METHCALL indirob PERLY_PAREN_OPEN optexpr PERLY_PAREN_CLOSE
| LSTOP optlistexpr
| FUNC PERLY_PAREN_OPEN optexpr PERLY_PAREN_CLOSE
| FUNC SUBLEXSTART optexpr SUBLEXEND
| LSTOPSUB startanonsub block @22 optlistexpr
Used by (1)
References (11)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
LSTOP
Midrule action
grammar › barestmt › fielddecl › term › listop › @22
BNF @22 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › fielddecl › term › listop › methodname
BNF methodname ::= METHCALL0
| scalar
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
METHCALL0
grammar › barestmt › fielddecl › term › subscripted
BNF subscripted ::= gelem PERLY_BRACE_OPEN expr PERLY_SEMICOLON PERLY_BRACE_CLOSE
| scalar PERLY_BRACKET_OPEN expr PERLY_BRACKET_CLOSE
| term ARROW PERLY_BRACKET_OPEN expr PERLY_BRACKET_CLOSE
| subscripted PERLY_BRACKET_OPEN expr PERLY_BRACKET_CLOSE
| scalar PERLY_BRACE_OPEN expr PERLY_SEMICOLON PERLY_BRACE_CLOSE
| term ARROW PERLY_BRACE_OPEN expr PERLY_SEMICOLON PERLY_BRACE_CLOSE
| subscripted PERLY_BRACE_OPEN expr PERLY_SEMICOLON PERLY_BRACE_CLOSE
| term ARROW PERLY_PAREN_OPEN PERLY_PAREN_CLOSE
| term ARROW PERLY_PAREN_OPEN expr PERLY_PAREN_CLOSE
| subscripted PERLY_PAREN_OPEN expr PERLY_PAREN_CLOSE
| subscripted PERLY_PAREN_OPEN PERLY_PAREN_CLOSE
| PERLY_PAREN_OPEN expr PERLY_PAREN_CLOSE PERLY_BRACKET_OPEN expr PERLY_BRACKET_CLOSE
| QWLIST PERLY_BRACKET_OPEN expr PERLY_BRACKET_CLOSE
| PERLY_PAREN_OPEN PERLY_PAREN_CLOSE PERLY_BRACKET_OPEN expr PERLY_BRACKET_CLOSE
Used by (2)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST ARROW ( )
grammar › barestmt › fielddecl › term › termbinop
BNF termbinop ::= term PLUGIN_HIGH_OP term
| term ASSIGNOP term
| term PLUGIN_ASSIGN_OP term
| term POWOP term
| term PLUGIN_POW_OP term
| term MULOP term
| term PLUGIN_MUL_OP term
| term ADDOP term
| term PLUGIN_ADD_OP term
| term SHIFTOP term
| termrelop
| termeqop
| term BITANDOP term
| term BITOROP term
| term DOTDOT term
| term ANDAND term
| term PLUGIN_LOGICAL_AND_OP term
| term OROR term
| term PLUGIN_LOGICAL_OR_OP term
| term DORDOR term
| term MATCHOP term
| term PLUGIN_LOW_OP term
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST PLUGIN_HIGH_OP QWLIST
grammar › barestmt › fielddecl › term › termbinop › termrelop
BNF termrelop ::= relopchain
| term NCRELOP term
| termrelop NCRELOP
| termrelop CHRELOP
| term PLUGIN_REL_OP term
Used by (2)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST NCRELOP QWLIST
grammar › barestmt › fielddecl › term › termbinop › termrelop › relopchain
BNF relopchain ::= term CHRELOP term
| relopchain CHRELOP term
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST CHRELOP QWLIST
grammar › barestmt › fielddecl › term › termbinop › termeqop
BNF termeqop ::= eqopchain
| term NCEQOP term
| termeqop NCEQOP
| termeqop CHEQOP
Used by (2)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST NCEQOP QWLIST
grammar › barestmt › fielddecl › term › termbinop › termeqop › eqopchain
BNF eqopchain ::= term CHEQOP term
| eqopchain CHEQOP term
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST CHEQOP QWLIST
grammar › barestmt › fielddecl › term › termunop
BNF termunop ::= PERLY_MINUS term
| PERLY_PLUS term
| PERLY_EXCLAMATION_MARK term
| PERLY_TILDE term
| term POSTINC
| term POSTDEC
| term POSTJOIN
| PREINC term
| PREDEC term
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
- QWLIST
grammar › barestmt › fielddecl › term › anonymous
BNF anonymous ::= PERLY_BRACKET_OPEN optexpr PERLY_BRACKET_CLOSE
| HASHBRACK optexpr PERLY_SEMICOLON PERLY_BRACE_CLOSE
| KW_SUB_anon startanonsub proto subattrlist subbody
| KW_SUB_anon_sig startanonsub subattrlist sigsubbody
| KW_METHOD_anon startanonmethod subattrlist sigsubbody
Used by (1)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
[ ]
grammar › barestmt › fielddecl › term › termdo
BNF termdo ::= KW_DO term
| KW_DO block
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
do QWLIST
grammar › barestmt › fielddecl › term
BNF term ::= termbinop
| termunop
| anonymous
| termdo
| term PERLY_QUESTION_MARK term PERLY_COLON term
| REFGEN term
| myattrterm
| KW_LOCAL term
| PERLY_PAREN_OPEN expr PERLY_PAREN_CLOSE
| QWLIST
| PERLY_PAREN_OPEN PERLY_PAREN_CLOSE
| scalar
| star
| hsh
| ary
| arylen
| subscripted
| sliceme PERLY_BRACKET_OPEN expr PERLY_BRACKET_CLOSE
| kvslice PERLY_BRACKET_OPEN expr PERLY_BRACKET_CLOSE
| sliceme PERLY_BRACE_OPEN expr PERLY_SEMICOLON PERLY_BRACE_CLOSE
| kvslice PERLY_BRACE_OPEN expr PERLY_SEMICOLON PERLY_BRACE_CLOSE
| THING
| amper
| amper PERLY_PAREN_OPEN PERLY_PAREN_CLOSE
| amper PERLY_PAREN_OPEN expr PERLY_PAREN_CLOSE
| NOAMP subname optlistexpr
| term ARROW PERLY_DOLLAR PERLY_STAR
| term ARROW PERLY_SNAIL PERLY_STAR
| term ARROW PERLY_PERCENT_SIGN PERLY_STAR
| term ARROW PERLY_AMPERSAND PERLY_STAR
| term ARROW PERLY_STAR PERLY_STAR
| LOOPEX
| LOOPEX term
| NOTOP listexpr
| UNIOP
| UNIOP block
| UNIOP term
| KW_REQUIRE
| KW_REQUIRE term
| UNIOPSUB
| UNIOPSUB term
| FUNC0
| FUNC0 PERLY_PAREN_OPEN PERLY_PAREN_CLOSE
| FUNC0OP
| FUNC0OP PERLY_PAREN_OPEN PERLY_PAREN_CLOSE
| FUNC0SUB
| FUNC1 PERLY_PAREN_OPEN PERLY_PAREN_CLOSE
| FUNC1 PERLY_PAREN_OPEN expr PERLY_PAREN_CLOSE
| PMFUNC @23 SUBLEXSTART listexpr optrepl SUBLEXEND
| BAREWORD
| listop
| PLUGEXPR
Used by (19)
References (23)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
QWLIST
Midrule action
grammar › barestmt › fielddecl › term › @23
BNF @23 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › fielddecl › term › myattrterm
BNF myattrterm ::= KW_MY myterm myattrlist
| KW_MY myterm
| KW_MY REFGEN myterm myattrlist
| KW_MY REFGEN term
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
my REFGEN QWLIST
grammar › barestmt › fielddecl › term › myattrterm › myterm
BNF myterm ::= PERLY_PAREN_OPEN expr PERLY_PAREN_CLOSE
| PERLY_PAREN_OPEN PERLY_PAREN_CLOSE
| scalar
| hsh
| ary
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
( )
grammar › barestmt › fielddecl › fieldvar
BNF fieldvar ::= scalar
| hsh
| ary
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$ bareword
grammar › barestmt › fielddecl › optfieldattrlist
BNF optfieldattrlist ::= COLONATTR THING
| COLONATTR
| empty
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › fielddecl
BNF fielddecl ::= KW_FIELD fieldvar optfieldattrlist
| KW_FIELD fieldvar optfieldattrlist ASSIGNOP $@24 term
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
field $ bareword
Midrule action
grammar › barestmt › fielddecl › $@24
BNF $@24 ::= ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › optlistexpr
BNF optlistexpr ::= empty
| listexpr
Used by (3)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › optexpr
BNF optexpr ::= empty
| expr
Used by (3)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › fielddecl › term › optrepl
BNF optrepl ::= empty
| PERLY_SLASH expr
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
grammar › barestmt › my_scalar
BNF my_scalar ::= scalar
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$ bareword
grammar › barestmt › my_list_of_scalars › list_of_scalars
BNF list_of_scalars ::= list_of_scalars PERLY_COMMA
| list_of_scalars PERLY_COMMA scalar
| scalar
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$ bareword
grammar › barestmt › my_list_of_scalars
BNF my_list_of_scalars ::= list_of_scalars
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$ bareword
grammar › barestmt › my_var
BNF my_var ::= scalar
| ary
| hsh
Used by (2)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$ bareword
grammar › barestmt › refgen_topic
BNF refgen_topic ::= my_var
| amper
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$ bareword
grammar › barestmt › my_refgen
BNF my_refgen ::= KW_MY REFGEN
| REFGEN KW_MY
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
my REFGEN
grammar › barestmt › refgen_topic › amper
BNF amper ::= PERLY_AMPERSAND indirob
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
& bareword
grammar › barestmt › scalar
BNF scalar ::= PERLY_DOLLAR indirob
Used by (11)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$ bareword
grammar › barestmt › my_var › ary
BNF ary ::= PERLY_SNAIL indirob
Used by (5)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
@ bareword
grammar › barestmt › my_var › hsh
BNF hsh ::= PERLY_PERCENT_SIGN indirob
Used by (5)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
% bareword
grammar › barestmt › fielddecl › term › arylen
BNF arylen ::= DOLSHARP indirob
| term ARROW DOLSHARP PERLY_STAR
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
DOLSHARP bareword
grammar › barestmt › fielddecl › term › star
BNF star ::= PERLY_STAR indirob
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
* bareword
grammar › barestmt › fielddecl › term › sliceme
BNF sliceme ::= ary
| term ARROW PERLY_SNAIL
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
@ bareword
grammar › barestmt › fielddecl › term › kvslice
BNF kvslice ::= hsh
| term ARROW PERLY_PERCENT_SIGN
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
% bareword
grammar › barestmt › fielddecl › term › subscripted › gelem
BNF gelem ::= star
| term ARROW PERLY_STAR
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
* bareword
grammar › barestmt › scalar › indirob
BNF indirob ::= BAREWORD
| scalar
| block
| PRIVATEREF
Used by (7)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
bareword