mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
c++: value_type -> kind_type
* data/c++.m4, data/lalr1.cc (by_type, by_state): Rename 'value_type' as 'kind_type', as it is clearer.
This commit is contained in:
10
data/c++.m4
10
data/c++.m4
@@ -176,11 +176,11 @@ m4_define([b4_public_types_declare],
|
|||||||
basic_symbol (const basic_symbol& other);
|
basic_symbol (const basic_symbol& other);
|
||||||
|
|
||||||
/// Constructor for valueless symbols.
|
/// Constructor for valueless symbols.
|
||||||
basic_symbol (typename Base::value_type t]b4_locations_if([,
|
basic_symbol (typename Base::kind_type t]b4_locations_if([,
|
||||||
const location_type& l])[);
|
const location_type& l])[);
|
||||||
|
|
||||||
/// Constructor for symbols with semantic value.
|
/// Constructor for symbols with semantic value.
|
||||||
basic_symbol (typename Base::value_type t,
|
basic_symbol (typename Base::kind_type t,
|
||||||
const semantic_type& v]b4_locations_if([,
|
const semantic_type& v]b4_locations_if([,
|
||||||
const location_type& l])[);
|
const location_type& l])[);
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ m4_define([b4_public_types_declare],
|
|||||||
token_type token () const;
|
token_type token () const;
|
||||||
|
|
||||||
/// The type used to store the symbol type.
|
/// The type used to store the symbol type.
|
||||||
typedef token_type value_type;
|
typedef token_type kind_type;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// "External" symbols: returned by the scanner.
|
/// "External" symbols: returned by the scanner.
|
||||||
@@ -271,7 +271,7 @@ m4_define([b4_public_types_define],
|
|||||||
template <typename Base>
|
template <typename Base>
|
||||||
inline
|
inline
|
||||||
]b4_parser_class_name[::basic_symbol<Base>::basic_symbol (]b4_join(
|
]b4_parser_class_name[::basic_symbol<Base>::basic_symbol (]b4_join(
|
||||||
[typename Base::value_type t],
|
[typename Base::kind_type t],
|
||||||
[const semantic_type& v],
|
[const semantic_type& v],
|
||||||
b4_locations_if([const location_type& l]))[)
|
b4_locations_if([const location_type& l]))[)
|
||||||
: Base (t)
|
: Base (t)
|
||||||
@@ -284,7 +284,7 @@ m4_define([b4_public_types_define],
|
|||||||
template <typename Base>
|
template <typename Base>
|
||||||
inline
|
inline
|
||||||
]b4_parser_class_name[::basic_symbol<Base>::basic_symbol (]b4_join(
|
]b4_parser_class_name[::basic_symbol<Base>::basic_symbol (]b4_join(
|
||||||
[typename Base::value_type t],
|
[typename Base::kind_type t],
|
||||||
b4_locations_if([const location_type& l]))[)
|
b4_locations_if([const location_type& l]))[)
|
||||||
: Base (t)
|
: Base (t)
|
||||||
, value ()]b4_locations_if([
|
, value ()]b4_locations_if([
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ b4_location_define])])[
|
|||||||
int type_get () const;
|
int type_get () const;
|
||||||
|
|
||||||
/// The type used to store the symbol type.
|
/// The type used to store the symbol type.
|
||||||
typedef state_type value_type;
|
typedef state_type kind_type;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// "Internal" symbol: element of the stack.
|
/// "Internal" symbol: element of the stack.
|
||||||
|
|||||||
Reference in New Issue
Block a user