esl / ice

Apache License 2.0
2 stars 4 forks source link

Parsing of float literals #72

Closed horvand closed 9 years ago

horvand commented 9 years ago
5> ice_string:parse("X where var X = 1.2 end").
{where,{id,"X"},
       [{var,{id,"X"},{fn_call,{int,1},[{b_param,{int,2}}]}}]}

Probably it's the ordering of the rules or the like.

fenollp commented 9 years ago

Hey Andras,

Actually floats needed a special syntax if I remember well. I think it is f1.2 to mean 12/10.

horvand commented 9 years ago

It's 1.2f0; thanks.