1
0
This commit is contained in:
otya128
2015-06-03 19:51:42 +09:00
parent fb28e1236d
commit 6673ca3fc2
7 changed files with 449 additions and 0 deletions

30
SMILEBASIC/token.d Normal file
View File

@@ -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;
}
}