From 692d66ba7eb0ff55a46b68601b7cd81f825653cb Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Thu, 8 Aug 2024 10:20:24 +0200 Subject: Created a dedicated file for the single line instruction --- lib/qparser/parser.mly | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/qparser/parser.mly') 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 -- cgit v1.2.3