From bdc08c1c6419be50edb433c4425481bdabf8a5ea Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 6 Feb 2002 23:15:46 +0000 Subject: [Bug 190] reorganise and sync descriptions git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1549 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- appendixa/bison-desc.xml | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'appendixa/bison-desc.xml') diff --git a/appendixa/bison-desc.xml b/appendixa/bison-desc.xml index 7f379cbfe..73932b658 100644 --- a/appendixa/bison-desc.xml +++ b/appendixa/bison-desc.xml @@ -1,22 +1,21 @@ -Contents +Contents of bison-&bison-contversion; -The Bison package contains the bison program. +Program Files - +bison and yacc + +Descriptions -Description +bison Bison is a parser generator, a replacement for YACC. YACC stands for Yet Another Compiler Compiler. What is Bison then? It is a program that -generates a program that analyzes the structure of a text file. Instead -of +generates a program that analyzes the structure of a text file. Instead of writing the actual program a user specifies how things should be connected -and with -those rules a program is constructed that analyzes the text file. - -There are a lot of examples where structure is needed and one of them is -the calculator. +and with those rules a program is constructed that analyzes the +text file. There are a lot of examples where structure is needed and +one of them is the calculator. Given the string : @@ -43,7 +42,16 @@ number 1 which are joined by the add symbol. Adding 1 to the previous result makes 7. In calculating the most complex calculations can be broken down in this tree format and the computer just starts at the bottom and works its way up to the top and comes with the correct -answer. Of course, Bison isn't only used for calculators alone. +answer. Of course, Bison isn't only used for calculators +alone. + +yacc + +We create a yacc script which calls bison using the -y option. +This is for compatibility purposes for programs which use yacc instead +of bison. + + -- cgit v1.2.3-54-g00ecf