Skip to content

Commit 8483e8d

Browse files
committed
images folder
1 parent d4b59df commit 8483e8d

15 files changed

+26
-13
lines changed

.idea/libraries/antlr_4_8_complete__2_.xml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MonkeyScanner.g4

+8-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
lexer grammar MonkeyScanner;
55
//-------------------------------------------------------------------------------------------------------------------
66

7-
87
//-------------------------------------------------------------------------------------------------------------------
98
// Separators
109
//-------------------------------------------------------------------------------------------------------------------
@@ -27,8 +26,6 @@ EQUAL : '==';
2726
GT : '>';
2827
LT : '<';
2928
ASSIGN : '=';
30-
31-
3229
// basics
3330
ADD : '+';
3431
SUB : '-';
@@ -66,11 +63,16 @@ IDENT : [a-zA-Z]([a-zA-Z]|[0-9]|'_')*;
6663
//-------------------------------------------------------------------------------------------------------------------
6764
// Skiped
6865
//-------------------------------------------------------------------------------------------------------------------
66+
WS : [ \r\t\n]+ -> skip ;
67+
BLOCK_COMMENT : '/*' .*? '*/' -> skip;
68+
SINGLE_COMMENT : '//' ~[\r\n]* '\r'? '\n' -> skip ;
69+
70+
71+
72+
6973
//comments: (SingleLineComment | MultiLineComment)*;
7074
//SingleLineComment : '//' ~('\r' | '\n')* ;
7175
//MultiLineComment : '/*' .* '*/';
7276

73-
WS : [ \r\t\n]+ -> skip ;
74-
BLOCK_COMMENT : '/*' .*? '*/' -> skip;
75-
SINGLE_COMMENT : '//' ~[\r\n]* '\r'? '\n' -> skip ;
77+
7678

Proyecto Compi.iml

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
<orderEntry type="sourceFolder" forTests="false" />
1010
<orderEntry type="library" name="antlr-4.8-complete" level="project" />
1111
<orderEntry type="library" name="rsyntaxtextarea-3.1.1" level="project" />
12+
<orderEntry type="library" name="antlr-4.8-complete (2)" level="project" />
1213
</component>
1314
</module>

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ RSyntaxTextArea es un componente de texto de resaltado de sintaxis personalizabl
1818

1919
**Tip: Para la solución del Scanner, se utilizo la librería ANTLR v4**.
2020

21-
![Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.11.36_AM.jpeg](Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.11.36_AM.jpeg)
21+
![images/WhatsApp_Image_2020-10-12_at_1.11.36_AM.jpeg](Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.11.36_AM.jpeg)
2222

23-
![Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.12.39_AM.jpeg](Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.12.39_AM.jpeg)
23+
![images/WhatsApp_Image_2020-10-12_at_1.12.39_AM.jpeg](Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.12.39_AM.jpeg)
2424

2525
# Parser
2626

2727
Tip: Para la solución del Parser al igual que el Scanner, se utilizo la librería ANTLR v4.
2828

29-
![Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.13.47_AM.jpeg](Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.13.47_AM.jpeg)
29+
![images/WhatsApp_Image_2020-10-12_at_1.13.47_AM.jpeg](Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.13.47_AM.jpeg)
3030

31-
![Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.14.33_AM.jpeg](Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.14.33_AM.jpeg)
31+
![images/WhatsApp_Image_2020-10-12_at_1.14.33_AM.jpeg](Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.14.33_AM.jpeg)
3232

3333
# Interfaz
3434

3535
Tip: Para la solución de la interfaz, se utilizo la librería Rsyntaxtextarea para poder visualizar de una mejor manera el código, .
3636

37-
![Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.25.03_AM.jpeg](Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.25.03_AM.jpeg)
37+
![images/WhatsApp_Image_2020-10-12_at_1.25.03_AM.jpeg](Proyecto%20#1%20de%20Compiladores%20b98dc3bba0644d53ac678f5e03d418a2/WhatsApp_Image_2020-10-12_at_1.25.03_AM.jpeg)
Loading
Loading
Loading
Loading
Loading
File renamed without changes.
File renamed without changes.
-274 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

src/IDLE.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class IDLE {
2424
public RSyntaxTextArea terminal = new RSyntaxTextArea();
2525
public JScrollPane scrollPane = new JScrollPane(codeArea);
2626
public JSplitPane panel = new JSplitPane();
27-
public Font font = new Font("Segoe Script", Font.BOLD, 20);
27+
public Font font = new Font("Console", Font.BOLD, 14);
2828

2929
public File archive = new File("");
3030
public String ruta = "";
@@ -61,7 +61,6 @@ public String getXYText(int x, int y) {
6161
} catch (BadLocationException e) {
6262
e.printStackTrace();
6363
}
64-
System.out.println("==> " + text);
6564
return text;
6665
}
6766
}

src/Window.java

+1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ private JSplitPane getPanels() {
263263
IDLE.getInstance().codeArea.setBracketMatchingEnabled(true);
264264
IDLE.getInstance().codeArea.setCloseMarkupTags(true);
265265
IDLE.getInstance().codeArea.setAnimateBracketMatching(true);
266+
//IDLE.getInstance().codeArea.setFont(IDLE.getInstance().font);
266267

267268
RTextScrollPane sp = new RTextScrollPane(IDLE.getInstance().codeArea);
268269
sp.setLineNumbersEnabled(true);

0 commit comments

Comments
 (0)