AIMA.Core.Logic.Common.Parser.match C# (CSharp) Метод

match() защищенный Метод

protected match ( String terminalSymbol ) : void
terminalSymbol String
Результат void
        protected void match(String terminalSymbol)
        {
            if (lookAhead(1).getText().Equals(terminalSymbol))
            {
                consume();
            }
            else
            {
                throw new ApplicationException(
                        "Syntax error detected at match. Expected "
                                + terminalSymbol + " but got "
                                + lookAhead(1).getText());
            }

        }
    }