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,3 +1,3 @@
|
||||
SAY "Lesson 2: Ask a question"
|
||||
ASK "What is your name?" AS name
|
||||
ASK "What is your name?" name
|
||||
SAY "Hello " + name
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
SAY "Lesson 3: Variables"
|
||||
SET name TO "Alex"
|
||||
SET score TO 5
|
||||
SET name "Alex"
|
||||
SET score 5
|
||||
SAY name
|
||||
SAY score
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
SAY "Lesson 4: Math"
|
||||
SET apples TO 3
|
||||
SET oranges TO 2
|
||||
SET total TO apples + oranges
|
||||
SET apples 3
|
||||
SET oranges 2
|
||||
SET total apples + oranges
|
||||
SAY total
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
SAY "Lesson 5: Choices"
|
||||
SET score TO 8
|
||||
SET score 8
|
||||
|
||||
IF score >= 5
|
||||
SAY "You passed!"
|
||||
ELSE
|
||||
SAY "Try again."
|
||||
ENDIF
|
||||
END
|
||||
@@ -1,8 +1,7 @@
|
||||
SAY "Lesson 6: Loops"
|
||||
DO 3 TIMES
|
||||
SAY "Practice"
|
||||
DONE
|
||||
|
||||
END
|
||||
FOR i FROM 1 TO 3
|
||||
SAY i
|
||||
DONE
|
||||
END
|
||||
@@ -1,8 +1,8 @@
|
||||
SAY "Lesson 7: Lists"
|
||||
SET items TO LIST
|
||||
SET items LIST
|
||||
ADD "milk" TO items
|
||||
ADD "bread" TO items
|
||||
|
||||
FOR EACH item IN items
|
||||
SAY item
|
||||
DONE
|
||||
END
|
||||
@@ -1,8 +1,7 @@
|
||||
SAY "Lesson 8: Functions with TEACH"
|
||||
|
||||
TEACH greet TAKES name
|
||||
TEACH greet name
|
||||
RETURN "Hello " + name
|
||||
LEARNED
|
||||
|
||||
CALL greet WITH "Alex"
|
||||
END
|
||||
DO greet "Alex"
|
||||
SAY RESULT
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
SAY "Lesson 10: Tiny Quiz"
|
||||
ASK "What is 2 + 2?" AS answer
|
||||
ASK "What is 2 + 2?" answer
|
||||
|
||||
IF answer = 4
|
||||
SAY "Correct!"
|
||||
ELSE
|
||||
SAY "The answer is 4."
|
||||
ENDIF
|
||||
END
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
These are small lesson programs for the first hour of learning Claro.
|
||||
|
||||
These lessons use short `ASK` and `SET`, `TEACH` with `DO`, and `END` for
|
||||
choices, loops, and functions. See [the syntax guide](../docs/SYNTAX.md).
|
||||
|
||||
Recommended order:
|
||||
|
||||
1. `01_hello.claro` - show text with `SAY`
|
||||
|
||||
Reference in New Issue
Block a user