X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=parser.y;h=ad68377a79770ad4c4403dd80e29bffc68d682d6;hp=4986208f21e49416cfd242be2bd7c704cfafe5ad;hb=HEAD;hpb=3b5127c16ba3a527c42b99da53a2db2dfa36f62e diff --git a/parser.y b/parser.y index 4986208..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,11 @@ 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();