Parrot and Perl 6 Parrot and Perl 6 - Environments for Dynamic Languages #27

Syntax

We want to extract the patterns out of our source programs.

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 © 2007 Patrick Michaud