able-script/src/tokens.rs

24 lines
777 B
Rust
Raw Normal View History

2021-04-11 11:47:35 -05:00
pub enum tokens {
LEFT_PARENTHESIS, // (
RIGHT_PARENTHESIS, // )
LEFT_BRACKET, // [
RIGHT_BRACKET, // ]
LEFT_BRACE, // {
RIGHT_BRACE, // }
2021-04-11 15:11:23 -05:00
COMMENT, // #
SUBTRACT, // -
ADDITION, // +
MULTIPLY, // *
DIVIDE, // /
2021-04-11 11:47:35 -05:00
CHAR, // Base52 based character
2021-04-11 15:11:23 -05:00
FUNCTION, // functio
CONSTANT, // constant.e
BF_FUNCTION, // Brain fuck FFI
2021-04-11 11:47:35 -05:00
VARIABLE, // Variable bro
BOOLEAN, // True, False
ABOOLEAN, // Always, Sometimes, Never
PRINT, // Prints the preceding things
2021-04-11 15:11:23 -05:00
MELO, // Ban the following variable from ever being used again
T_DARK, //
}