From cf6464267f49866b24a9b185498abf9b57433ecd Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 3 May 2018 12:06:27 +0200 Subject: src: add table_spec Store location object in handle to improve error reporting. Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index dcd46835..95a42d3e 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1844,7 +1844,8 @@ table_spec : family_spec identifier { memset(&$$, 0, sizeof($$)); $$.family = $1; - $$.table = $2; + $$.table.location = @2; + $$.table.name = $2; } ; -- cgit v1.2.3