Skip to content

Commit

Permalink
Update the 'var' declaration rule in the tutorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurtis committed Jul 17, 2010
1 parent c1512a5 commit 0db49dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/tutorial_episode_5.pod
Expand Up @@ -93,9 +93,8 @@ The following is the grammar rule for variable declarations. This is a type of
statement, so I assume you know how to extend the statement rule to allow for
variable declarations.

rule variable_declaration {
'var' <identifier> ['=' <expression>]?
{*}
rule statement:sym<var> {
<sym> <identifier> ['=' <expression>]?
}

A local variable is declared using the C<var> keyword, and has an optional
Expand Down

0 comments on commit 0db49dc

Please sign in to comment.