switch (type) {
case SLTNodeTypeModule:
case SLTNodeTypeFunctionDefinition:
- case SLTNodeTypeTypeDefinition:
+ case SLTNodeTypeUserDefinedTypeDefinition:
case SLTNodeTypeForIteration:
case SLTNodeTypeDoIteration:
case SLTNodeTypeWhileIteration:
return r;
}
- case SLTNodeTypeTypeAccess:
+ case SLTNodeTypeMemberAccess:
generator_assert_msg(false, "not implemented: %s", sltNodeToString(node));
return -1;
generatorPatchOperand(generator, start, 0, address);
// then do variables
- for (SLTNode *n = node->moduleStatementsAndDefinitions; n != NULL; n = n->sequenceNext) {
- switch (n->sequenceNode->type) {
- case SLTNodeTypeFunctionDefinition:
+ //for (SLTNode *n = node->moduleStatementsAndDefinitions; n != NULL; n = n->sequenceNext) {
+ // switch (n->sequenceNode->type) {
+ // case SLTNodeTypeFunctionDefinition:
// Do nothing...
- break;
+ // break;
- case SLTNodeTypeVariableDefinition:
- generateStatementInstructions(generator, n->sequenceNode, 0);
- break;
+ //case SLTNodeTypeVariableDefinition:
+ //generateStatementInstructions(generator, n->sequenceNode, 0);
+ // break;
- default:
+ // default:
//generator_assert_msg(false, "could not define %s", sltNodeTypeToString(n->sequenceNode->type));
- break;
- }
- }
+ // break;
+ // }
+ //}
// statements
for (SLTNode *n = node->moduleStatementsAndDefinitions; n != NULL; n = n->sequenceNext) {
switch (n->sequenceNode->type) {
- case SLTNodeTypeVariableDefinition:
- case SLTNodeTypeTypeDefinition:
+ //case SLTNodeTypeVariableDefinition:
+ case SLTNodeTypeUserDefinedTypeDefinition:
case SLTNodeTypeFunctionDefinition:
// Do nothing...
break;