Example #1
0
 /**
  * Function VisitLiteralExpr
  * Param : literal expression to evaluate
  * Return : value of the expression
  */
 public Value VisitLiteralExpr(Expr.Literal expr)
 {
     return(expr.Value);
 }
Example #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);
 }