Beispiel #1
0
int main ()
{
	SyntaxTree * treeS = new ( nothrow ) SyntaxTree ();
	treeS->parse();
	treeS->print();
	cout << endl;
	
	delete treeS;
	return 0;
}
Beispiel #2
0
void
prtPatSet(PatSet *p, ostream &os, unsigned indent) {
  if (p != NULL) {
	PatSet::iterator pi;
	for (pi = p->begin(); pi != p->end(); pi++) {
	  SyntaxTree *st = *pi;
	  if (st != NULL) {
		os << endl;
		st->print(os, 0, 1000000, 50, indent+2);
		os << endl;
	  }
	}
  }
}