diff options
author | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-09-05 11:38:56 +0100 |
---|---|---|
committer | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-09-05 20:06:05 +0100 |
commit | 26dc8906aeb0783cf36bde31e9051b29a193eb23 (patch) | |
tree | 0921de4f6a92c3dc6571c1ba693e4ff19d76df8d /src/genbind-parser.y | |
parent | 1c7bc7e17ace1e457c4c0336353f142aef36d254 (diff) | |
download | nsgenbind-26dc8906aeb0783cf36bde31e9051b29a193eb23.tar.gz nsgenbind-26dc8906aeb0783cf36bde31e9051b29a193eb23.tar.bz2 |
make tests work
add basic commandlien handling
Diffstat (limited to 'src/genbind-parser.y')
-rw-r--r-- | src/genbind-parser.y | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/genbind-parser.y b/src/genbind-parser.y deleted file mode 100644 index cad20b4..0000000 --- a/src/genbind-parser.y +++ /dev/null @@ -1,58 +0,0 @@ -/* - * This is a bison parser for genbind - * - */ - -%{ - -#include <stdio.h> -#include <string.h> - -#include "genbind-parser.h" -#include "genbind-lexer.h" - - extern int loadwebidl(char *filename); - -void genbind_error(const char *str) -{ - fprintf(stderr,"error: %s\n",str); -} - - -int genbind_wrap() -{ - return 1; -} - - - -%} - -%define api.pure - -%union -{ - char* text; -} - -%token TOK_IDLFILE - -%token <text> TOK_STRING_LITERAL - -%% - - /* [1] start with instructions */ -Instructions: - /* empty */ - | - IdlFile - ; - -IdlFile: - TOK_IDLFILE TOK_STRING_LITERAL - { - loadwebidl($2); - } - ; - -%% |