Perl 6 Perl 6 #39

Parsing example

For example, given

if a == 4 then print "Hello";

we want to separate the statement into its parts

if                -- "if" keyword
  a == 4          -- an expression
then              -- "then" keyword
  print "Hello";  -- a statement
Copyright © 2008 Patrick Michaud