Example #1
0
int main(int argc, char **argv)
{
    if (argc < 2){
		fprintf(stderr, "Usage: %s filename\n", argv[0]);
		exit(0);
    }

	SceneGraph	sceneGraph;

	bool lodingResult = sceneGraph.load(argv[1], false);

	if (lodingResult == true) {
		sceneGraph.print();
	}
	else {
		cout << "Error(" << sceneGraph.getParserErrorLineNumber() << ") : " << sceneGraph.getParserErrorLineString() << endl;
		cout << "\t" << sceneGraph.getParserErrorMessage() << endl;
		cout << "\t" << sceneGraph.getParserErrorToken() << endl;
	}

	return 0;
}