The computer program Yacc is a parser generator which was developed by Stephen C. Johnson at AT&T Corporation for the Unix operating system in 1970. The name is an acronym for "Yet Another Compiler Compiler". It generates a parser (the part of a compiler that tries to make syntactic sense of the source code) based on an analytic grammar written in a notation similar to BNF. Yacc used to be available as the default parser generator on most Unix systems. It has since been supplanted as the default by more recent, largely compatible, programs.
Program presented in seminar :
// Program to replace every occurance of "market" in input file by "school"
int main(int argc,char *argv)
yyin = fopen(argv,"r");