Mercurial > projects > dil
comparison trunk/src/dil/parser/ImportParser.d @ 755:90668b83ae5e
Introduced new module dil.SourceText and class SourceText.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Wed, 13 Feb 2008 20:21:25 +0100 |
parents | b11d46260909 |
children | c24be8d4f6ab |
comparison
equal
deleted
inserted
replaced
754:c7a5499faa77 | 755:90668b83ae5e |
---|---|
6 | 6 |
7 import dil.parser.Parser; | 7 import dil.parser.Parser; |
8 import dil.ast.Node; | 8 import dil.ast.Node; |
9 import dil.ast.Declarations; | 9 import dil.ast.Declarations; |
10 import dil.ast.Statements; | 10 import dil.ast.Statements; |
11 import dil.SourceText; | |
11 import dil.Enums; | 12 import dil.Enums; |
12 import common; | 13 import common; |
13 | 14 |
14 private alias TOK T; | 15 private alias TOK T; |
15 | 16 |
16 class ImportParser : Parser | 17 class ImportParser : Parser |
17 { | 18 { |
18 this(char[] srcText, string fileName) | 19 this(SourceText srcText) |
19 { | 20 { |
20 super(srcText, fileName); | 21 super(srcText); |
21 } | 22 } |
22 | 23 |
23 override CompoundDeclaration start() | 24 override CompoundDeclaration start() |
24 { | 25 { |
25 auto decls = new CompoundDeclaration; | 26 auto decls = new CompoundDeclaration; |