Math-Parser
    Timon Gehr via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sat May  3 04:29:38 PDT 2014
    
    
  
On 05/03/2014 12:34 AM, Tim Holzschuh via Digitalmars-d-learn wrote:
>
> Most probably this isn't a wrong use of something D-specific
Some of the problems are:
@property Lexer lexer() pure { return _lexer; }
If you change the result of a call to 'lexer' this will not change 
'_lexer'. Mark the property 'ref' or get rid of it
if( !previous && !token.type == TokenType.end )
     popFront();
=>
if(!previous && token.type != TokenType.end) popFront();
Let me know if you also want hints on how to get the logic right.
    
    
More information about the Digitalmars-d-learn
mailing list