|
@@ -273,7 +273,7 @@ export class SemanticAnalyser {
|
|
evaluateArrayLiteral (arrayDeclaration) {
|
|
evaluateArrayLiteral (arrayDeclaration) {
|
|
const type = arrayDeclaration.type;
|
|
const type = arrayDeclaration.type;
|
|
const literal = arrayDeclaration.initial;
|
|
const literal = arrayDeclaration.initial;
|
|
- console.log(arrayDeclaration);
|
|
|
|
|
|
+ // console.log(arrayDeclaration);
|
|
if(arrayDeclaration.isVector) {
|
|
if(arrayDeclaration.isVector) {
|
|
this.evaluateVectorLiteralType(literal, type);
|
|
this.evaluateVectorLiteralType(literal, type);
|
|
} else {
|
|
} else {
|
|
@@ -558,7 +558,7 @@ export class SemanticAnalyser {
|
|
}
|
|
}
|
|
|
|
|
|
evaluateVectorLiteralType (literal, type) {
|
|
evaluateVectorLiteralType (literal, type) {
|
|
- console.log(literal);
|
|
|
|
|
|
+ // console.log(literal);
|
|
for(let i = 0; i < literal.value.length; i+=1) {
|
|
for(let i = 0; i < literal.value.length; i+=1) {
|
|
const exp = literal.value[i];
|
|
const exp = literal.value[i];
|
|
const expType = this.evaluateExpressionType(exp);
|
|
const expType = this.evaluateExpressionType(exp);
|