Differences From Artifact [3e7ec41f1027e8ba]:
- File
polemy/parse.d
- 2010-11-09 15:19:20 - part of checkin [68546f3e9f] on branch trunk - several samples (user: kinaba) [annotate]
To Artifact [42c980cf31500e88]:
- File
polemy/parse.d
- 2010-11-09 15:35:18 - part of checkin [a5d10ace51] on branch trunk - FizzBuzz! (user: kinaba) [annotate]
174 scope(exit) lex.popFront; 174 scope(exit) lex.popFront;
175 return new IntLiteral(pos, BigInt(cast(string)lex.front. 175 return new IntLiteral(pos, BigInt(cast(string)lex.front.
176 } 176 }
177 if( tryEat("@") ) 177 if( tryEat("@") )
178 { 178 {
179 auto lay = "@"~eatId("for layer ID"); 179 auto lay = "@"~eatId("for layer ID");
180 eat("(", "for layered execution"); 180 eat("(", "for layered execution");
181 auto e = E(0); | 181 auto e = Body();
182 eat(")", "after "~lay~"(..."); 182 eat(")", "after "~lay~"(...");
183 return new LayeredExpression(pos, lay, e); 183 return new LayeredExpression(pos, lay, e);
184 } 184 }
185 if( tryEat("(") ) 185 if( tryEat("(") )
186 { 186 {
187 auto e = Body(); 187 auto e = Body();
188 eat(")", "after parenthesized expression"); 188 eat(")", "after parenthesized expression");