bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 09/12] yacc.c: check custom error messages with parse-params


From: Akim Demaille
Subject: [PATCH 09/12] yacc.c: check custom error messages with parse-params
Date: Thu, 16 Jan 2020 07:58:20 +0100

* tests/calc.at: Check with prefix and parse-params.
---
 tests/calc.at | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/calc.at b/tests/calc.at
index 0ed9709c..a7283840 100644
--- a/tests/calc.at
+++ b/tests/calc.at
@@ -788,7 +788,8 @@ AT_CHECK_CALC_LALR([%no-lines %define api.pure %define 
parse.error verbose %debu
 
 
 AT_CHECK_CALC_LALR([%define parse.error custom])
-AT_CHECK_CALC_LALR([%define parse.error custom %locations])
+AT_CHECK_CALC_LALR([%define parse.error custom %locations %define api.prefix 
{calc}])
+AT_CHECK_CALC_LALR([%define parse.error custom %locations %define api.prefix 
{calc} %parse-param {semantic_value *result}{int *count}])
 
 # ----------------------- #
 # Simple GLR Calculator.  #
-- 
2.24.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]