summaryrefslogtreecommitdiff
path: root/plugins/keyboard/keysrc.l
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-04 20:19:12 +0000
committerDana Jansens <danakj@orodu.net>2003-04-04 20:19:12 +0000
commit68ff2eb3d2d7874e780000143cbee9a8e7c2e57f (patch)
treeeed6077d7eedb92fac0c8c3c51c56577be15f82e /plugins/keyboard/keysrc.l
parentc8ff993e08e73f030a2efdb4f01c5f65464555e7 (diff)
add the keyboard plugin into the build systems
keyboard bindings are parsed from the rc file
Diffstat (limited to 'plugins/keyboard/keysrc.l')
-rw-r--r--plugins/keyboard/keysrc.l38
1 files changed, 0 insertions, 38 deletions
diff --git a/plugins/keyboard/keysrc.l b/plugins/keyboard/keysrc.l
deleted file mode 100644
index c6f3a363..00000000
--- a/plugins/keyboard/keysrc.l
+++ /dev/null
@@ -1,38 +0,0 @@
-%{
-#include <glib.h>
-#include "y.tab.h"
-
-extern void kparseerror(char *s);
-int kparselineno;
-%}
-
-field [A-Za-z0-9][-A-Za-z0-9]*
-number (-[0-9]|[0-9])[0-9]*
-string \"[^"\n]*\"
-
-%%
-
-^[ \t]*#.*\n kparselineno++;
-{number} kparselval.integer = atoi(kparsetext); return INTEGER;
-{field} kparselval.string = g_strdup(kparsetext); return FIELD;
-{string} {
- /* drop the quotes */
- kparselval.string = g_strdup(kparsetext+1);
- if (kparselval.string[kparseleng-2] != '"') {
- g_warning("improperly terminated string on line %d\n",
- kparselineno);
- kparseerror("");
- } else
- kparselval.string[kparseleng-2] = '\0';
- return STRING;
- }
-
-[ \t]
-\n kparselineno++; return *yytext;
-. kparseerror("");
-
-%%
-
-int kparsewrap() {
- return 1;
-}