Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Lex/Yacc Scientific Calculator

535 views
Skip to first unread message

Frank Groen

unread,
Feb 27, 1997, 3:00:00 AM2/27/97
to

Hi,

I'm looking for Lex/Yacc sources for a calculator application.The
calculator is supposed to be used for scientific purposes. More
precisely, I'm looking for something that can handle

basic algebraic expressions (log, exp, power, sin, cos, ...)
boolean expressions (AND, OR, NOT, XOR)
matrix/vector operations (inner/outer products, determinants, ...)

less important:
a few conditional statements (if ... then ... else ..., while)

Additionally, it should be able to work with variables, i.e. whenever
an unrecognized token is encountered, an external function should be
called to determine a value for that token.

If you know about the existence of such a thing (PD or commercial),
please send me a msg: fgr...@glue.umd.edu

Thank you,

Frank

Jussi Jumppanen

unread,
Mar 1, 1997, 3:00:00 AM3/1/97
to

Frank Groen (fgr...@glue.umd.edu) wrote:
> I'm looking for Lex/Yacc sources for a calculator application.The
> calculator is supposed to be used for scientific purposes. More
> precisely, I'm looking for something that can handle
>
> basic algebraic expressions (log, exp, power, sin, cos, ...)
> boolean expressions (AND, OR, NOT, XOR)
> matrix/vector operations (inner/outer products, determinants, ...)
>
> less important:
> a few conditional statements (if ... then ... else ..., while)
>
> Additionally, it should be able to work with variables, i.e. whenever
> an unrecognized token is encountered, an external function should be
> called to determine a value for that token.
>

I wrote a small C intepreter using the the bison and flex++ lex and yacc
tools which could be easily modified to do this type of thing. If you need
more information goto my tools web page:

http://ourworld.compuserve.com/homepages/jussi/tTools.htm

This page contains a ZIP package that has the source code, grammar and
working EXE files of the C interpreter in question.

Jussi Jumppanen (mail to:jus...@ca.com.au)
Author of: Hardware Digital Logic Analyers for Windows
Zeus for Windows, Win32 (Brief, WordStar, Emacs) Text Editor
"The C/C++, Java, Pacal, Cobol, Fortran programmers text editor"
Home Page: http://ourworld.compuserve.com/homepages/jussi/


rajesh...@gmail.com

unread,
Sep 23, 2013, 6:32:56 AM9/23/13
to
web page http://ourworld.compuserve.com/homepages/jussi/ is giving error while opening. can u resend the link please

Öö Tiib

unread,
Sep 23, 2013, 7:58:06 AM9/23/13
to
You are replying to post from 1997, it may be the author does not read this
group actively. If you want to contact him then that Zeus for
Windows he mentions is at http://www.zeusedit.com/ Jussi seems to be
active at its forum http://www.zeusedit.com/zforum/index.php

Jorgen Grahn

unread,
Sep 23, 2013, 8:49:56 AM9/23/13
to
On Mon, 2013-09-23, rajesh...@gmail.com wrote:
> On Saturday, March 1, 1997 1:30:00 PM UTC+5:30, Jussi Jumppanen wrote:
^^^^
...
>> I wrote a small C intepreter using the the bison and flex++ lex and yacc
>> tools which could be easily modified to do this type of thing. If you need
>> more information goto my tools web page:
>>
>> http://ourworld.compuserve.com/homepages/jussi/tTools.htm

> web page http://ourworld.compuserve.com/homepages/jussi/ is giving
> error while opening. can u resend the link please

You're asking him to "resend" 16 years later!

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
0 new messages