TEPL
v2.0.0
TEPL은 기본 프로그래밍 개념을 배우는 초보자를 대상으로 한 간단한 교육 프로그래밍 언어입니다. 프로그래밍 연습을위한 사용자 친화적 인 인터페이스를 제공합니다. TEPL은 기본 산술 계산, 가변 지원, 논리 연산자, 부울, 수학 연산자 인 경우 진술서 및 입력 문을 지원합니다.
자세한 정보 및 문서를 보려면 Tepl Docs를 방문하십시오.
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