From Seo Wiki - Search Engine Optimization and Programming Languages
The computer program yacc is a parser generator developed by Stephen C. Johnson at AT&T for the Unix operating system. 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 generates the code for the parser in the C programming language.
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 such as Berkeley Yacc, GNU bison, MKS yacc and Abraxas pcyacc. An updated version of the original AT&T version is included as part of Sun's OpenSolaris project. Each offers slight improvements and additional features over the original yacc, but the concept has remained the same. Yacc has also been rewritten for other languages, including Ratfor, EFL, ML, Ada, Pascal, Java, Limbo, and Common Lisp.
The parser generated by yacc requires a lexical analyzer. Lexical analyzer generators, such as Lex or Flex are widely available. The IEEE POSIX P1003.2 standard defines the functionality and requirements for both Lex and Yacc.
- LALR parser: The underlying parsing algorithm in Yacc.
- Bison: The GNU version of Yacc.
- Lex (and Flex lexical analyser), the token parser commonly used in conjunction with yacc (and Bison).
- BNF, is a metasyntax used to express context-free grammar: that is, a formal way to describe formal languages.
- Stephen C. Johnson. YACC: Yet Another Compiler-Compiler. Unix Programmer's Manual Vol 2b, 1979.
- Computerworld Interview with Stephen C. Johnson on YACC
- ML-Yacc a yacc version for the Standard ML language.
- CL-Yacc, a LALR(1)parser generator for Common Lisp.
- PLY a yacc version for Python
- racc or LALR(1) Parser Generator (yacc for ruby)
- Yacc theorycs:Yacc