aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChimrod <>2025-01-03 19:30:27 +0100
committerChimrod <>2025-01-04 09:52:09 +0100
commit211f0f7a210936bfa0d55d5e14abd2917a3c8903 (patch)
tree29311e9af5eae05c69a68f01c4acea65cb99c854 /lib
parent75f3eabb46eded01460f7700a75d094100047438 (diff)
New custom error message
Diffstat (limited to 'lib')
-rw-r--r--lib/qparser/expression_parser.messages10
-rw-r--r--lib/qparser/parser.mly2
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/qparser/expression_parser.messages b/lib/qparser/expression_parser.messages
index b708d36..2ba26fc 100644
--- a/lib/qparser/expression_parser.messages
+++ b/lib/qparser/expression_parser.messages
@@ -1,3 +1,4 @@
+main: LOCATION_START EOL INTEGER SET
main: LOCATION_START EOL IDENT SET
Unexpected expression here.
@@ -45,10 +46,6 @@ main: STAR
Missing location name
-main: LOCATION_START EOL INTEGER SET
-
- Unexpected expression here.
-
main: LOCATION_START EOL IF IDENT COLUMN EOL ELIF INTEGER SET
The `ELIF` expression does not end properly. A `:` is expected before any instruction.
@@ -114,3 +111,8 @@ main: LOCATION_START EOL IDENT STAR STAR
main: LOCATION_START EOL IDENT MINUS STAR
Unknown operator. Did you write '+ =' instead of '+=' ?
+
+dynamics: IDENT R_PAREN
+dynamics: TEXT_MARKER ENTER_EMBED FUNCTION_NOARGS TEXT_MARKER
+
+ Unbalanced paren
diff --git a/lib/qparser/parser.mly b/lib/qparser/parser.mly
index 469cf79..2fadccf 100644
--- a/lib/qparser/parser.mly
+++ b/lib/qparser/parser.mly
@@ -21,7 +21,7 @@
%start <(Analyzer.context -> Analyzer.Location.t)>main
%start<(Analyzer.context -> Analyzer.Location.t)>dynamics
-%on_error_reduce expression instruction unary_operator assignation_operator
+%on_error_reduce instruction unary_operator assignation_operator
%%