fix: stabilize learning path, reliability and legacy Windows builds
Unify beginner syntax while preserving compatibility, repair ownership and parser guards, add verified distribution tooling and VC6 Windows 98 build inputs, and clarify documentation and release status. Preserve DOS build-input line endings and exclude generated binaries/caches.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
SAY "Claro Calculator"
|
||||
ASK "First number?" AS a
|
||||
ASK "Second number?" AS b
|
||||
ASK "First number?" a
|
||||
ASK "Second number?" b
|
||||
|
||||
SAY "Sum:"
|
||||
SAY a + b
|
||||
|
||||
@@ -2,20 +2,19 @@
|
||||
# Shows how to use DO TIMES and REPEAT loops
|
||||
|
||||
SAY "Counting with DO TIMES:"
|
||||
SET counter TO 1
|
||||
SET counter 1
|
||||
|
||||
DO 5 TIMES
|
||||
SAY counter
|
||||
SET counter TO counter + 1
|
||||
DONE
|
||||
|
||||
SET counter counter + 1
|
||||
END
|
||||
SAY ""
|
||||
SAY "Counting down with REPEAT:"
|
||||
SET n TO 5
|
||||
SET n 5
|
||||
|
||||
REPEAT
|
||||
SAY n
|
||||
SET n TO n - 1
|
||||
SET n n - 1
|
||||
UNTIL n = 0
|
||||
|
||||
SAY "Blastoff!"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
SAY "Guess the Number Game"
|
||||
|
||||
SET secret TO 7
|
||||
SET secret 7
|
||||
|
||||
ASK "Guess a number from 1 to 10:" AS guess
|
||||
ASK "Guess a number from 1 to 10:" guess
|
||||
|
||||
IF guess = secret
|
||||
SAY "You got it!"
|
||||
ELSE
|
||||
SAY "Not this time. The number was:"
|
||||
SAY secret
|
||||
ENDIF
|
||||
END
|
||||
@@ -1,5 +1,5 @@
|
||||
SAY "Name Input Example"
|
||||
|
||||
ASK "What is your name?" AS name
|
||||
ASK "What is your name?" name
|
||||
|
||||
SAY "Hello " + name + "!"
|
||||
|
||||
+9
-11
@@ -1,28 +1,26 @@
|
||||
SAY "Welcome to the Claro quiz!"
|
||||
|
||||
ASK "What is your name?" AS name
|
||||
ASK "What is your name?" name
|
||||
SAY "Hello " + name + "!"
|
||||
|
||||
SET score TO 0
|
||||
SET score 0
|
||||
|
||||
ASK "What is 2 + 2?" AS answer
|
||||
ASK "What is 2 + 2?" answer
|
||||
|
||||
IF answer = 4
|
||||
SAY "Correct!"
|
||||
SET score TO score + 1
|
||||
SET score score + 1
|
||||
ELSE
|
||||
SAY "Not quite. The answer is 4."
|
||||
ENDIF
|
||||
|
||||
ASK "What is 5 + 5?" AS answer2
|
||||
END
|
||||
ASK "What is 5 + 5?" answer2
|
||||
|
||||
IF answer2 = 10
|
||||
SAY "Correct!"
|
||||
SET score TO score + 1
|
||||
SET score score + 1
|
||||
ELSE
|
||||
SAY "Not quite. The answer is 10."
|
||||
ENDIF
|
||||
|
||||
END
|
||||
SAY "Your final score is:"
|
||||
SAY score
|
||||
|
||||
@@ -30,4 +28,4 @@ IF score = 2
|
||||
SAY "Great job!"
|
||||
ELSE
|
||||
SAY "Good try. Keep practicing!"
|
||||
ENDIF
|
||||
END
|
||||
@@ -1,6 +1,6 @@
|
||||
SAY "Shopping List Example"
|
||||
|
||||
SET items TO LIST
|
||||
SET items LIST
|
||||
ADD "milk" TO items
|
||||
ADD "bread" TO items
|
||||
ADD "apples" TO items
|
||||
@@ -9,4 +9,4 @@ SAY "Items to buy:"
|
||||
|
||||
FOR EACH item IN items
|
||||
SAY item
|
||||
DONE
|
||||
END
|
||||
Reference in New Issue
Block a user