We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11e8ffd commit 06b701aCopy full SHA for 06b701a
compilador/src/services/analizador_lexico/lexico.py
@@ -43,8 +43,13 @@
43
"class": "PALABRA_RESERVADA",
44
"if": "PALABRA_RESERVADA",
45
"else": "PALABRA_RESERVADA",
46
+ "do":"PALABRA_RESERVADA",
47
"while": "PALABRA_RESERVADA",
48
"for": "PALABRA_RESERVADA",
49
+ "switch": "PALABRA_RESERVADA",
50
+ "case": "PALABRA_RESERVADA",
51
+ "break": "PALABRA_RESERVADA",
52
+ "default": "PALABRA_RESERVADA",
53
"true": "PALABRA_RESERVADA",
54
"false": "PALABRA_RESERVADA",
55
"float": "TIPO_DATO",
@@ -212,4 +217,4 @@ def analizador_lexico(programa:str)->str:
212
217
if not token:
213
218
break
214
219
analisis.append(str(token)+"\n")
215
- return "".join(analisis)
220
+ return "".join(analisis)
0 commit comments