summary refs log tree commit diff stats
path: root/tests/compile/tmacrostmt.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tmacrostmt.nim')
-rwxr-xr-xtests/compile/tmacrostmt.nim17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/compile/tmacrostmt.nim b/tests/compile/tmacrostmt.nim
deleted file mode 100755
index 5d1403dac..000000000
--- a/tests/compile/tmacrostmt.nim
+++ /dev/null
@@ -1,17 +0,0 @@
-import macros
-macro case_token(n: stmt): stmt =
-  # creates a lexical analyzer from regular expressions
-  # ... (implementation is an exercise for the reader :-)
-  nil
-
-case_token: # this colon tells the parser it is a macro statement
-of r"[A-Za-z_]+[A-Za-z_0-9]*":
-  return tkIdentifier
-of r"0-9+":
-  return tkInteger
-of r"[\+\-\*\?]+":
-  return tkOperator
-else:
-  return tkUnknown
-  
-case_token: inc i