AMG: ylex is a companion package to yeti, and it is included in the yeti distribution. The purpose of ylex is to convert input text to a stream of tokens directly readable by yeti.
See Lexing C, XDR, and Parsing C Types for usage examples.