> > %type course_plot { std::vector<unsigned long>* } > > > > course_plot(V) ::= COURSE_PLOT_BEG course_plot_sector(A) . > > { > > > The issue is more what V is when the vector isn't created. > > > Igmar
lemon is not going to initialize anything for you. You need to design your parser such that you can control the creation and deletion of your own objects. *** untested pseudo-c code *** %type assigments { struct llist *} main ::= zero_or_more_statments. zero_or_more_statements ::= . zero_or_more_statements ::= zero_or_more_statements one_statement. one_statement ::= assignments(L). { dostuff(*L); free(L); } assignments(A) ::= ASSIGNMENT_BEGIN assignment(B). { A = malloc(...); A->add(B); } assignments(A) ::= assignments(L) assignment(B). { A = L; A->add(B); } RW Ron Wilson, Engineering Project Lead (o) 434.455.6453, (m) 434.851.1612, www.harris.com HARRIS CORPORATION | RF Communications Division assuredcommunications(tm) _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users