X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0d43e6057b31caf96daa30d2dd3c07932b2c461a..77a1a208a9ff9110f28a958c3fb630b434976e1a:/data/lalr1.cc diff --git a/data/lalr1.cc b/data/lalr1.cc index d6ea50b7..75eaf571 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -721,20 +721,20 @@ b4_dollar_popdef])[]dnl { YYCDEBUG << "Reading a token: "; try - { + { ]b4_lex_symbol_if( -[ yyla = b4_function_call([yylex], [symbol_type], +[ yyla = b4_function_call([yylex], [symbol_type], m4_ifdef([b4_lex_param], b4_lex_param));], -[ yyla.type = yytranslate_ (b4_function_call([yylex], [int], +[ yyla.type = yytranslate_ (b4_function_call([yylex], [int], [b4_api_PREFIX[STYPE*], [&yyla.value]][]dnl b4_locations_if([, [[location*], [&yyla.location]]])dnl m4_ifdef([b4_lex_param], [, ]b4_lex_param)));])[ - } + } catch (const syntax_error& yyexc) - { - error (yyexc); - goto yyerrlab1; - } + { + error (yyexc); + goto yyerrlab1; + } yyempty = false; } YY_SYMBOL_PRINT ("Next token is", yyla); @@ -807,19 +807,19 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param)));])[ // Perform the reduction. YY_REDUCE_PRINT (yyn); try - { - switch (yyn) { + switch (yyn) + { ]b4_user_actions[ - default: - break; + default: + break; + } } - } catch (const syntax_error& yyexc) - { - error (yyexc); - YYERROR; - } + { + error (yyexc); + YYERROR; + } YY_SYMBOL_PRINT ("-> $$ =", yylhs); ]b4_variant_if([[ // Destroy the rhs symbols.