Exemplo n.º 1
0
        public override void Visit(WhileAST whileStatement)
        {
            var exprType = _exprTypeVisitor.GetAstNodeType(_currentFileName,
                                                           _currentScopeId, _currentNodePosition,
                                                           whileStatement.ConditionExpr);

            if (exprType.ToString() != Enum.GetName(typeof(Keyword), Keyword.BOOL).ToLower())
            {
                throw new Exception(string.Format("Type mismatch : Condition must be of type 'bool', but it's a '{0}' ...",
                                                  exprType.ToString()));
            }
        }
Exemplo n.º 2
0
 public override void Visit(WhileAST whileStatement)
 {
 }
Exemplo n.º 3
0
 public virtual void Visit(WhileAST whileStatement)
 {
 }