From 12d57b50dfe50353a2a0d6b40dd5ff45530dd5cc Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 3 May 2018 12:31:48 +0200 Subject: src: add set_spec Store location object in handle to improve error reporting. Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index b5229ae1..28aa6cc1 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1885,7 +1885,8 @@ chain_identifier : identifier set_spec : table_spec identifier { $$ = $1; - $$.set = $2; + $$.set.name = $2; + $$.set.location = @2; } ; @@ -1900,7 +1901,8 @@ setid_spec : table_spec HANDLE NUM set_identifier : identifier { memset(&$$, 0, sizeof($$)); - $$.set = $1; + $$.set.name = $1; + $$.set.location = @1; } ; -- cgit v1.2.3