KDevelop-PG bug when printing First/Follow conflicts
Alexander Dymo
dymo at ukrpost.ua
Fri Jul 20 23:11:23 UTC 2007
Ok, here's the patch. The only problem is that it breaks for ruby.g so
please don't commit it.
Index: kdev-pg/kdev-pg-follow.cpp
===================================================================
--- kdev-pg/kdev-pg-follow.cpp (revision 690051)
+++ kdev-pg/kdev-pg-follow.cpp (working copy)
@@ -228,6 +228,13 @@
void next_FOLLOW::add_follow_to_follow_dep(model::node *dest, model::node *dep)
{
+ if (dest->kind == model::node_kind_nonterminal)
+ {
+ model::symbol_item *s =
node_cast<model::nonterminal_item*>(dest)->_M_symbol;
+ if (s)
+ _G_system.FOLLOW_DEP(s).second.insert(dep);
+ }
+ else
_G_system.FOLLOW_DEP(dest).second.insert(dep);
#ifdef FOLLOW_DEP_DEBUG
debug_follow_to_follow_dep(dest, dep);
More information about the KDevelop-devel
mailing list