lib/parslet/transform.rb
# Defines a rule to be applied whenever apply is called on a tree. A rule
# is composed of two parts: 
# 
# * an *expression pattern*
# * a *transformation block*
#
Defines a rule to be applied whenever apply is called on a tree. A rule
is composed of two parts.

an *expression pattern
a *transformation block
Defines a rule to be applied whenever apply is called on a tree . A rule is composed of two parts . an * expression pattern a * transformation block
def rule(expression, &block)
    @rules << [
      Parslet::Pattern.new(expression), 
      block
    ]
  end
def rule ( expression , & block ) @rules << [ Parslet :: Pattern . new ( expression ) , block ] end
Defines a rule to be applied whenever apply is called on a tree.
Defines a rule to be applied whenever apply is called on a tree .
expression
<not_specific>
block
<not_specific>