Analitza
Overview | Getting Started | Tutorials | Examples and Showcases
A simple parser demo
If you want to evaluate a simple math expression like sin(pi/6)+3, first you need to create the Expression that encapsules the string value and then you can use Analyzer to get the result:
You can also use Expression to make some queries, for example, in regards to the data type of the expression, the next code prints 0 (false):
Some advanced parsing features
Lets create a variable k = 2.1 and a function f(x) = sin(x) + k. We will calculate values for a lambda expression (our f(x) function) and get the derivative of f(x) (wich is a lambda expression too: d(f(x))=f'(x)):
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.