TEPL
v2.0.0
TEPL是一种简单的教育编程语言,旨在初学者学习基本的编程概念。它提供了一个用于练习编程的用户友好界面。 TEPL支持基本的算术计算,可变支持,逻辑运算符,布尔值,数学运算符if语句和输入语句。
有关更多信息和文档,请访问TEPL文档。
可以在src/lexer.py文件中找到lexer。可以在src/nodes.py文件中找到AST节点。可以在src/parser.py文件中找到解析器。可以在src/transpiler.py文件中找到transpiler。
有关许可证信息,请在此处检查。
数字猜测游戏。
PC this is a comment, and this is an example of a basic number guessing game CP
forever do
set guess to 'Enter a number from 0 to 100: ' expecting input and num
set secret to random num from 0 to 100
if guess > 100 OR guess < 0 then
output $"Error: You inputed a number that is less than or greater than 0 or 100, it was $guess!"
elseif guess > secret OR guess < secret then
output $"Wrong guess! The secret number was...$secret!"
else then
output $"You got it right! The secret number was $secret!"
end
pause 1
exit
end