TEPL
v2.0.0
Tepl เป็นภาษาการเขียนโปรแกรมการศึกษาที่เรียบง่ายโดยมีจุดเริ่มต้นในการเรียนรู้แนวคิดการเขียนโปรแกรมขั้นพื้นฐาน มันมีอินเทอร์เฟซที่ใช้งานง่ายสำหรับการฝึกการเขียนโปรแกรม Tepl รองรับการคำนวณทางคณิตศาสตร์ขั้นพื้นฐานการสนับสนุนตัวแปรตัวดำเนินการตรรกะบูลีนตัวดำเนินการคณิตศาสตร์หากคำสั่งและคำสั่งอินพุต
สำหรับข้อมูลเพิ่มเติมและเอกสารให้เยี่ยมชมเอกสาร Tepl
Lexer สามารถพบได้ในไฟล์ src/lexer.py โหนด AST สามารถพบได้ในไฟล์ src/nodes.py Parser สามารถพบได้ในไฟล์ src/parser.py TransPiler สามารถพบได้ในไฟล์ 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