Skip to content

Commit aaf9016

Browse files
committed
[fix] ejecucion en windows
1 parent f6df86e commit aaf9016

File tree

3,042 files changed

+241
-1109342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,042 files changed

+241
-1109342
lines changed
Binary file not shown.

compilador/src/services/analizador_lexico/Prueba.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from lexico import lexer
1+
# from lexico import lexer
22
from parse import parser
3-
4-
def analizar_codigo(input_text):
3+
import ply.lex as lexer
4+
def analizar_codigo(input_text)->str:
55
lexer.input(input_text)
6-
for token in lexer:
7-
print(token)
6+
# for token in lexer:
7+
# print(token)
88
result = parser.parse(input_text)
9-
print(result)
9+
return result
1010

1111
Programa = """
1212
public class HolaMundo {
Binary file not shown.
Binary file not shown.

compilador/src/services/analizador_lexico/lexico.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import ply.lex as lex
2-
32
tokens = (
43
"IDENTIFICADOR",
54
"NUMERO_ENTERO",

compilador/src/services/analizador_lexico/lexico2.py

Lines changed: 0 additions & 228 deletions
This file was deleted.

0 commit comments

Comments
 (0)