An expression with a constant value.
Inheritance: Expression
コード例 #1
0
ファイル: Parser.cs プロジェクト: dzamkov/Bit-Orchestra
 /// <summary>
 /// Tries parsing a literal term in the given text.
 /// </summary>
 public static bool AcceptLiteral(string Text, ref int Index, ref Expression Term, out int ErrorIndex)
 {
     int val = 0;
     if (AcceptInteger(Text, ref Index, ref val, out ErrorIndex))
     {
         Term = new ConstantExpression(val);
         return true;
     }
     return false;
 }