Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005
    Location
    Independence Mo.
    Posts
    380

    Language Development: Lexer Implementation

    I been going though the Language Development videos. I am on the Lexer implementation were it show i have a error in my code. And on the video it doesn't.

    Code:
            protected void Consume()
            {
                Pointer++;
    
                if (IsEos)
                {
                    Character = '\0';
                    return;
                }
    
                Character = _input[Pointer];
            }
    
            protected bool IsEos()
            {
                return Pointer >= _input.Length;
            }
    Heres a picture of the error I am getting

    Click image for larger version. 

Name:	Lexer_Jpeg.jpg 
Views:	128 
Size:	55.5 KB 
ID:	72650

  2. #2
    Join Date
    Sep 2008
    Location
    Salisbury, UK
    Posts
    2,812
    Should be
    Code:
    if (IsEos())
    , surely..?

    I found
    my current avatar on google, so props to THIS GUY who created the original...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •