geneseo.cs.miniml
Class CommaToken

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

public class CommaToken
extends MinimLToken

Represents tokens for commas in the 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
CommaToken()
          Initialize a comma token.
 
Method Summary
 java.lang.String toString()
          Generate a string representation of a comma token.
 int type()
          Get the type code for a comma 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

CommaToken

public CommaToken()
Initialize a comma token.
Method Detail

type

public int type()
Get the type code for a comma token.
Overrides:
type in class Token
Returns:
The type code (always MinimLToken.COMMA)

toString

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