From 70fc6ba8d2753492b2d4726f2718a2724bbf399a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 9 Apr 2015 19:44:01 +0200 Subject: generator: fix add_reduction() argument name --- src/generator_lr0.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/generator_lr0.cpp') diff --git a/src/generator_lr0.cpp b/src/generator_lr0.cpp index 024f5fa..a01e2d7 100644 --- a/src/generator_lr0.cpp +++ b/src/generator_lr0.cpp @@ -34,7 +34,7 @@ bool generator_lr0_t::has_reduce_conflict(size_t from, const symbol_t &sym) { return reductions.count(from); } -void generator_lr0_t::add_reduction(size_t from, size_t to) { +void generator_lr0_t::add_reduction(size_t from, size_t rule) { if (reductions.count(from)) throw conflict_error("reduce/reduce conflict"); @@ -43,7 +43,7 @@ void generator_lr0_t::add_reduction(size_t from, size_t to) { throw conflict_error("shift/reduce conflict"); } - reductions.insert(std::make_pair(from, to)); + reductions.insert(std::make_pair(from, rule)); } } -- cgit v1.2.3