Reputation: 165
i want to parse a command line using a yacc but i want to call it from a c file. how it is possible ?
Upvotes: 1
Views: 456
Reputation: 4991
The code generated by YACC creates a function called yyparse()
. Simply call it.
See for example: http://dinosaur.compilertools.net/yacc/index.html (section 8).
Upvotes: 1