Parrot/PGE, parsers Parsers, Perl 6 Rules, and the Parrot Grammar Engine #5

Syntax

if                -- "if" keyword
  a == 4          -- an expression
then              -- "then" keyword
  print "Hello";  -- a statement

Our general pattern for an if statement is

"if"  <expression>   "then"  <statement>
continued...
Copyright © 2006 Patrick Michaud