master
Can202 2021-09-29 17:46:56 -03:00
parent 7c6830d9e1
commit 22e9ef144a
2 changed files with 21 additions and 2 deletions

View File

@ -3,7 +3,17 @@ Friend is Pepe.
Protagonist is Lola.
Principal.
Pepe ask if 5 > 2.
Hi Number.
Number is 5.
Pepe ask if Number > 2.
Lola says Yes!.
End.
So Pepe ask if Number < 2.
Lola says No.
End.
So.
Lola says emmm.
End.
End.

View File

@ -26,7 +26,7 @@ if len(sys.argv) > 1:
elif sys.argv[u-1] == "--save":
savepath = sys.argv[u]
elif sys.argv[u] == "--version" or sys.argv[u] == "-v":
print("0.0.1")
print("0.0.2")
exit()
elif sys.argv[u] == "--python":
pythonexport = True
@ -77,6 +77,15 @@ if len(sys.argv) > 1:
save += init + "if " + func + ":"
save += "\n"
init += " "
elif commands[i].startswith("So " + friendname + " ask if "):
func = commands[i][len("So " + friendname + " ask if "):len(commands[i])]
save += init + "elif " + func + ":"
save += "\n"
init += " "
elif commands[i].startswith("So"):
save += init + "else:"
save += "\n"
init += " "
elif commands[i].lower().startswith("principal"):
save += init + "def main():"
save += "\n"