Perl 5.44

Source: perly.y @ v5.44.0 (e634cc8) / lrama 0.8.0 / 2026-07-13

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

Readable Original grammar

$accept

$@1

grammar

$@2

$@3

$@4

$@5

$@6

$@7

bare_statement_block

bare_statement_class_declaration

$@8

bare_statement_class_definition

bare_statement_default

bare_statement_defer

bare_statement_expression

bare_statement_field_declaration

$@9

$@10

bare_statement_for

@11

bare_statement_format

bare_statement_given

bare_statement_if

bare_statement_null

bare_statement_package_declaration

$@12

bare_statement_package_definition

$@13

bare_statement_phaser

$@14

bare_statement_sub_signature

$@15

bare_statement_sub_traditional

$@16

bare_statement_try_catch

bare_statement_unless

bare_statement_until

$@17

bare_statement_utilize

bare_statement_when

bare_statement_while

bare_statement_yadayada

sigsub_or_method_named

block

empty

formblock

remember

mblock

mremember

catch_paren

$@18

$@19

stmtseq

formstmtseq

fullstmt

labfullstmt

barestmt

formline

formarg

condition

sideff

else

cont

finally

mintro

nexpr

texpr

iexpr

mexpr

mnexpr

formname

startsub

startanonsub

startanonmethod

startformsub

subname

proto

subattrlist

attrlist

optattrlist

sigvar

sigslurpsigil

sigslurpelem

optcolon

sigscalarelem

optsigscalardefault

sigelem

siglist

optsiglist

optsubsignature

subsignature

$@20

subsigguts

optsubbody

subbody

optsigsubbody

$@21

sigsubbody

expr

listexpr

listop

@22

methodname

subscripted

termbinop

termrelop

relopchain

termeqop

eqopchain

termunop

anonymous

termdo

term

@23

myattrterm

myterm

fieldvar

fielddecl

$@24

optlistexpr

optexpr

optrepl

my_scalar

list_of_itervars

my_list_of_itervars

my_var

refgen_topic

my_refgen

amper

scalar

ary

hsh

arylen

star

sliceme

kvslice

gelem

indirob

Keyboard shortcuts

/ focuses search. j and k move between rules. ? opens this help. Escape closes it.