mirror of
https://github.com/correl/rebar.git
synced 2024-11-24 03:00:14 +00:00
14 lines
202 B
Text
14 lines
202 B
Text
|
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.
|