Lucas de Souza 6 gadi atpakaļ
vecāks
revīzija
fb6f6d8865

+ 1 - 0
.vscode/settings.json

@@ -1,2 +1,3 @@
 {
+  "editor.tabSize": 2
 }

+ 1 - 1
js/ast/commands/atribution.js

@@ -1,4 +1,4 @@
-export class Atribution {
+export class Attribution {
   
   constructor (id, expression) {
     this.id = id;

+ 2 - 2
js/ast/commands/index.js

@@ -1,11 +1,11 @@
 import { Break } from './break';
 import { Return } from './return';
-import { Atribution } from './atribution';
+import { Attribution } from './attribution';
 import { Declaration } from './declaration';
 import { ArrayDeclaration } from './arrayDeclaration';
 import { While } from './while';
 import { For } from './for';
 
 export {
-  Break, Return, Atribution, Declaration, ArrayDeclaration, While, For
+  Break, Return, Attribution, Declaration, ArrayDeclaration, While, For
 };

+ 2 - 2
js/ast/ivprogParser.js

@@ -555,7 +555,7 @@ export class IVProgParser {
       const exp = this.parseExpressionOR();
       this.checkEOS();
       this.pos++;
-      return (new Commands.Atribution(id, exp));
+      return (new Commands.Attribution(id, exp));
     } else if (equalOrParenthesis.type === this.lexerClass.OPEN_PARENTHESIS) {
       const actualParameters = this.parseActualParameters();
       this.checkEOS();
@@ -581,7 +581,7 @@ export class IVProgParser {
     const exp = this.parseExpressionOR();
     this.checkEOS();
     this.pos++;
-    return new Commands.Atribution(id, exp);
+    return new Commands.Attribution(id, exp);
   }
 
   /*