Esempio n. 1
0
 /**
  * Function VisitLiteralExpr
  * Param : literal expression to evaluate
  * Return : value of the expression
  */
 public Value VisitLiteralExpr(Expr.Literal expr)
 {
     return(expr.Value);
 }
Esempio n. 2
0
 /**
  * Function VisitLiteralExpr
  * Param : literal expression to ckeck
  * Return : type of the value of the literal expression
  */
 public VALTYPE VisitLiteralExpr(Expr.Literal expr)
 {
     return(expr.Value.Type);
 }