lex, yacc, flex and bison all have tools for Mac / iOS developers. Xcode has built-in rules for processing .l files with flex and .y files with bison, and it automatically compiles the generated .c files with your project. If you use the extensions .lm or .ym, it will generate .m files, allowing you to use actions written in Objective-C.
An example using the example is available at
https://github.com/dgkris/ObjectiveC-STL-Parser/tree/master/STLParser
source share