<!-- 
  This file is intended to be executed by NewRuleCalculator. 
	Note that the rules for adding and multiplying are learned on 
  the fly, while parsingthis file.
-->

<computation name="toto">
  <new-rule pattern="*/computation/literal" 
            actionClass="chapter10.calculator.LiteralAction"/>
  <new-rule pattern="*/computation/add" 
            actionClass="chapter10.calculator.AddAction"/>
  <new-rule pattern="*/computation/multiply" 
            actionClass="chapter10.calculator.MultiplyAction"/>

  <computation>
    <literal value="7"/>
    <literal value="3"/>
    <add/>
  </computation>   
 
  <literal value="3"/>
  <multiply/>
</computation>