We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 757f413 commit 55d2499Copy full SHA for 55d2499
interpreter/CodeInterpreter.cpp
@@ -11,7 +11,7 @@ void CodeInterpreter::_bind_methods()
11
ClassDB::bind_method(D_METHOD("getSequence"), &CodeInterpreter::getSequence);
12
}
13
14
-void CodeInterpreter::registerBuiltInMethod(const String& str);
+void CodeInterpreter::registerBuiltInMethod(const String& str)
15
{
16
const std::string text{str.utf8().get_data()};
17
@@ -24,7 +24,7 @@ String CodeInterpreter::interpret(const String& str)
24
25
26
interpreter.symbolTable().init();
27
- interpreter.initParser(input);
+ interpreter.initParser(text);
28
29
interpreter.registerBuiltInMethod("moveNorth()");
30
interpreter.registerBuiltInMethod("moveSouth()");
0 commit comments