Changeset 375

Show
Ignore:
Timestamp:
09/06/08 22:54:48 (4 months ago)
Author:
JarrettBillingsley
Message:

derp de derp.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/v2new/minid/compiler.d

    r373 r375  
    260260    public word loadJSON(char[] source) 
    261261    { 
    262         return commonCompile( 
    263        
     262        //return commonCompile( 
     263        //
    264264            mLexer.begin("JSON", source, true); 
    265             mParser.parseJSON(); 
    266         }); 
     265            return mParser.parseJSON(); 
     266        //}); 
    267267    } 
    268268 
  • branches/v2new/minid/lexer.d

    r353 r375  
    390390        if(mNewlineSinceLastTok) 
    391391            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(); 
    392396        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]); 
    401398    } 
    402399 
  • branches/v2new/minid2.txt

    r339 r375  
    288288    TryCatchStatement 
    289289    ThrowStatement 
    290      
     290    Assignment 
     291 
    291292AssertStatement: 
    292293    'assert' '(' Expression [',' Expression] ')' StatementTerminator 
     
    427428ThrowStatement: 
    428429    'throw' Expression StatementTerminator 
    429  
    430 BaseExpression: 
    431     Assignment 
    432     Expression 
    433430 
    434431Assignment: