summaryrefslogtreecommitdiff
path: root/mnv/runtime/syntax/testdir/input/leex.xrl
diff options
context:
space:
mode:
authorMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-04 12:41:27 +0300
committerMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-04 12:41:27 +0300
commit4f2d36194b4f299aa7509d815c07121039ea833b (patch)
treef3ded014bad3a4c76ff6a22b8726ebaab68c3d13 /mnv/runtime/syntax/testdir/input/leex.xrl
parent5b578e70c314723a3cde5c9bfc2be0bf1dadc93b (diff)
downloadProject-Tick-4f2d36194b4f299aa7509d815c07121039ea833b.tar.gz
Project-Tick-4f2d36194b4f299aa7509d815c07121039ea833b.zip
NOISSUE change uvim folder name to mnv
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'mnv/runtime/syntax/testdir/input/leex.xrl')
-rw-r--r--mnv/runtime/syntax/testdir/input/leex.xrl28
1 files changed, 28 insertions, 0 deletions
diff --git a/mnv/runtime/syntax/testdir/input/leex.xrl b/mnv/runtime/syntax/testdir/input/leex.xrl
new file mode 100644
index 0000000000..c901b8b87d
--- /dev/null
+++ b/mnv/runtime/syntax/testdir/input/leex.xrl
@@ -0,0 +1,28 @@
+% Header comment
+%% Header comment
+%%% Header comment
+
+Definitions.
+floats = (\+|-)?[0-9]+\.[0-9]+((E|e)(\+|-)?[0-9]+)?
+D = [0-9]
+A = ({D}|_|@)
+WS = ([\000-\s]|%.*) % whitespace
+
+Rules.
+{D}+ :
+ % Comment
+ {token,{integer,TokenLine,list_to_integer(TokenChars)}}.
+{D}+\.{D}+((E|e)(\+|\-)?{D}+)? :
+ % Coment with period.
+ {token,{float,TokenLine,list_to_float(TokenChars)}}.
+{A} : ErlangCode. % comment
+{WS} : ErlangCode.
+:= :{token,{':=',TokenLine}}.
+
+Erlang code.
+
+-export([reserved_word/1]).
+
+%% reserved_word(Atom) -> Bool
+reserved_word('reserved') -> true;
+reserved_word(_) -> false.