geneseo.cs.miniml
Class PlusToken

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

public class PlusToken
extends MinimLToken

Represents tokens for addition operators in MinimL compilers.


Fields inherited from class geneseo.cs.miniml.MinimLToken
COMMA, ELSE, ENDIF, EOF, ID, IF, INT, LEQ, LPAR, MINUS, PLUS, RPAR, THEN
 
Constructor Summary
PlusToken()
          Initialize an addition token.
 
Method Summary
 java.lang.String toString()
          Generate a string representation of an addition token.
 int type()
          Get the type code for an addition 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

PlusToken

public PlusToken()
Initialize an addition token.
Method Detail

type

public int type()
Get the type code for an addition token.
Overrides:
type in class Token
Returns:
The token's type code (always MinimLToken.PLUS)

toString

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