|
Putting the Parser and Scanner TogetherNow, it's a really simple task to put the parser and scanner together and let them do their work.Here, we simply create an instance of out scanner and parser classes. int main(int argc, char** argv) { std::string file; getargs(argc, argv, file); if (argc > 1) return 0; simple_scanner s; simple_parser p(s);
And finally, we put the parser to work by invoking the return p.parse(0);
}
Christian Holm (home page) Last update Fri Jul 8 12:58:03 2005 Created by DoxyGen 1.4.3-20050530 |