lex and yacc snippets