home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ssvpar.zip / SSYACC.INL < prev    next >
Text File  |  1994-10-17  |  2KB  |  91 lines

  1. /*---------------------------------------------------------------------------
  2.  
  3.                Copyright (c) 1994 SandStone Software Inc.
  4.                           All rights reserved
  5.  
  6. ----------------------------------------------------------------------------*/
  7.    SSInline void SSYacc::setLex( SSLex& qLex)
  8.       {
  9.       opLex = &qLex;
  10.       }
  11.  
  12.    SSInline void SSYacc::setTable( SSYaccTable& qTable)
  13.       {
  14.       opTable = &qTable;
  15.       opTab = opTable->opTable;
  16.       }
  17.  
  18.    SSInline void SSYacc::setAbort( void)
  19.       {
  20.       oAbort = SSTrue;
  21.       }
  22.  
  23.    SSInline SSBooleanValue SSYacc::wasAborted( void)
  24.       {
  25.       return oAbort;
  26.       }
  27.  
  28.    SSInline SSUnsigned32 SSYacc::leftside( void)
  29.       {
  30.       return oulLeftside;
  31.       }
  32.  
  33.    SSInline SSUnsigned32 SSYacc::state( void)
  34.       {
  35.       return oulState;
  36.       }
  37.  
  38.    SSInline SSLex* SSYacc::lex( void)
  39.       {
  40.       return opLex;
  41.       }
  42.  
  43.    SSInline SSUnsigned32 SSYacc::production( void)
  44.       {
  45.       return oulProduction;
  46.       }
  47.  
  48.    SSInline SSUnsigned32 SSYacc::productionSize( void)
  49.       {
  50.       return oulProductionSize;
  51.       }
  52.  
  53.    SSInline SSLexLexeme& SSYacc::lookahead( void)
  54.       {
  55.       return *oLookahead;
  56.       }
  57.  
  58.    SSInline SSYaccStackElement::SSYaccStackElement( void) : oulState( 0)
  59.       {
  60.       }
  61.  
  62.    SSInline SSUnsigned32 SSYaccStackElement::state( void)
  63.       {
  64.       return oulState;
  65.       }
  66.  
  67.    SSInline SSLexLexeme* SSYaccStackElement::lexeme( void)
  68.       {
  69.       return oLexeme;
  70.       }
  71.  
  72.    SSInline SSBooleanValue SSYacc::wasError( void)
  73.       {
  74.       return oError;
  75.       }
  76.  
  77.    SSInline SSUnsigned32 SSYacc::shiftedSinceError( void)
  78.       {
  79.       return oulError;
  80.       }
  81.  
  82.    SSInline void SSYaccStackElement::setState( SSUnsigned32 qulState)
  83.       {
  84.       oulState = qulState;
  85.       }
  86.  
  87.    SSInline void SSYaccStackElement::setLexeme( SSLexLexeme& qLexeme)
  88.       {
  89.       oLexeme = qLexeme;
  90.       }
  91.