Bike.Parser.Lexer.Match C# (CSharp) 메소드

Match() 개인적인 메소드

private Match ( char expectedChar ) : void
expectedChar char
리턴 void
        private void Match(char expectedChar)
        {
            if (currentChar == expectedChar)
                Next();
            else
                throw Error("Expect '" + expectedChar + "', found '" + (char)currentChar + "'");
        }