summaryrefslogtreecommitdiff
path: root/pptok.dat
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-12 01:29:43 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-09-12 01:29:43 +0000
commit4169a47bd9daba2eb03d6c435722f1bb0bb6f52c (patch)
treeedc9826eed78c333119a5ad3083aa455f98a66da /pptok.dat
parentcdea6f96b69a31e7d9294ac9b7f9f1167f722ed8 (diff)
downloadnasm-4169a47bd9daba2eb03d6c435722f1bb0bb6f52c.tar.gz
Use a perfect hash to look up preprocessor directives
Use a perfect hash to look up preprocessor directives, and generate the preprocessor directive list automatically.
Diffstat (limited to 'pptok.dat')
-rw-r--r--pptok.dat44
1 files changed, 44 insertions, 0 deletions
diff --git a/pptok.dat b/pptok.dat
new file mode 100644
index 00000000..1c07d4b2
--- /dev/null
+++ b/pptok.dat
@@ -0,0 +1,44 @@
+#
+# A * at the end indicates a condition; the list of conditions are
+# on lines starting with *; the negatives are auto-generated
+#
+*
+*ctx
+*def
+*id
+*idn
+*idni
+*macro
+*num
+*str
+%arg
+%assign
+%clear
+%define
+%elif*
+%else
+%endif
+%endm
+%endmacro
+%endrep
+%error
+%exitrep
+%iassign
+%idefine
+%if*
+%imacro
+%include
+%ixdefine
+%line
+%local
+%macro
+%pop
+%push
+%rep
+%repl
+%rotate
+%stacksize
+%strlen
+%substr
+%undef
+%xdefine