Recent

Author Topic: New FreePascal Language feature  (Read 9784 times)

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: New FreePascal Language feature
« Reply #15 on: January 11, 2017, 01:50:37 pm »
No problem. I understand.

Thanks, you're always a step forward. That's good to not let the mistakes pass.

sam707

  • Guest
Re: New FreePascal Language feature
« Reply #16 on: January 11, 2017, 11:14:57 pm »
@PsaCrypt

Marcov and howardpc gave you pretty good solutions around what you are looking for.

You can also have a look to an existing Expressions evaluator that is embeded in FreePascal :

http://wiki.freepascal.org/How_To_Use_TFPExpressionParser

it might help
Cheers
« Last Edit: January 11, 2017, 11:16:49 pm by sam707 »

bylaardt

  • Sr. Member
  • ****
  • Posts: 309

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: New FreePascal Language feature
« Reply #18 on: January 13, 2017, 10:31:20 am »
@PsaCrypt

Marcov and howardpc gave you pretty good solutions around what you are looking for.

You can also have a look to an existing Expressions evaluator that is embeded in FreePascal :

The example that I gave is embedded in FPC.

PsaCrypt

  • New Member
  • *
  • Posts: 21
Re: New FreePascal Language feature
« Reply #19 on: January 18, 2017, 08:41:24 pm »
Sam707, now I see parser.  Sounds good but need to build new one more complex.  XBase macros are not limited to base math functions like sin(), cos() ....  With xBase macros you can use any function into the expression, including your owned functions.  All this using it as natural way, only need few code for possible errors.  Possibly you understand now what I want to make.  :-)

Bylaardt, your link returns to forum index.

Need to take time to see and try all source code, and think how to planning implementing this in FreePascal.  Time that don't have because am searching for work.  But ... with time ... :-)

bylaardt

  • Sr. Member
  • ****
  • Posts: 309
Re: New FreePascal Language feature
« Reply #20 on: January 18, 2017, 08:52:06 pm »
Bylaardt, your link returns to forum index.
you must login first

PsaCrypt

  • New Member
  • *
  • Posts: 21
Re: New FreePascal Language feature
« Reply #21 on: January 18, 2017, 10:20:33 pm »
True, now I see. :-)

 

TinyPortal © 2005-2018