delorie.com/archives/browse.cgi | search |
From: | "Paul Cechner" <paul AT ibc DOT com DOT au DOT NOSPAM> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <90anr9$ji0$1 AT lacerta DOT tiscalinet DOT it> |
Subject: | Re: bison |
Lines: | 40 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2615.200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
Message-ID: | <N_fX5.75$UI4.4640@nsw.nnrp.telstra.net> |
Date: | Wed, 6 Dec 2000 08:44:28 +0800 |
NNTP-Posting-Host: | 203.24.93.65 |
X-Complaints-To: | abuse AT telstra DOT net |
X-Trace: | nsw.nnrp.telstra.net 976063533 203.24.93.65 (Wed, 06 Dec 2000 11:45:33 EST) |
NNTP-Posting-Date: | Wed, 06 Dec 2000 11:45:33 EST |
Organization: | Customer of Telstra Big Pond Direct |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
abacuc <f DOT onorati AT tiscalinet DOT it> wrote in message news:90anr9$ji0$1 AT lacerta DOT tiscalinet DOT it... > I read some info for bison and i realize a parser but it's a entire > program...i want to know if is it possible to realize a function parser > (e.g. a function that receive a string like input parameter like 2+3-4*12 > and return a double output) that i can use in a my project. Some of you > knows how to make this and where can i find some examples of this (not only > info bison)! > > thanks > > check out http://www.gnu.org/software/bison/bison.html for a download page, and get the manuals at www.gnu.org/manual/bison/index.html you will probably want flex as well... just search for it at www.gnu.org small description: flex is a tokeniser, retrieving tokens from some text stream based on a set of rules you compile into it. bison is a parser-generator that calls the generated flex code to retrieve tokens, and takes branches of action dependant upon the order of the tokens. these both replacements for the commonly used lex and yacc utilities. they are both programs, flex (replacement for lex) takes a rule file as input and generates (c or c++) code tokeniser. bison (replacement for yacc) takes this code and a different rules file to generate (c or c++) code parser. -- note: spam resistant email ---------------------- Paul Cechner
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |