Example #1
0
 private bool ParseRightPropertyName()
 {
     if (RightExp is ExpVar)
     {
         ExpVar propertyExp = (RightExp as ExpVar);
         propertyName = propertyExp.VarToken.GetText();
         return(true);
     }
     else if (RightExp is ExpType)
     {
         ExpType typeExp  = (RightExp as ExpType);
         Token   newToken = typeExp.ToSingleToken();
         propertyName = newToken.GetText();
         return(true);
     }
     else
     {
         ErrorE(RightExp.Postion, "'的'后面的‘{0}’不是属性名称", RightExp.ToString());
     }
     return(false);
 }
Example #2
0
 public ExpNewList(ContextExp context, ExpType typeExp, ExpBracket argExp)
 {
     this.ExpContext = context;
     TypeExp         = typeExp;
     ArgExp          = argExp;
 }