[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Parser library?
From:       Josef Weidendorfer <Josef.Weidendorfer () gmx ! de>
Date:       2003-07-29 9:34:40
[Download RAW message or body]

On Tuesday 29 July 2003 03:02, Michael Pyne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'm trying to make a KDE-based graphing calculator as sort of an
> introductory project, but I would really, really like to avoid crafting a
> parser for it.
>
> So, does anybody know of any good open-source or public-domain libraries
> which would be useful for parsing mathematical equations?

yacc/bison should be just fine. There are quite a few tools for building 
compilers available, like http://www.antlr.org/ or look for a summary at
http://www.thefreecountry.com/programming/compilerconstruction.shtml.
Usage with KDE CVS apps should be no problem as the generated C/C++ can be put 
into CVS (That's an exception of the rule: No autogenerated files!).

Personally I would prefer the Spirit C++ Parser from the Boost library, as 
this doesn't need any preprocessor, but uses the C++ compiler for parser 
generation; you write your grammar directly in C++. Unfortunately,
KDE supports compiler which seem to not be able to compile with Boost.

Josef


>
> Thanks in advance for any pointers.
>
>  - Michael Pyne
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
>
> iD8DBQE/JceYqjQYp5Omm0oRAmxQAKC2x1xhKK67lX04M4hyHlkkpOh9FQCg0Pu6
> k8dOk30hJEMieX2MQden00c=
> =PsAn
> -----END PGP SIGNATURE-----
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic