2021-04-11 17:22:06 -05:00
|
|
|
pub enum TOKENS {
|
|
|
|
LEFT_PARENTHESIS, // (
|
|
|
|
RIGHT_PARENTHESIS, // )
|
|
|
|
LEFT_BRACKET, // [
|
|
|
|
RIGHT_BRACKET, // ]
|
|
|
|
LEFT_BRACE, // {
|
|
|
|
RIGHT_BRACE, // }
|
|
|
|
COMMENT { value: String }, // #
|
|
|
|
SUBTRACT, // -
|
|
|
|
ADDITION, // +
|
|
|
|
MULTIPLY, // *
|
|
|
|
DIVIDE, // /
|
|
|
|
CHAR, // Base52 based character
|
|
|
|
FUNCTION, // functio
|
|
|
|
BF_FUNCTION { name: String, functio: String }, // Brain fuck FFI
|
|
|
|
VARIABLE, // Variable bro
|
|
|
|
BOOLEAN { state: bool }, // True, False
|
2021-04-11 21:47:10 -05:00
|
|
|
ABOOLEAN { state: ABOOL }, // Always, Sometimes, Never
|
2021-04-11 17:22:06 -05:00
|
|
|
PRINT, // Prints the preceding things
|
|
|
|
MELO, // Ban the following variable from ever being used again
|
|
|
|
T_DARK,
|
|
|
|
}
|
|
|
|
pub enum ABOOL {
|
|
|
|
NEVER = -1,
|
|
|
|
SOMETIMES = 0,
|
|
|
|
ALWAYS = 1,
|
2021-04-08 16:11:20 -05:00
|
|
|
}
|