summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-10-28 22:50:44 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-10-28 22:50:44 (GMT)
commit14aea91667f98d52068fb7b13d93d35af7c2d7e6 (patch)
tree06f453cea4891e27e0eeff541dd107455a0da9f0
parentce27af7f442d1fa580311eac83bc44d7db4e0d05 (diff)
Updated some rules for the opcode generator.
-rw-r--r--tools/d2c/grammar.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/d2c/grammar.y b/tools/d2c/grammar.y
index ad6531a..4444299 100644
--- a/tools/d2c/grammar.y
+++ b/tools/d2c/grammar.y
@@ -153,7 +153,7 @@ static void *map_input_data(const char *, size_t *);
#define handle_coder_hooks(c, r) \
({ \
encoding_spec *__spec; \
- instr_hooks *__hooks;; \
+ instr_hooks *__hooks; \
bool __status; \
__spec = get_current_encoding_spec(c); \
__hooks = get_hooks_in_encoding_spec(__spec); \
@@ -255,8 +255,8 @@ format : FORMAT RAW_LINE { handle_coder_format(coder, $2); }
unused_format : UNUSED RAW_LINE { handle_coder_format(coder, $2); mark_coder_as_useless(coder); }
format_content : /* empty */
- | SYNTAX { push_coder_new_syntax(coder); } format_syntax
- | hooks format_syntax
+ | SYNTAX { push_coder_new_syntax(coder); } format_syntax format_content
+ | hooks format_content
format_syntax : /* empty */
| rules format_syntax