summaryrefslogtreecommitdiff
path: root/parse.h
diff options
context:
space:
mode:
authorToby Goodwin <LibreSoftwareDesign@gmail.com>2012-10-01 20:46:40 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:24 +0100
commitc8a77b86b4f8c91314222a8e12e6e37cf182ee10 (patch)
tree770041514630af2c076e5115b3543b7f5ced1d24 /parse.h
parent27c900d6ae9cd0dcf4bc97bc9b8c1882e40ccfa8 (diff)
initial commit
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/parse.h b/parse.h
new file mode 100644
index 0000000..c193710
--- /dev/null
+++ b/parse.h
@@ -0,0 +1,37 @@
+#ifndef YYERRCODE
+#define YYERRCODE 256
+#endif
+
+#define ANDAND 257
+#define BACKBACK 258
+#define BANG 259
+#define CASE 260
+#define COUNT 261
+#define DUP 262
+#define ELSE 263
+#define END 264
+#define FLAT 265
+#define FN 266
+#define FOR 267
+#define IF 268
+#define IN 269
+#define OROR 270
+#define PIPE 271
+#define REDIR 272
+#define SREDIR 273
+#define SUB 274
+#define SUBSHELL 275
+#define SWITCH 276
+#define TWIDDLE 277
+#define WHILE 278
+#define WORD 279
+#define HUH 280
+typedef union {
+ struct Node *node;
+ struct Redir redir;
+ struct Pipe pipe;
+ struct Dup dup;
+ struct Word word;
+ char *keyword;
+} YYSTYPE;
+extern YYSTYPE yylval;