Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Name:DataType.java
- // Author: David Sinclair Date: 29 Aug 2012
- //
- public enum DataType
- {
- Program, //program
- ConstDeclaration, //const
- VarDeclaration, //var
- Function, // function
- ParamList, // param list
- MainProg, // main
- Int, // return type int
- Bool, // return type bool
- Void, // return type void
- Equal, // =
- NotEqual, // !=
- LessThan, // <
- GreaterThan, // >
- LTE, // <=
- GTE, // >=
- Assign, // :=
- Plus, // +
- Minus, // -
- Div, // /
- Mult, // *
- Condition, // condition
- IdentList, // ident list
- ArgList, // arg list
- TypeUnknown, // unknown
- TypeInteger, // integer / num
- TypeBoolean, // bool
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement