Hi guys, I tried to match the following rule:
rule( :term => { :factor => "c", :plus =>"+ ", :term=> "d" } ) { puts
"--> Pattern Matched" } # Simple test to check the matching of the rule.
in the parse tree:
{:result=>
{:term=>
{:factor=>"a"@2,
:plus=>"+ "@4,
:term=>
{:factor=>"b"@6,
:plus=>"+ "@8,
:term => { :factor=>"c"@10, :plus=>"+ "@12, :term=>"d"@14} } } } }
But the rule did not match.
Can anyone give me a clue what I did wrong?
Thanks in advance.
Thiel
