Click here to Skip to main content
15,889,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
lex b2.l
yacc -d -v b2.y
gcc lex.yy.c y.tab.c

What I have tried:

Can someone plzz tell about the same
Posted
Updated 20-Oct-16 7:48am
v2
Comments
Wendelius 20-Oct-16 13:35pm    
Are you using Bison?
Member 12800975 20-Oct-16 13:43pm    
yes
[no name] 20-Oct-16 13:48pm    
The answer is just a google search away, http://www.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds6/yacc.htm

1 solution

Since you're using Bison, have a look at Bison 3.0.4: Bison Options[^]
Quote:
-d
This is the same as --defines except -d does not accept a file argument since POSIX Yacc requires that -d can be bundled with other short options.

Quote:
-v
--verbose
Pretend that %verbose was specified, i.e., write an extra output file containing verbose descriptions of the grammar and parser. See Decl Summary.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900