Hi,

Using 1.4

The following doesn't work, but in the :number rule, if I invert integer and 
decimal, then it does work.  The odd thing, is I have seen examples, like on 
the powerpoint presentation from the main website where they put integer first. 
 Has Parslet changed since that presentation was made?

thanks,
joey

class Mini < Parslet::Parser
 rule(:integer)        { match('[0-9]').repeat(1) }
 rule(:decimal)        { integer >> str('.') >> integer }
 rule(:number)         { integer | decimal }
 root :number
end

puts Mini.new.parse("13.2432")

Reply via email to