add rudimentary flex/bison grammar, still isolated from main routines