OpenCurves  0.9
plotparseprivate.h
1 #ifndef OCURVESSCANNER_H_
2 #define OCURVESSCANNER_H_
3 
4 #include "plotsconfig.h"
5 
6 // fwd decl for flex
7 typedef struct yy_buffer_state *YY_BUFFER_STATE;
8 YY_BUFFER_STATE ocurves_scan_string(const char *str);
9 YY_BUFFER_STATE ocurves_scan_bytes(const char *bytes, int len);
10 void ocurves_delete_buffer(YY_BUFFER_STATE);
11 
12 class PlotExpression;
14 
15 #include <QStringList>
16 #include <QVector>
17 
25 struct ParseState
26 {
29  QStringList errors;
30 };
31 
32 typedef QVector<PlotExpression *> ArgsList;
33 
38 void ocurveserror(ParseState *state, const QString &msg);
39 
40 #endif // OCURVESSCANNER_H_
41 
Used as the parsing state object for Bison, essentially forming the build tree.
Definition: plotparseprivate.h:25
void ocurveserror(ParseState *state, const QString &msg)
Add an error message to state.
PlotExpression * expression
The primary expression tree.
Definition: plotparseprivate.h:27
A PlotFunctionRegister stores function implementations to expose to the plot expression generator...
Definition: plotfunctionregister.h:26
const PlotFunctionRegister * funcs
User functions.
Definition: plotparseprivate.h:28
QStringList errors
Error report.
Definition: plotparseprivate.h:29
A PlotExpression represents an operation in a plot equation.
Definition: plotexpression.h:91