-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Baxi19/baxi_dev
Baxi dev
- Loading branch information
Showing
36 changed files
with
469 additions
and
194 deletions.
There are no files selected for viewing
Binary file modified
BIN
-14 Bytes
(100%)
Enunciado & Gramatica/02. Definición Análisis Contextual (2).docx
Binary file not shown.
Binary file removed
BIN
-16 Bytes
out/production/Proyecto Compi/META-INF/Proyecto Compi.kotlin_module
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-4.92 KB
out/production/Proyecto Compi/com/intellij/uiDesigner/core/AbstractLayout.class
Binary file not shown.
Binary file removed
BIN
-5.97 KB
out/production/Proyecto Compi/com/intellij/uiDesigner/core/DimensionInfo.class
Binary file not shown.
Binary file removed
BIN
-7.9 KB
out/production/Proyecto Compi/com/intellij/uiDesigner/core/GridConstraints.class
Binary file not shown.
Binary file removed
BIN
-17.6 KB
out/production/Proyecto Compi/com/intellij/uiDesigner/core/GridLayoutManager.class
Binary file not shown.
Binary file removed
BIN
-2.09 KB
out/production/Proyecto Compi/com/intellij/uiDesigner/core/HorizontalInfo.class
Binary file not shown.
Binary file removed
BIN
-2.08 KB
out/production/Proyecto Compi/com/intellij/uiDesigner/core/LayoutState.class
Binary file not shown.
Binary file removed
BIN
-547 Bytes
out/production/Proyecto Compi/com/intellij/uiDesigner/core/Spacer.class
Binary file not shown.
Binary file removed
BIN
-1.62 KB
...production/Proyecto Compi/com/intellij/uiDesigner/core/SupportCode$TextWithMnemonic.class
Binary file not shown.
Binary file removed
BIN
-1.98 KB
out/production/Proyecto Compi/com/intellij/uiDesigner/core/SupportCode.class
Binary file not shown.
Binary file removed
BIN
-3.53 KB
out/production/Proyecto Compi/com/intellij/uiDesigner/core/Util.class
Binary file not shown.
Binary file removed
BIN
-2.08 KB
out/production/Proyecto Compi/com/intellij/uiDesigner/core/VerticalInfo.class
Binary file not shown.
Binary file modified
BIN
+20 Bytes
(100%)
out/production/Proyecto Compi/contextualAnalysis/Function.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+790 Bytes
out/production/Proyecto Compi/contextualAnalysis/SymbolTable$1.class
Binary file not shown.
Binary file modified
BIN
+3.64 KB
(170%)
out/production/Proyecto Compi/contextualAnalysis/SymbolTable.class
Binary file not shown.
Binary file modified
BIN
-521 Bytes
(98%)
out/production/Proyecto Compi/contextualAnalysis/VisitorFuntion.class
Binary file not shown.
Binary file modified
BIN
+2.06 KB
(110%)
out/production/Proyecto Compi/contextualAnalysis/VisitorVariable.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package contextualAnalysis; | ||
|
||
import org.antlr.v4.runtime.ParserRuleContext; | ||
import org.antlr.v4.runtime.tree.TerminalNode; | ||
import utils.TYPE; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class HashContent extends Ident { | ||
public ArrayList<Ident> data; | ||
|
||
//Constructor | ||
public HashContent(TerminalNode token, TYPE type, int level, ParserRuleContext declCtx) { | ||
super(token, type, level, declCtx); | ||
this.data = new ArrayList<>(); | ||
} | ||
|
||
//Getter & Setter | ||
public ArrayList<Ident> getData() { | ||
return data; | ||
} | ||
|
||
public void setData(ArrayList<Ident> data) { | ||
this.data = data; | ||
} | ||
|
||
//Return the size of Hash content | ||
public int len(){ | ||
return this.getData().size(); | ||
} | ||
|
||
//Return first element in Hash content | ||
public Ident first(){ | ||
return this.getData().get(0); | ||
} | ||
|
||
//Return last element in Hash content | ||
public Ident last(){ | ||
return this.getData().get(len()-1); | ||
} | ||
|
||
//Return Hash content with out first element | ||
public ArrayList<Ident> rest(){ | ||
this.getData().remove(0); | ||
return this.getData(); | ||
} | ||
|
||
//Insert value | ||
public Boolean push(Ident value){ | ||
try { | ||
this.getData().add(value); | ||
return true; | ||
}catch (Exception e){ | ||
return false; | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "\n(" + token.getSymbol().getLine()+ "," + token.getSymbol().getCharPositionInLine() + ") ID = " + super.getId() +", Name = " + token.getText() + ", Level = " + level+ ", Type = " + type + ", HASH Size = " + len() + ", Declaration Context=" + declCtx.getText(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package contextualAnalysis; | ||
|
||
import org.antlr.v4.runtime.ParserRuleContext; | ||
import org.antlr.v4.runtime.tree.TerminalNode; | ||
import utils.TYPE; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class HashLiteral extends Ident { | ||
public ArrayList<Ident> data; | ||
|
||
//Contructor | ||
public HashLiteral(TerminalNode token, TYPE type, int level, ParserRuleContext declCtx) { | ||
super(token, type, level, declCtx); | ||
this.data = new ArrayList<>(); | ||
} | ||
|
||
//Setter & Getter | ||
public ArrayList<Ident> getData() { | ||
return data; | ||
} | ||
|
||
public void setData(ArrayList<Ident> data) { | ||
this.data = data; | ||
} | ||
|
||
//Return the size of Hash content | ||
public int len(){ | ||
return this.getData().size(); | ||
} | ||
|
||
//Return first element in Hash content | ||
public Ident first(){ | ||
return this.getData().get(0); | ||
} | ||
|
||
//Return last element in Hash content | ||
public Ident last(){ | ||
return this.getData().get(len()-1); | ||
} | ||
|
||
//Return Hash content with out first element | ||
public ArrayList<Ident> rest(){ | ||
this.getData().remove(0); | ||
return this.getData(); | ||
} | ||
|
||
//Insert value | ||
public Boolean push(Ident value){ | ||
try { | ||
this.getData().add(value); | ||
return true; | ||
}catch (Exception e){ | ||
return false; | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "\n(" + token.getSymbol().getLine()+ "," + token.getSymbol().getCharPositionInLine() + ") ID = " + super.getId() +", Name = " + token.getText() + ", Level = " + level+ ", Type = " + type + ", HASH Size = " + len() + ", Declaration Context=" + declCtx.getText(); | ||
} | ||
} |
Oops, something went wrong.