blob: 0de4c707d72311e19241503f052bc9fd935edd90 [file] [log] [blame]
Definitions.
D = [0-9]
Rules.
{D}+ :
{token,{integer,TokenLine,list_to_integer(TokenChars)}}.
{D}+\.{D}+((E|e)(\+|\-)?{D}+)? :
{token,{float,TokenLine,list_to_float(TokenChars)}}.
Erlang code.