Debian Codegraph @

production/standard.cc

raw
1 #include "production.ih"
2
3 std::ostream &Production::standard(std::ostream &out) const
4 {
5 out << d_nr << ": " << lhs();
6
7 if (d_precedence != 0)
8 out << " (" << d_precedence << ')';
9
10 out << " -> ";
11
12 if (size() == 0)
13 out << " <empty>";
14 else
15 {
16 for (const_iterator sym = begin(); sym != end(); ++sym)
17 out << ' ' << *sym;
18 }
19
20 return out;
21 }