(redirected from Yacc)
Also found in: Dictionary, Thesaurus, Acronyms, Encyclopedia, Wikipedia.


[Latin, Law.] In medieval Jurisprudence ,a body or collection of various laws peculiar to a given nation or people; not a code in the modern sense, but an aggregation or collection of laws not codified or systematized. Also, a similar collection of laws relating to a general subject, and not peculiar to any one people.

In modern U.S. and English jurisprudence this term signifies a system or body of laws, written or unwritten, applicable to a particular case or question regarded as local or unique to a particular state, country, or jurisdiction.

West's Encyclopedia of American Law, edition 2. Copyright 2008 The Gale Group, Inc. All rights reserved.


a system or body of laws or a particular specified law.
Collins Dictionary of Law © W.J. Stewart, 2006

LEX. The law. A law for the government of mankind in society. Among the ancient Romans, this word was frequently used as synonymous with right, jus. When put absolutely, lex meant the Law of the Twelve Tables.

A Law Dictionary, Adapted to the Constitution and Laws of the United States. By John Bouvier. Published 1856.
References in periodicals archive ?
In the continuation-based parser, the Yacc method is fairly straightforward to implement.
input) (cond ((find-eoi-lookahead-item next-accept-items) => reduce-recover) (else (error "parse error: premature end of input")))) ((maybe-the-member (car (stream-car input)) (next-terminals next-closure grammar)) => (lambda (symbol) (recover (cdr (stream-car input)) input))) ((find-lookahead-item next-accept-items k input) => reduce-recover) (else (loop (stream-cdr input))))))) Thus, Yacc-style error recovery fits our parser model very naturally, and calling the error continuation directly is certainly more efficient than scanning the stack explicitly, as Yacc needs to do.
In contrast to the simple model of Yacc, the sophisticated method of Rohrich [1980] allows for (almost) fully automatic error recovery.
Our approach in developing New Yacc was to identify a notation that is as easy to use as traditional yacc-like context-free grammars (CFGs) but one that would also give us enough translational power to deal with context sensitive problems.
Productions not only have semantic actions as allowed in yacc (in the form of C source code) but also have rule translations.
NewYacc rule translations are contained in the square brackets (the usual yacc actions, if there were any, would still be given as C source code within braces).
Grammar symbols are described just as in normal yacc productions, where a key symbol (here # instead of symbol $) followed by an integer i identifies the ith term of the production.
This list gives the desired target pattern in terms of the yacc source production.