Class SequenceBaseToken


public class SequenceBaseToken extends CompoundBaseToken
SequenceBaseToken is a token that holds a sequence of tokens. This nesting of tokens makes many algorithms easier in the higher levels of a parser.
Author:
djl 2009.03.14
  • Constructor Details

    • SequenceBaseToken

      public SequenceBaseToken(BaseToken[] aTokens)
      Construct a new SequenceBaseToken with the array of tokens.
      Parameters:
      aTokens - an array of BaseTokens
  • Method Details

    • getTokens

      public BaseToken[] getTokens()
      Return an array of BaseTokens making up the receiver.
      Specified by:
      getTokens in class CompoundBaseToken
      Returns:
      the an array of BaseTokens making up the receiver.