Parses a rule program and produces an AST (RuleBasedProgramTree) and a corresponding CodeGenerationContext.
More...
#include <RuleBasedProgramParser.h>
Parses a rule program and produces an AST (RuleBasedProgramTree) and a corresponding CodeGenerationContext.
◆ RuleBasedProgramParser()
autopas::RuleSyntax::RuleBasedProgramParser::RuleBasedProgramParser |
( |
std::vector< std::pair< std::string, Define > > & |
initialDefinitions | ) |
|
|
inlineexplicit |
Creates a RuleBasedProgramParser with some predefined variables that can be used in the program.
- Parameters
-
initialDefinitions | The predefined variables that can be used in the program. Typically, this is live info. |
◆ parse()
Parses a rule based program given as a string.
- Parameters
-
programCode | The rule based program to parse. |
- Returns
- The AST and a corresponding CodeGenerationContext.
The documentation for this class was generated from the following files:
- autopas/tuning/tuningStrategy/ruleBasedTuning/RuleBasedProgramParser.h
- autopas/tuning/tuningStrategy/ruleBasedTuning/RuleBasedProgramParser.cpp