private string buildDefinitionExpression(DefinitionExpression definitionExpression) { var result = ""; // build type result += "shared_ptr<" + Build(definitionExpression.ObjType) + "> "; // build name result += Build(definitionExpression.Name); // build value if (definitionExpression.Value != null) { result += " = " + Build(definitionExpression.Value); } return(result); }
private void evalLetStatement(Object context, LetStatement statement) { DefinitionExpression definition = statement.Definition; context[definition.Name.Literal] = Eval(context, definition.Value); }