diff --git a/spec/helpers/stream_methods.h b/spec/helpers/stream_methods.h index e6920818..149e43c5 100644 --- a/spec/helpers/stream_methods.h +++ b/spec/helpers/stream_methods.h @@ -121,8 +121,8 @@ namespace build_tables { class LexItem; class LexItemSet; -class ParseItem; -class ParseItemSet; +struct ParseItem; +struct ParseItemSet; class LookaheadSet; ostream &operator<<(ostream &, const LexItem &); diff --git a/src/compiler/build_tables/parse_item.h b/src/compiler/build_tables/parse_item.h index a3785638..fc3f0129 100644 --- a/src/compiler/build_tables/parse_item.h +++ b/src/compiler/build_tables/parse_item.h @@ -12,8 +12,7 @@ namespace tree_sitter { namespace build_tables { -class ParseItem { - public: +struct ParseItem { ParseItem(); ParseItem(const rules::Symbol &, const Production &, unsigned int); @@ -36,8 +35,7 @@ class ParseItem { unsigned int step_index; }; -class ParseItemSet { - public: +struct ParseItemSet { ParseItemSet(); explicit ParseItemSet(const std::map &);