rebar/inttest/erlc/src/first_xrl.xrl

14 lines
202 B
Text
Raw Normal View History

2014-03-05 16:59:35 +00:00
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.