Game Develop Core: gd::ExpressionParser Class Reference

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- Class List
- Class Index
- Class Hierarchy

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
gd::ExpressionParser Class Reference

Parse an expression. More...

`#include <ExpressionParser.h>`

## Public Member Functions

| ExpressionParser (const std::string &expressionPlainString_)
bool | ParseMathExpression (const gd::Platform &platform, const gd::Project &project, const gd::Layout &layout, gd::ParserCallbacks &callbacks)
bool | ParseStringExpression (const gd::Platform &platform, const gd::Project &project, const gd::Layout &layout, gd::ParserCallbacks &callbacks)

## Public Attributes

std::string | firstErrorStr
size_t | firstErrorPos

## Detailed Description

Parse an expression.

Parse an expression, calling callbacks when a token is reached

See Also
  gd::ParserCallbacks

## Member Function Documentation

bool gd::ExpressionParser::ParseMathExpression | ( | const gd::Platform & | platform,
|  | const gd::Project & | project,
|  | const gd::Layout & | layout,
|  | gd::ParserCallbacks & | callbacks
| ) |  |

Parse the expression, calling each functor when necessary

Returns
  True if expression was correctly parsed.

bool gd::ExpressionParser::ParseStringExpression | ( | const gd::Platform & | platform,
|  | const gd::Project & | project,
|  | const gd::Layout & | layout,
|  | gd::ParserCallbacks & | callbacks
| ) |  |

Parse the expression, calling each functor when necessary

Returns
  True if expression was correctly parsed.

The documentation for this class was generated from the following files:

- ExpressionParser.h
- ExpressionParser.cpp