瀏覽代碼

Removed win64 option. Use win32x64 instead. Fixes #361.

woollybah 6 年之前
父節點
當前提交
8b33de9e1e
共有 1 個文件被更改,包括 15 次插入8 次删除
  1. 15 8
      parser.bmx

+ 15 - 8
parser.bmx

@@ -4345,15 +4345,22 @@ End Rem
 
 	Local parser:TParser=New TParser.Create( toker,Null )
 
-	Local expr:TExpr=parser.ParseExpr()
-
-	expr=expr.Semant()
-
-	If ty expr=expr.Cast( ty )
-
-	Local val$=expr.Eval()
-
+	Local val:String
+	Try
+		Local expr:TExpr=parser.ParseExpr()
+	
+		expr=expr.Semant()
+	
+		If ty expr=expr.Cast( ty )
+	
+		val=expr.Eval()
+	Catch error:String
+		val = "0"
+	End Try
+	
 	PopEnv
+	
+	PopPPEnv
 
 	Return val
 End Function