rebar/inttest/erlc/src/first_xrl.xrl
2014-03-12 20:45:37 +01:00

13 lines
202 B
Erlang

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.