Tools.Parser.StackAt C# (CSharp) Method

StackAt() public method

public StackAt ( int ix ) : ParseStackEntry
ix int
return ParseStackEntry
        public ParseStackEntry StackAt(int ix)
        {
            int n = m_stack.Count;
            if (m_stkdebug)
                Console.WriteLine("StackAt({0}),count {1}",ix,n);
            ParseStackEntry pe =(ParseStackEntry)m_stack[ix];
            if (pe == null)
                return new ParseStackEntry(this,0,m_symbols.Special);
            if (pe.m_value is Null)
                return new ParseStackEntry(this,pe.m_state,null);
            if (m_stkdebug)
                Console.WriteLine(pe.m_value.yyname);
            return pe;
        }

Usage Example

Ejemplo n.º 1
0
/// <summary/>
/// <param name='yyq'></param>
  public OptionalSegment_2_1(Parser yyq):base(yyq){
				((PhonEnvParser
)yyq).CreateErrorMessage(PhonEnvParser.SyntaxErrType.missingClosingParen.ToString(),
	((TOKEN)(yyq.StackAt(2).m_value))
	.yytext,
	((error)(yyq.StackAt(0).m_value))
	.pos);
					((PhonEnvParser
)yyq).SyntaxErrorType = PhonEnvParser.SyntaxErrType.missingClosingParen;
					((PhonEnvParser
)yyq).Position =
	((error)(yyq.StackAt(0).m_value))
	.pos;
					}}
All Usage Examples Of Tools.Parser::StackAt