aboutsummaryrefslogtreecommitdiff
path: root/lib/qparser/parser.mly
diff options
context:
space:
mode:
authorChimrod <>2024-08-08 10:20:24 +0200
committerChimrod <>2024-08-12 21:35:00 +0200
commit692d66ba7eb0ff55a46b68601b7cd81f825653cb (patch)
treea84409684c912c8c49dc49e3225b70f313c41c39 /lib/qparser/parser.mly
parent976f80ed226e53625cd807539b9336f52f6eb091 (diff)
Created a dedicated file for the single line instruction
Diffstat (limited to 'lib/qparser/parser.mly')
-rw-r--r--lib/qparser/parser.mly5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/qparser/parser.mly b/lib/qparser/parser.mly
index 5c83fc2..d075e3e 100644
--- a/lib/qparser/parser.mly
+++ b/lib/qparser/parser.mly
@@ -49,9 +49,6 @@ start_location:
line_statement:
| COMMENT EOL+ { Analyzer.Instruction.comment $loc }
| COLUMN i=IDENT EOL* { Analyzer.Instruction.location $loc i }
- | s = terminated(instruction, line_sep)
- | s = terminated(inline_action, line_sep)
- { s }
| a = action_bloc(IF, elif_else_body)
{ let {loc; expression; body; pos; clauses } = a in
let elifs, else_ = match clauses with
@@ -68,6 +65,8 @@ line_statement:
{ let {loc; expression; body; _} = a in
Analyzer.Instruction.act loc ~label:expression body
}
+ | b = inlined_block(line_sep)
+ { b }
(** Represent an instruction which can either be on a single line,
or created in a block until an END