Lazarus

Programming => Packages and Libraries => Topic started by: Loesje on October 28, 2020, 11:51:39 pm

Title: New package to evaluate Pascal-expressions
Post by: Loesje on October 28, 2020, 11:51:39 pm
Working on fpDebug, I've got onto a side-track and created an expression-evaluator (http://lazarussupport.com/fpc-expression-evaluator/) based on fcl-passrc. So that you can evaluate Pascal-expressions at runtime. It can be used to build a calculator-like application, inside a debugger  :) or dynamic input validation. If you're interested, please have a look.
Title: Re: New package to evaluate Pascal-expressions
Post by: marcov on October 29, 2020, 02:46:44 pm
And then there were three ?
Title: Re: New package to evaluate Pascal-expressions
Post by: Loesje on October 29, 2020, 04:33:35 pm
Yes, annoying, isn't it? There are even many more...

But not based on fcl-passrc. And that's quite a complete Pascal-parser. This way the parsing and evaluation are separated. Should be easier to maintain. And it is written in such a way that you can use it as a plug-in into your own system.

But yes, not ideal. ;(
TinyPortal © 2005-2018