private ExpressionInfo AnalyzeScalar(XmlNode node)
{
switch (node.LocalName)
{
case AstConstants.Scalars.Int:
return new ExpressionInfo() {ValueInfo = { Value = node.InnerText, Type = "int"} };
case AstConstants.Scalars.String:
return new ExpressionInfo() { ValueInfo = { Value = node.InnerText, Type = "string" } };
case AstConstants.Scalars.Float:
return new ExpressionInfo() { ValueInfo = { Value = node.InnerText, Type = "float" } };
case AstConstants.Scalars.False:
case AstConstants.Scalars.True:
case AstConstants.Scalars.Null:
return new ExpressionInfo();
case AstConstants.Scalars.Array:
throw new NotImplementedException();
default:
throw new NotImplementedException();
}
}