Permalink
Browse files

docs: The main rule called Parser

  • Loading branch information...
1 parent 179960d commit 5b9006d03b9676ff547cb49f41f8d036dbcd2620 @pstuifzand committed Mar 23, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 docs/how_to_write_a_grammar.pod
@@ -11,7 +11,7 @@ Peter Stuifzand <peter@tweevijftig.nl>
Created: 23 Mar 2012
-Version: 2
+Version: 3
=head1 ABSTRACT
@@ -95,5 +95,10 @@ the next rules that matched.
Expression ::= $( List $) {{ shift; return $_[1]; }}
List ::= Expression+ {{ shift; return \@_; }}
+=head3 The main rule called Parser
+
+Each grammar should contain a rule called C<Parser>. This rule is the rule
+where the matching starts. Without the rule no parser will be created.
+
=cut

0 comments on commit 5b9006d

Please sign in to comment.