ablescript/src/tokens.rs

24 lines
777 B
Rust
Raw Normal View History

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