Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Software-Projekte der Mitglieder (https://www.delphipraxis.net/26-software-projekte-der-mitglieder/)
-   -   NewMathParser (https://www.delphipraxis.net/190040-newmathparser.html)

Jens01 23. Aug 2016 22:19


NewMathParser
 
Mathparser

MPL-Lizenz
Umgekehrte polnische Notation
schneller als Parser10
mit Unittesting!
32/64-bit mit XE7 und neuer

Delphi-Quellcode:
var
 MP : TMathParser;
 Error: TError;
begin
 MP := TMathParser.Create;
 try
   MP.Expression := '((4+5)6)7 + Min(3, 4, 5)';
   Error := MP.GetLastError;
   if Error.IsNoError then
     ShowMessage(MP.ParserResult.ToString)
   else
     ShowMessage(Error.ToString);
 finally
  MP.Free;
 end;
end;
Download: NewMathparser unter Github
kleines Wiki


Inspiriert von cyMathparser aus Cindy Components

Jens01 10. Sep 2016 14:22

AW: NewMathParser
 
Wiki und Beschreibung erweitert und kleine Änderung


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:38 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz