home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!bu.edu!nntp-read!nagendra
- From: nagendra@csa.bu.edu (nagendra mishr)
- Newsgroups: comp.sys.apple2
- Subject: Re: What is Bison?
- Message-ID: <NAGENDRA.92Nov7162240@csa.bu.edu>
- Date: 7 Nov 92 21:22:40 GMT
- References: <BxB6v4.7Ho@news.iastate.edu> <bazyar.721095512@teal>
- Sender: news@bu.edu
- Organization: Boston University Computer Science Department
- Lines: 35
- In-reply-to: bazyar@teal.csn.org's message of 7 Nov 92 00:18:32 GMT
-
-
- > >What exactly is Bison?
- >
- > Being an Indian, you ought to know, Amrit. 'Bison' is another term
- > for 'buffalo'.
- >
- > Ooops! You're Asian Indian. And you mean the _computer program_ Bison.
- > Oh.
- >
- > Bison is a parser generator.
-
- You're a geek Bazyar! :-)
-
- Bison is a replacement for yacc. (Yet Another Compiler Compiler) Yacc
- is used along with lex to generate programs which can parse syntax.
- For example, you can use these tools to generate a compiler. Or let's
- say you have a game which needs to understand simple sentences:
-
- ] pick up cow from table.
-
- You can use these tools to determine wether input is valid or with a
- little bit of work, to understand the sentence. (I use the term
- understand in a limited sense here).
-
- You basically use regular expressions with lex to recognize various
- tokens or words. Then you use bison to make sure that those tokens
- are in correct order by specifying those rules in BNF form. I think
- bison can use ll(1) grammars.
-
- It's actually a UNIX command, so you can type man bison in your UNIX
- box and that should give you a little more info.
-
- Nagendra
-
- nagendra@csa.bu.edu
-