What are the standard grammar parsers for iOS?

Does iOS for iPad and iPhone support parser support? In particular, is there lex / yacc or flex / bison for iOS development? Does xcode4 have a natively supported library? (I could generate my grammar via lex / yacc and then take the * .c files and put them in my project, but I was hoping for more closely supported libraries.)

Any ideas?

+2
source share
1 answer

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

+5
source

All Articles