changeset 659:304331ca2f95

Renamed EmptyExpression to IllegalExpression.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Tue, 15 Jan 2008 20:34:39 +0100
parents a35e6debfb4c
children 085bac570c7e
files trunk/src/dil/ast/Expressions.d trunk/src/dil/ast/NodesEnum.d trunk/src/dil/ast/Types.d trunk/src/dil/parser/Parser.d
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/dil/ast/Expressions.d	Tue Jan 15 16:49:26 2008 +0100
+++ b/trunk/src/dil/ast/Expressions.d	Tue Jan 15 20:34:39 2008 +0100
@@ -14,7 +14,7 @@
 import dil.semantic.Types;
 import common;
 
-class EmptyExpression : Expression
+class IllegalExpression : Expression
 {
   this()
   {
--- a/trunk/src/dil/ast/NodesEnum.d	Tue Jan 15 16:49:26 2008 +0100
+++ b/trunk/src/dil/ast/NodesEnum.d	Tue Jan 15 20:34:39 2008 +0100
@@ -93,7 +93,7 @@
   "VersionStatement",
 
   // Expressions:
-  "EmptyExpression",
+  "IllegalExpression",
   "BinaryExpression",
   "CondExpression",
   "CommaExpression",
--- a/trunk/src/dil/ast/Types.d	Tue Jan 15 16:49:26 2008 +0100
+++ b/trunk/src/dil/ast/Types.d	Tue Jan 15 20:34:39 2008 +0100
@@ -5,7 +5,7 @@
 module dil.ast.Types;
 
 import dil.ast.Node;
-import dil.ast.Expressions;
+import dil.ast.Expression;
 import dil.ast.Parameters;
 import dil.lexer.Identifier;
 import dil.Enums;
--- a/trunk/src/dil/parser/Parser.d	Tue Jan 15 16:49:26 2008 +0100
+++ b/trunk/src/dil/parser/Parser.d	Tue Jan 15 20:34:39 2008 +0100
@@ -2697,7 +2697,7 @@
       break;
     default:
       error(MID.ExpectedButFound, "Expression", token.srcText);
-      e = new EmptyExpression();
+      e = new IllegalExpression();
       if (!trying)
       { // Insert a dummy token and don't consume current one.
         begin = lexer.insertEmptyTokenBefore(token);
@@ -3395,7 +3395,7 @@
       else
       {
         error(MID.ExpectedButFound, "Expression", token.srcText);
-        e = new EmptyExpression();
+        e = new IllegalExpression();
         if (!trying)
         { // Insert a dummy token and don't consume current one.
           begin = lexer.insertEmptyTokenBefore(token);