diff options
Diffstat (limited to 'as/as.y')
-rw-r--r-- | as/as.y | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/as/as.y b/as/as.y deleted file mode 100644 index ed8714f..0000000 --- a/as/as.y +++ /dev/null @@ -1,36 +0,0 @@ -%{ -#include <inttypes.h> -%} - -%union { - char *s; - uintmax_t n; -}; - -%token<n> NUMBER -%token<s> TOKEN -%token NEWLINE - -%% - -program - : /* empty */ - | instruction NEWLINE -; - -instruction - : bare_instruction - | TOKEN ':' bare_instruction -; - -bare_instruction - : TOKEN - | TOKEN operand - | TOKEN operand ',' operand - | TOKEN operand ',' operand ',' operand -; - -operand - : TOKEN - | NUMBER -; |