summaryrefslogtreecommitdiff
path: root/inttest/erlc/src/first_xrl.xrl
diff options
context:
space:
mode:
Diffstat (limited to 'inttest/erlc/src/first_xrl.xrl')
-rw-r--r--inttest/erlc/src/first_xrl.xrl13
1 files changed, 13 insertions, 0 deletions
diff --git a/inttest/erlc/src/first_xrl.xrl b/inttest/erlc/src/first_xrl.xrl
new file mode 100644
index 0000000..0de4c70
--- /dev/null
+++ b/inttest/erlc/src/first_xrl.xrl
@@ -0,0 +1,13 @@
+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.