* * *

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

lainz

  • Hero Member
  • *****
  • Posts: 1865
  • Nace una flor, todos los días sale el sol...
    • BGRABitmap
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

  • Sr. Member
  • ****
  • Posts: 449
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 »
CodeTyphon 5.8, FPC 3.1.1, Emulators = Radio Shack TRS-80, basic, Pascal 80 , Misosys C pro, Turbo Pascal from version 2 to 5 on amtrad cpc6128 CP/M also a bunch of C compilers. Pascal, C, C++ all versions windows/linux. also assembler from Zilog Z-80 to Pentium MMX


marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5453
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: 11
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

  • Full Member
  • ***
  • Posts: 214
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: 11
Re: New FreePascal Language feature
« Reply #21 on: January 18, 2017, 10:20:33 pm »
True, now I see. :-)

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus