Question: what is yy in lex?
Answer: Lex was meant to be used in concert with Yacc. ... The Yacc parser uses only names beginning in "yy' - there's no apparent meaning discussed beyond simply desiring a namespace. The "yy" in lex. yy. c indicates that the lex output is intended for a yacc parser.