This commit is contained in:
NikolajDanger
2022-06-08 16:16:20 +02:00
parent 935c90f645
commit f4c608aaf2
5 changed files with 130 additions and 120 deletions

20
main.py
View File

@@ -2,13 +2,23 @@ from lexer import Lexer
from parser import Parser
text_input = """
DEFINI invoca i UT {
REDI i
VOCA FORS
DESIGNA correct VT FORTIS_NVMERVS I C
DESIGNA gvess VT NVLLVS
DVM FALSITAS FACE {
DESIGNA gvess VT AVDI_NVMERVS
SI gvess MINVS correct TVNC {
DICE "Too low!"
} ALVID SI gvess PLVS correct TVNC {
DICE "Too high!"
} ALVID {
ERVMPE
}
}
DESIGNA invoca UT I
DICE (INVOCA invoca invoca)
DICE "You guessed correctly!"
"""
lexer = Lexer().get_lexer()