mirror of
https://github.com/correl/rebar.git
synced 2024-11-30 11:09:56 +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.
|