# HG changeset patch # User Aziz K?ksal # Date 1201542784 -3600 # Node ID d75aad38d1b207db8cb58f72bd53a5be01b87ce7 # Parent ff4643a4a97c2e4893fb124f366e54ceea2f4bf0 Removed modules dil.parser.Factory and dil.parser.ExpressionParser. diff -r ff4643a4a97c -r d75aad38d1b2 trunk/src/dil/parser/ExpressionParser.d --- a/trunk/src/dil/parser/ExpressionParser.d Mon Jan 28 18:48:02 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -/++ - Author: Aziz Köksal - License: GPL3 -+/ -module dil.parser.ExpressionParser; - -import dil.ast.Expression; -import dil.Information; -import common; - -interface ExpressionParser -{ - Expression parse(); -} - -ExpressionParser function(char[] srcText, - string filePath, - InfoManager infoMan = null) - new_ExpressionParser; diff -r ff4643a4a97c -r d75aad38d1b2 trunk/src/dil/parser/Factory.d --- a/trunk/src/dil/parser/Factory.d Mon Jan 28 18:48:02 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -/++ - Author: Aziz Köksal - License: GPL3 -+/ -module dil.parser.Factory; - -import dil.parser.ExpressionParser; -import dil.parser.Parser; -import dil.ast.Expression; -import dil.Information; -import common; - -static this() -{ - dil.parser.ExpressionParser.new_ExpressionParser = - function ExpressionParser(char[] srcText, string filePath, InfoManager infoMan = null) - { - class ExpressionParser_ : Parser, ExpressionParser - { - this(char[] srcText, string filePath, InfoManager infoMan = null) - { super(srcText, filePath, infoMan); } - - Expression parse() - { - return Parser.start2(); - } - } - return new ExpressionParser_(srcText, filePath, infoMan); - }; -} diff -r ff4643a4a97c -r d75aad38d1b2 trunk/src/main.d --- a/trunk/src/main.d Mon Jan 28 18:48:02 2008 +0100 +++ b/trunk/src/main.d Mon Jan 28 18:53:04 2008 +0100 @@ -5,7 +5,6 @@ module main; import dil.parser.Parser; -import dil.parser.Factory; import dil.lexer.Lexer, dil.lexer.Token; import dil.ast.Declarations,