Changeset 375
- Timestamp:
- 09/06/08 22:54:48 (4 months ago)
- Files:
-
- branches/v2new/minid/compiler.d (modified) (1 diff)
- branches/v2new/minid/lexer.d (modified) (1 diff)
- branches/v2new/minid2.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/v2new/minid/compiler.d
r373 r375 260 260 public word loadJSON(char[] source) 261 261 { 262 return commonCompile(263 {262 //return commonCompile( 263 //{ 264 264 mLexer.begin("JSON", source, true); 265 mParser.parseJSON();266 });265 return mParser.parseJSON(); 266 //}); 267 267 } 268 268 branches/v2new/minid/lexer.d
r353 r375 390 390 if(mNewlineSinceLastTok) 391 391 return; 392 else if(mTok.type == Token.EOF || mTok.type == Token.RBrace || mTok.type == Token.RParen || mTok.type == Token.RBracket) 393 return; 394 else if(mTok.type == Token.Semicolon) 395 next(); 392 396 else 393 { 394 if(mTok.type == Token.EOF || mTok.type == Token.RBrace || mTok.type == Token.RParen || mTok.type == Token.RBracket) 395 return; 396 else if(mTok.type == Token.Semicolon) 397 next(); 398 else 399 mCompiler.exception(mLoc, "Statement terminator expected, not '{}'", Token.strings[mTok.type]); 400 } 397 mCompiler.exception(mLoc, "Statement terminator expected, not '{}'", Token.strings[mTok.type]); 401 398 } 402 399 branches/v2new/minid2.txt
r339 r375 288 288 TryCatchStatement 289 289 ThrowStatement 290 290 Assignment 291 291 292 AssertStatement: 292 293 'assert' '(' Expression [',' Expression] ')' StatementTerminator … … 427 428 ThrowStatement: 428 429 'throw' Expression StatementTerminator 429 430 BaseExpression:431 Assignment432 Expression433 430 434 431 Assignment:
