X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/401aace63cef73a1f9ab6d217d5ece53bb816147..455671735e6f4e9712c2f5ac1bc153b07b33e67b:/data/lalr1.cc?ds=sidebyside diff --git a/data/lalr1.cc b/data/lalr1.cc index 594465c0..8f0ebe8f 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -120,6 +120,8 @@ b4_syncline([@oline@], [@ofile@]) { ]b4_token_enums(b4_tokens)[ }; + /// Token type. + typedef token::yytokentype token_type; /// Build a parser object. ]b4_parser_class_name[ (]b4_parse_param_decl[); @@ -248,7 +250,7 @@ b4_error_verbose_if([, int tok])[); #endif /// Convert a scanner token number to a symbol number. - inline token_number_type yytranslate_ (int token); + token_number_type yytranslate_ (int token); /// \brief Reclaim the memory associated to a symbol. /// \param yymsg Why this token is reclaimed.