50 UserFunction* function = Program->Functions->GetFunctionDef(name, parameter);
52 if (function ==
nullptr)
54 return static_cast<
char*>(
"Function does not exists." NEWLINE);
57 GraphWindow* graph = Program->Graphs->CreateNewWindow();
61 return static_cast<
char*>(
"Graphs are not supported in this version.");
64 graph->OpenGraphWindow(function);
65 graph->DrawGraph(function);
Base class for all statements in a syntax tree.
DrawStatement(const char *name, const char *parameter)
unsigned int AllocAndCopy(char **destination, const char *source)
Allocate memory and copy a string into the array.