From f049d5d94c4a5c7e2bb260f1f7268c48fef91e9b Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 8 Mar 2017 21:06:30 -0800 Subject: [PATCH] Make ParseItem a struct, not a class --- spec/helpers/stream_methods.h | 4 ++-- src/compiler/build_tables/parse_item.h | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) 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 &);