Create the file
Luca files end in .lucc — the CLI refuses anything else. Create hello.lucc.
print("Hello, Luca!")
Run it
One command, one exact line of output.
luca hello.luccHello, Luca!
Make it yours
Variables and interpolation — {name} inside a string inserts the value.
def const name (str) = "Luca"
def var visits (int) = 1
visits (int) = visits + 1
print("Hello, {name}! Visit {visits}")Notes for your first hour
print(...)takes exactly one argument. Combine values with interpolation:print("a and {b}").- Luca programs run top to bottom; there is no
main()to declare. - Lines starting with
--are comments. - Comparisons are worded:
if visits is > to 1 then :(the:starts an indented block).
Explore
Examples per feature, the full guide, and the editor.
Examples
Runnable programs
examples/ has one program per feature (arithmetic.lucc, conditional.lucc, errors.lucc). Try luca examples/errors.lucc.
Rules
Language guide
Types, blocks, functions, collections, modules, and errors — condensed into one guide.
Editor
VS Code setup
Highlighting, snippets, and one-click run for .lucc files.
When something goes wrong
Read errors as what + where. Fix the spot, re-run.
Error at 2:5: 'visits' is not declared