Advertisement
KillianMills

DataType.java

Dec 15th, 2015
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.99 KB | None | 0 0
  1. // Name:DataType.java
  2. // Author: David Sinclair      Date: 29 Aug 2012
  3. //
  4.  
  5. public enum DataType
  6. {
  7.     Program,            //program
  8.     ConstDeclaration,   //const
  9.     VarDeclaration,     //var
  10.     Function,           // function
  11.     ParamList,          // param list
  12.     MainProg,           // main
  13.  
  14.     Int,                // return type int
  15.     Bool,               // return type bool
  16.     Void,               // return type void
  17.  
  18.     Equal,              // =
  19.     NotEqual,           // !=
  20.     LessThan,           // <
  21.     GreaterThan,        // >
  22.     LTE,                // <=
  23.     GTE,                // >=
  24.  
  25.     Assign,             // :=
  26.  
  27.     Plus,               // +
  28.     Minus,              // -
  29.     Div,                // /
  30.     Mult,               // *
  31.  
  32.     Condition,          // condition
  33.     IdentList,          // ident list
  34.     ArgList,            // arg list
  35.  
  36.     TypeUnknown,        // unknown
  37.     TypeInteger,        // integer / num
  38.     TypeBoolean,        // bool
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement