PRINT "Welcome to PLanguage Compiler! Enter your file name to see the results." PRINT "/cls - clear the screen" PRINT "/edit - edit a file using notepad" PRINT "/exit - to exit this program"
menu:
l$ = replace$(l$, "[", "(")
l$ = replace$(l$, "]", ")")
x = x + 1
l$ = replace$(l$, "(", "")
l$ = replace$(l$, ")", "")
e$ = ""
l$ = replace$(l$, "{", "")
e$ = "for"
l$ = replace$(l$, "{", "")
l$ = replace$(l$, "{", "")
l$ = replace$(l$, "{", "") + " THEN"
e$ = "if"
l$ = replace$(l$, "{", "")
e$ = "funct"
l$ = replace$(l$, "(", "")
l$ = replace$(l$, ")", "")
l$ = replace$(l$, "{", "")
e$ = "while"
l$ = replace$(l$, "[", "(")
l$ = replace$(l$, "]", ")")
l$ = replace$(l$, "[", "(")
l$ = replace$(l$, "]", ")")
PRINT "Please try revising the code..." PRINT "Compiling Your File..." replace$
= replace$
+ to$
replace$ = replace$ + c$