These are some points about YACC:
Input: A CFG- file.y
Output: A parser y.tab.c (yacc)
The basic operational sequence is as follows:
This file contains the desired grammar in YACC format.
It shows the YACC program.
It is the c source program created by YACC.
Executable file that will parse grammar given in gram.Y