TEPL
v2.0.0
TEPLは、基本的なプログラミングの概念を学ぶための初心者向けのシンプルな教育プログラミング言語です。プログラミングを練習するためのユーザーフレンドリーなインターフェイスを提供します。 TEPLは、基本的な算術計算、変数サポート、ロジック演算子、ブール人、数学演算子の場合、ステートメントと入力ステートメントをサポートしています。
詳細とドキュメントについては、TEPLドキュメントをご覧ください。
lexerはsrc/lexer.pyファイルにあります。 ASTノードはsrc/nodes.pyファイルにあります。パーサーはsrc/parser.pyファイルにあります。トランスピラーは、 src/transpiler.pyファイルにあります。
ライセンス情報については、こちらをご覧ください。
ナンバー推測者ゲーム。
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