Jump to content

Yacc: Difference between revisions

From EDM2
Reiknir moved page Yacc to Lex/YACC
 
Ak120 (talk | contribs)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Lex/YACC]]
'''Yacc''' (''Yet Another Compiler-Compiler'') is a Look-Ahead LR parser generator that takes Backus–Naur Form text files and generates LALR parsers from it. Primarily used as tool for generating front end parsers for compilers or formal validation for file formats in export filters and so on, so forth.
 
==History==
Originally developed by Stephen C. Johnson at AT&T in [[B]] and later rewritten in [[C]].
 
==Implementations==
;C
* Abraxas Software [[PCYACC]]/2
* Berkeley Yacc - LALR parser generator
* Compiler Ressources Yacc++
* GNU bison
 
;Other programming languages
*ML-Yacc - for the Standard ML
*CL-Yacc - for Common Lisp
*PLY - for Python
 
;Programmer's utilities
* [[Exuberant ctags]] - Creates index files out of YACC source files - Open source
 
==See also==
* [[lex]] - lexical analyser
 
==Links==
* Stephen C. Johnson: ''[http://dinosaur.compilertools.net/yacc/ Yacc: Yet Another Compiler-Compiler]''
* [http://byaccj.sourceforge.net/ BYACC/J]
 
[[Category:Parser generator]]

Latest revision as of 17:41, 3 July 2022

Yacc (Yet Another Compiler-Compiler) is a Look-Ahead LR parser generator that takes Backus–Naur Form text files and generates LALR parsers from it. Primarily used as tool for generating front end parsers for compilers or formal validation for file formats in export filters and so on, so forth.

History

Originally developed by Stephen C. Johnson at AT&T in B and later rewritten in C.

Implementations

C
  • Abraxas Software PCYACC/2
  • Berkeley Yacc - LALR parser generator
  • Compiler Ressources Yacc++
  • GNU bison
Other programming languages
  • ML-Yacc - for the Standard ML
  • CL-Yacc - for Common Lisp
  • PLY - for Python
Programmer's utilities
  • Exuberant ctags - Creates index files out of YACC source files - Open source

See also

  • lex - lexical analyser

Links