Example #1
0
        private void ParseMethod()
        {
            AEvaluator methodName = Pop();

            if (methodName.EvalType != EEvaluatorType.Getter)
            {
                throw new TemplateParserException(ETemplateParserError.Method_IncorrectName, PeekToken());
            }
            MethodEvaluator method = new MethodEvaluator(methodName.ToString());
            int             count  = m_Evaluators.Count;

            while (HasTokens() && PeekToken().Value[0] != TemplateConst.PARENT_CLOSE)
            {
                ParseAccess();
            }

            ConsumeToken();

            for (int x = count; x < m_Evaluators.Count; x++)
            {
                method.AddArgument(m_Evaluators[x]);
            }

            while (m_Evaluators.Count > count)
            {
                Pop();
            }
            Push(method);
        }
Example #2
0
 public override string ToString()
 {
     return(string.Format("{0}.{1}", m_Key.ToString(), m_Value.ToString()));
 }