Overview   Project   Class   Tree   Deprecated   Index 
Grammatica 1.5 Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

PerCederberg.Grammatica.Runtime
Class RecursiveDescentParser.CallStack

System.Object
   |
   +--RecursiveDescentParser.CallStack

   in RecursiveDescentParser.cs

private class RecursiveDescentParser.CallStack
extends System.Object

A name value stack. This stack is used to detect loops and repetitions of the same production during look-ahead analysis.


Method Summary
 void Clear()
          Clears the stack.
 bool Contains( string name )
          Checks if the specified name is on the stack.
 bool Contains( string name, int value )
          Checks if the specified name and value combination is on the stack.
 void Pop()
          Removes the top element of the stack.
 void Push( string name, int value )
          Adds a new element to the top of the stack.
 

Method Detail

Clear

public void Clear();
Clears the stack. This method removes all elements on the stack.

Contains

public bool Contains( string name );
Checks if the specified name is on the stack.
Parameters:
name - the name to search for
Returns:
true if the name is on the stack, or false otherwise

Contains

public bool Contains( string name, int value );
Checks if the specified name and value combination is on the stack.
Parameters:
name - the name to search for
value - the value to search for
Returns:
true if the combination is on the stack, or false otherwise

Pop

public void Pop();
Removes the top element of the stack.

Push

public void Push( string name, int value );
Adds a new element to the top of the stack.
Parameters:
name - the stack name
value - the stack value

 Overview   Project   Class   Tree   Deprecated   Index 
Grammatica 1.5 Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD