geneseo.cs.miniml
Class EndifToken

java.lang.Object
  |
  +--geneseo.cs.compiler.Token
        |
        +--geneseo.cs.miniml.MinimLToken
              |
              +--geneseo.cs.miniml.EndifToken

public class EndifToken
extends MinimLToken

Represents tokens for the keyword "endif" in a MinimL compiler.


Fields inherited from class geneseo.cs.miniml.MinimLToken
COMMA, ELSE, ENDIF, EOF, ID, IF, INT, LEQ, LPAR, MINUS, PLUS, RPAR, THEN
 
Constructor Summary
EndifToken()
          Initialize an "endif" token.
 
Method Summary
 java.lang.String toString()
          Generate a string representation of an "endif" token.
 int type()
          Get the type of an "endif" token.
 
Methods inherited from class geneseo.cs.compiler.Token
auxData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EndifToken

public EndifToken()
Initialize an "endif" token.
Method Detail

type

public int type()
Get the type of an "endif" token.
Overrides:
type in class Token
Returns:
The type code for the token (always MinimLToken.ENDIF)

toString

public java.lang.String toString()
Generate a string representation of an "endif" token.
Overrides:
toString in class Token
Returns:
The string representation of the token.