user205688
user205688

Reputation: 165

how to call your yacc from a c file?

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

Answers (1)

edgar.holleis
edgar.holleis

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

Related Questions