Mercurial > projects > dil
comparison trunk/src/dil/parser/ImportParser.d @ 619:933cd8d24467
Renamed Parser.lx to Parser.lexer.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 11 Jan 2008 00:49:05 +0100 |
parents | 39fac5531b85 |
children | 5fa1886d6aaf |
comparison
equal
deleted
inserted
replaced
618:07946b379006 | 619:933cd8d24467 |
---|---|
60 { | 60 { |
61 Token* next = token; | 61 Token* next = token; |
62 uint level = 1; | 62 uint level = 1; |
63 while (1) | 63 while (1) |
64 { | 64 { |
65 lx.peek(next); | 65 lexer.peek(next); |
66 if (next.type == opening) | 66 if (next.type == opening) |
67 ++level; | 67 ++level; |
68 else if (next.type == closing && --level == 0) | 68 else if (next.type == closing && --level == 0) |
69 return true; | 69 return true; |
70 else if (next.type == T.EOF) | 70 else if (next.type == T.EOF) |