// CS 509, Spring 2004
// Example solution for assignment 1.
#include <iostream>
#include <string>
#include <cstdlib>
#include "check.h"
int
main() {
// Check the xml doc in std-in for valid tag nesting, printing an error
// message if anything's amiss.
const std::string emsg = check_balanced_tags(std::cin);
if (!emsg.empty()) {
std::cerr << "! " << emsg << ".\n";
return EXIT_FAILURE;
}
}
// $Log: main.cc,v $
// Revision 1.1 2004/01/25 23:15:16 rclayton
// Initial revision
//
syntax highlighted by Code2HTML, v. 0.9