mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
13 lines
202 B
Erlang
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.
|