@@ -1108,29 +1108,36 @@ class te_parser
1108
1108
[[nodiscard]]
1109
1109
te_expr* list (state* theState);
1110
1110
1111
- std::string m_expression;
1112
- te_expr* m_compiledExpression{ nullptr };
1113
-
1114
- std::set<te_variable>::const_iterator m_currentVar;
1115
- bool m_varFound{ false };
1116
- #ifndef TE_NO_BOOKKEEPING
1117
- std::set<te_variable::name_type, te_string_less> m_usedFunctions;
1118
- std::set<te_variable::name_type, te_string_less> m_usedVars;
1119
- #endif
1120
-
1111
+ // built-in functions
1121
1112
static const std::set<te_variable> m_functions;
1113
+
1114
+ // customizable settings
1122
1115
std::set<te_variable> m_customFuncsAndVars;
1123
1116
1124
1117
te_usr_variant_type m_unknownSymbolResolve{ te_usr_noop{} };
1125
- std::set<te_variable::name_type> m_resolvedVariables;
1118
+
1126
1119
bool m_keepResolvedVarialbes{ true };
1127
1120
1121
+ char m_decimalSeparator{ ' .' };
1122
+ char m_listSeparator{ ' ,' };
1123
+
1124
+ // state information
1125
+ std::string m_expression;
1126
+ te_expr* m_compiledExpression{ nullptr };
1127
+
1128
1128
bool m_parseSuccess{ false };
1129
1129
int64_t m_errorPos{ 0 };
1130
1130
std::string m_lastErrorMessage;
1131
1131
te_type m_result{ te_nan };
1132
- char m_decimalSeparator{ ' .' };
1133
- char m_listSeparator{ ' ,' };
1132
+
1133
+ std::set<te_variable::name_type> m_resolvedVariables;
1134
+
1135
+ std::set<te_variable>::const_iterator m_currentVar;
1136
+ bool m_varFound{ false };
1137
+ #ifndef TE_NO_BOOKKEEPING
1138
+ std::set<te_variable::name_type, te_string_less> m_usedFunctions;
1139
+ std::set<te_variable::name_type, te_string_less> m_usedVars;
1140
+ #endif
1134
1141
};
1135
1142
1136
1143
#endif // __TINYEXPR_PLUS_PLUS_H__
0 commit comments