init
This commit is contained in:
1 parent
fb28e1236d
commit
6673ca3fc2
7 files changed
+449
No files matched your search
@@ -0,0 +1,30 @@
|
||||
module otya.smilebasic.token;
|
||||
import otya.smilebasic.type;
|
||||
enum TokenType
|
||||
{
|
||||
Unknown,
|
||||
Integer,
|
||||
Double,
|
||||
String,
|
||||
Plus,
|
||||
Minus,
|
||||
Mul,
|
||||
Div,
|
||||
Mod,
|
||||
Or,
|
||||
And,
|
||||
Xor,
|
||||
Print,
|
||||
If,
|
||||
}
|
||||
|
||||
struct Token
|
||||
{
|
||||
TokenType type;
|
||||
Value value;
|
||||
this(TokenType t, Value v)
|
||||
{
|
||||
type = t;
|
||||
value = v;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user