File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ into effect for the Regex:
81
81
say so 'once upon a time' ~~ &space-y; # OUTPUT: «True»
82
82
= end code
83
83
84
- = head1 X < Creating Grammars >
84
+ = head1 X < Creating Grammars|declarator, grammar >
85
85
= SUBTITLE Group of named regexes that form a formal grammar
86
86
87
87
L < Grammar|/type/Grammar > is the superclass that classes automatically get when
@@ -92,7 +92,7 @@ L<action object|/language/grammars#Action_Objects> is recommended to be used in
92
92
conjunction with the grammar.
93
93
94
94
95
- = head2 X « Proto regexes| sym; :sym<>; proto regex;declarator,grammar »
95
+ = head2 X « Proto regexes| :sym<>; proto regex »
96
96
97
97
L < Grammar|/type/Grammar > s are composed of rules, tokens and regexes;
98
98
they are actually methods, since grammars are classes. These methods
@@ -235,7 +235,7 @@ You can also redefine the default C<ws> token:
235
235
}.parse: "4 \n\n 5"; # Fails
236
236
237
237
238
- = head3 X < C < sym > |sym>
238
+ = head3 X « C < sym > |< sym>»
239
239
240
240
The C « <sym> » token can be used inside proto regexes to match the string value of the C < :sym >
241
241
adverb for that particular regex:
You can’t perform that action at this time.
0 commit comments