Skip to content

Commit 87d0659

Browse files
authored
Unconfuse packages and compilation units
cfa++ for reporting.
1 parent e113c37 commit 87d0659

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/Language/syntax.pod6

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,8 @@ You can also assign subroutines to variables.
611611
612612
=head3 X<Module, Class, Role, and Grammar declaration|declarator,unit;declarator,module>
613613
614-
There are several types of compilation units (packages), each declared with a
615-
keyword, a name, some optional traits, and a body of functions.
614+
There are several types of package, each declared with a keyword, a name, some optional traits, and a
615+
body of subroutines, methods, or rules.
616616
617617
module Gar { }
618618
@@ -622,7 +622,9 @@ keyword, a name, some optional traits, and a body of functions.
622622
623623
grammar Baz { }
624624
625-
You can declare a C<unit> of things without explicit curly brackets.
625+
You can declare a C<unit> package without explicit curly brackets. This must be at the start of the
626+
file (preceded only by comments or C<use> statements), and the rest of the file will be taken as
627+
being the body of the package.
626628
627629
=begin code :skip-test
628630
unit module Gar;

0 commit comments

Comments
 (0)