6.30. Bison-2.7

The Bison package contains a parser generator.

Приблизительное время сборки: 1.3 SBU
Требует свободного места на диске: 34 MB

6.30.1. Установка Bison

Подготовим Bison к компиляции:

./configure --prefix=/usr

The configure system causes Bison to be built without support for internationalization of error messages if a bison program is not already in $PATH. The following addition will correct this:

echo '#define YYENABLE_NLS 1' >> lib/config.h

Cкомпилируем пакет:

make

To test the results (about 0.5 SBU), issue:

make check

Установим пакет:

make install

6.30.2. Содержимое Bison

Установленные программы: bison and yacc
Установленная библиотека: liby.a
Установленный каталог: /usr/share/bison

Краткое описание

bison

Generates, from a series of rules, a program for analyzing the structure of text files; Bison is a replacement for Yacc (Yet Another Compiler Compiler)

yacc

A wrapper for bison, meant for programs that still call yacc instead of bison; it calls bison with the -y option

liby.a

The Yacc library containing implementations of Yacc-compatible yyerror and main functions; this library is normally not very useful, but POSIX requires it