diff options
author | Mark Hymers <markh@linuxfromscratch.org> | 2002-02-06 23:15:46 +0000 |
---|---|---|
committer | Mark Hymers <markh@linuxfromscratch.org> | 2002-02-06 23:15:46 +0000 |
commit | bdc08c1c6419be50edb433c4425481bdabf8a5ea (patch) | |
tree | b93620a39c60088e399ecfd4cfb667a62ea0ec21 /appendixa/bison-desc.xml | |
parent | 76c0b783eeb766c0dec8e66dab2e6c275ba0786d (diff) |
[Bug 190] reorganise and sync descriptions
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1549 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'appendixa/bison-desc.xml')
-rw-r--r-- | appendixa/bison-desc.xml | 32 |
1 files changed, 20 insertions, 12 deletions
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 @@ <sect2> -<title>Contents</title> +<title>Contents of bison-&bison-contversion;</title> -<para>The Bison package contains the bison program.</para> +<sect3><title>Program Files</title> -</sect2> +<para>bison and yacc</para></sect3> + +<sect3><title>Descriptions</title> -<sect2><title>Description</title> +<sect4><title>bison</title> <para>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.</para> - -<para>There are a lot of examples where structure is needed and one of them is -the calculator.</para> +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.</para> <para>Given the string :</para> @@ -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.</para> +answer. Of course, Bison isn't only used for calculators +alone.</para></sect4> + +<sect4><title>yacc</title> + +<para>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.</para></sect4> + +</sect3> </sect2> |