public static Parse ( string Text, |
||
Text | string | |
Expression | ||
Options | ||
ErrorIndex | int | |
return | bool |
public static bool Parse(string Text, out Expression Expression, out SoundOptions Options, out int ErrorIndex)
{
Expression = null;
Options = new SoundOptions();
Dictionary<string, Expression> variables = null;
int index = 0;
AcceptProgram(Text, ref index, ref variables, ref Options, out ErrorIndex);
if (index == Text.Length)
{
variables.TryGetValue(Result, out Expression);
return true;
}
return false;
}
Parser::Parse ( string Text, int TargetIndex, int TargetLength, |