larlr1.cc: Reject unsupported values for parse.lac

Just as the yacc.c skeleton, the lalr1.cc skeleton should reject
invalid values for parse.lac.

* data/skeletons/lalr1.cc: check validity of parse.lac
* tests/input.at: new test cases
This commit is contained in:
Adrian Vogelsgesang
2020-01-19 19:11:23 +01:00
committed by Akim Demaille
parent 6ada985ff3
commit 172f103c1e
2 changed files with 22 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ m4_define([b4_value_type_setup_variant])
# Check the value of %define parse.lac, where LAC stands for lookahead
# correction.
b4_percent_define_default([[parse.lac]], [[none]])
b4_percent_define_check_values([[[[parse.lac]], [[full]], [[none]]]])
b4_define_flag_if([lac])
m4_define([b4_lac_flag],
[m4_if(b4_percent_define_get([[parse.lac]]),