]> git.draconx.ca Git - cdecl99.git/blobdiff - src/ordspecs.sed
Separate specifier handling from the output routines.
[cdecl99.git] / src / ordspecs.sed
diff --git a/src/ordspecs.sed b/src/ordspecs.sed
new file mode 100644 (file)
index 0000000..7eb559c
--- /dev/null
@@ -0,0 +1,24 @@
+1i\
+/*\
+ * Copyright © 2011 Nick Bowler\
+ *\
+ * License WTFPL2: Do What The Fuck You Want To Public License, version 2.\
+ * This is free software: you are free to do what the fuck you want to.\
+ * There is NO WARRANTY, to the extent permitted by law.\
+ */
+1i\
+/*\
+ * This file is automatically generated by ordspecs.sed.\
+ */
+/[^_[:alpha:][:space:]]/b
+s/[[:space:]][[:space:]]*/ /g
+s/_//g
+y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
+s/\([[:upper:]]*\) \([[:upper:]]*\)/case CDECL_\1_\2:/
+p
+i\
+       return
+=
+a\
+       ;
+d