1 // vim: set expandtab tabstop=4 shiftwidth=4:
3 #include "libbife/chit.h"
12 int main(int argc, char* argv[]) {
20 cout << "Parser example:" << endl;
21 cout << "===============" << endl;
23 Parser parser("translate.translate");
24 parser.parse_file(file);
25 // Text is returned in utf-8 encoding.
26 cout << parser.root->render(tpl) << endl;
27 } catch (exception e) {
28 cerr << "Error: " << e.what() << endl;
31 cerr << "Error: " << e << endl;
33 } catch (const char* e) {
34 cerr << "Error: " << e << endl;
37 cerr << "Unknown error!!!" << endl;