summaryrefslogtreecommitdiff
path: root/parser.y
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-14 16:15:12 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-15 23:19:24 -0600
commit3ec0ba288f355c717f1449625bc0aba3c4c9b104 (patch)
treee3ffa95080510dae2d39909b2d774fd0d4533588 /parser.y
parentca8e5e46c4d3bcb402cb3439a9a1cdc42d6d45c7 (diff)
nqasm: Reformat nop grammar
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/parser.y b/parser.y
index 237b71d..3ca1c2c 100644
--- a/parser.y
+++ b/parser.y
@@ -137,8 +137,7 @@ inst:
| T_BRA a_pcoff { $$ = INSTRUCTION_ARGS(BRA, $2); }
| T_JMP a_regp { $$ = INSTRUCTION_ARGS(JMP, $2); }
| T_ADDPC a_reg_imm { $$ = INSTRUCTION_ARGS(ADDPC, $2); }
- | T_NOP
- { $$ = INSTRUCTION(NOP); }
+ | T_NOP { $$ = INSTRUCTION(NOP); }
;
a_reg2: