Yacc

From eplmediawiki
Revision as of 16:00, 25 November 2012 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Yacc: Yet Another Compiler-Compiler

Computer program input generally has some structure; in fact, every computer program that does input can be thought of as defining an "input language" which it accepts.

An input language may be as complex as a programming language, or as simple as a sequence of numbers. Unfortunately, usual input facilities are limited, difficult to use, and often are lax about checking their inputs for validity.

Yacc provides a general tool for describing the input to a computer program. The Yacc user specifies the structures of his input, together with code to be invoked as each such structure is recognized. Yacc turns such a specification into a subroutine that handles the input process; frequently, it is convenient and appropriate to have most of the flow of control in the user's application handled by this subroutine.

Manual

Link

Original Page

Link

Examples

[http://epl.di.uminho.pt/~gepl/LP/Lavanda_LexYacc.w%7C Lavanda.w
[http://epl.di.uminho.pt/~gepl/LP/Lavanda_LexYacc.pdf%7C Lavanda.pdf

Personal tools
Namespaces

Variants
Actions
Navigation
extras
Toolbox