mod - general flow for parsing terminal symbols from input