Recent

Author Topic: New package to evaluate Pascal-expressions  (Read 337 times)

Loesje

  • Full Member
  • ***
  • Posts: 165
    • Lazarus Support website
New package to evaluate Pascal-expressions
« on: October 28, 2020, 11:51:39 pm »
Working on fpDebug, I've got onto a side-track and created an 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.

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8901
  • FPC developer.
Re: New package to evaluate Pascal-expressions
« Reply #1 on: October 29, 2020, 02:46:44 pm »
And then there were three ?

Loesje

  • Full Member
  • ***
  • Posts: 165
    • Lazarus Support website
Re: New package to evaluate Pascal-expressions
« Reply #2 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