Mercurial > projects > dang
comparison parser/Parser.d @ 183:8ea749b7da91
Fixed a few errors so that two more tests passes. Also, now you only need a type in a function param.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Fri, 25 Jul 2008 10:59:16 +0200 |
parents | dc9bf56b7ace |
children | 7b274cfdc1dc |
comparison
equal
deleted
inserted
replaced
182:4e703658eca0 | 183:8ea749b7da91 |
---|---|
165 break; | 165 break; |
166 default: | 166 default: |
167 messages.report(UnexpectedLinkType, t.location); | 167 messages.report(UnexpectedLinkType, t.location); |
168 } | 168 } |
169 | 169 |
170 require(Tok.CloseParentheses); | 170 if (!isa(Tok.CloseParentheses)) |
171 | 171 messages.report(UnexpectedTokSingle, peek.location); |
172 | |
172 return e; | 173 return e; |
173 } | 174 } |
174 | 175 |
175 /** | 176 /** |
176 Parse a series of imports belonging to a single import token. | 177 Parse a series of imports belonging to a single import token. |