mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-17 15:54:07 +10:00
Parser is reading variable declarations, read more
This is an incomplete process. It's supposed to be robust enough to support the types of arrays and dictionaries, but arrays and dictionaries aren't implemented in the literals yet, so that's my next task. I'll come back to variable declarations later.
This commit is contained in:
@@ -90,7 +90,15 @@ void writeCompiler(Compiler* compiler, Node* node) {
|
||||
compiler->bytecode[compiler->count++] = (unsigned char)OP_SCOPE_END; //1 byte
|
||||
break;
|
||||
|
||||
//TODO: conditional
|
||||
case NODE_VAR_TYPES:
|
||||
//TODO: OP_TYPE_DECL
|
||||
break;
|
||||
|
||||
case NODE_VAR_DECL:
|
||||
//TODO: OP_VAR_DECL + OP_VAR_ASSIGN
|
||||
break;
|
||||
|
||||
//TODO: more
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user