翻訳と辞書
Words near each other
・ Yabuth District
・ Yabutian languages
・ Yabuzuka Station
・ Yabuzukahon, Gunma
・ Yabūchi
・ YAC
・ Yacabé
・ Yacaira Tejeda
・ Yacal
・ Yacamán
・ Yacaranday
・ Yacare caiman
・ Yacarerani
・ Yacas
・ Yacatecuhtli
Yacc
・ Yaccarino
・ Yace language
・ Yacef
・ Yachad (NGO)
・ Yachad (political party)
・ Yachakan
・ Yacharam
・ Yachats Ocean Road State Natural Site
・ Yachats River
・ Yachats State Recreation Area
・ Yachats, Oregon
・ Yachay
・ Yachay University
・ Yachenahalli


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Yacc : ウィキペディア英語版
Yacc
Yacc is a computer program for the Unix operating system. It is a LALR parser generator, generating a parser, the part of a compiler that tries to make syntactic sense of the source code, specifically a LALR parser, based on an analytic grammar written in a notation similar to BNF. Yacc itself used to be available as the default parser generator on most Unix systems, though it has since been supplanted as the default by more recent, largely compatible, programs.
==Description==

YACC is an acronym for "Yet Another Compiler Compiler". It is a LALR parser generator, generating a parser, the part of a compiler that tries to make syntactic sense of the source code, specifically a LALR parser, based on an analytic grammar written in a notation similar to BNF.〔(【引用サイトリンク】publisher=Computerworld )〕 It was originally developed in the early 1970s by Stephen C. Johnson at AT&T Corporation and written in the B programming language, but soon rewritten in C. It appeared as part of Version 3 Unix, and a full description of Yacc was published in 1975.
The input to Yacc is a grammar with snippets of C code (called "actions") attached to its rules. Its output is a shift-reduce parser in C that executes the C snippets associated with each rule as soon as the rule is recognized. Typical actions involve the construction of parse trees. Using an example from Johnson, if the call constructs a binary parse tree node with the specified and children, then the rule

expr : expr '+' expr

recognizes summation expressions and constructs nodes for them. The special identifiers , and refer to items on the parser's stack.
Yacc and similar programs (largely reimplementations) have been very popular. Yacc itself used to be available as the default parser generator on most Unix systems, though 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 and syntax have remained the same. Yacc has also been rewritten for other languages, including OCaml,〔(【引用サイトリンク】url=http://caml.inria.fr/pub/docs/manual-ocaml-4.00/manual026.html )Ratfor, ML, Ada, Pascal, Java, Python, Ruby, Go〔(【引用サイトリンク】url=http://golang.org/cmd/yacc/ )〕 and Common Lisp.
Yacc produces only a parser (phrase analyzer); for full syntactic analysis this requires an external lexical analyzer to perform the first tokenization stage (word analysis), which is then followed by the parsing stage proper.〔 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.〔, .〕
Some versions of AT&T Yacc have become open source. For example, source code (for different implementations) is available with the standard distributions of Plan 9 and OpenSolaris.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Yacc」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.