X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=parser.y;h=ad68377a79770ad4c4403dd80e29bffc68d682d6;hb=e68f7a74e8f83d4b619049cf0e67f7de5e03cf82;hp=1fec19db31f6f6704f3f1564e185c34ae6679542;hpb=fdcf46671ca1dab0dadb490bb4375dc3dd2fc9a4;p=popboot.git diff --git a/parser.y b/parser.y index 1fec19d..ad68377 100644 --- a/parser.y +++ b/parser.y @@ -13,6 +13,7 @@ using namespace std; + int yyparse(void); int yylex (void); void yyerror (char const *); @@ -64,7 +65,7 @@ action : id preconds '\n' exec effects '\n' { //--------------------------------------------- // Debug test print : - cerr << "id: " << *$1 << endl; +/* cerr << "id: " << *$1 << endl; // Precondition flags: cerr << "a: " << (*$2)["a"] << endl; @@ -81,7 +82,7 @@ action : id preconds '\n' exec effects '\n' { cerr << "88: " << (*$5)[88].size() << endl; cerr << endl; - //---------------------------------------------- +*/ //---------------------------------------------- } ; @@ -248,11 +249,14 @@ main (int argc, char** argv) yyparse(); - cerr << (*runlevels)[2].size() << endl; +/* cerr << (*runlevels)[2].size() << endl; cerr << (*runlevels)[3].size() << endl; cerr << (*runlevels)[4].size() << endl; cerr << (*runlevels)[5].size() << endl; - +*/ Planner p(*actions, init, (*runlevels)[atoi(argv[2])]); p.execute(); + + delete actions; + delete runlevels; }