Language basics for the first program
Use the exact case shown in Beskid identifiers. The standard, not this summary, defines lexical and syntax behavior.
Orientation
Section titled “Orientation”Open the Main.bd source from Write and run a program.
Use the first-program syntax
Section titled “Use the first-program syntax”-
Read the function from left to right:
i32 Main() {return 0;} -
Interpret
i32as the function return type. -
Interpret
Mainas the case-sensitive default entrypoint name used bybeskid run. -
Interpret
()as an empty parameter list. -
Interpret
{and}as the function body boundaries. -
Interpret
return 0;as a return statement whose integer value is the process success status. -
Use the Beskid Standard for complete language requirements and the Book for lessons and larger examples.
Limits
Section titled “Limits”You can identify the return type, entrypoint, parameter list, body, statement terminator, and returned value in the first program.
If analysis rejects an example, copy the verified source exactly and analyze it before you add syntax. Check case, braces, parentheses, and the semicolon at the diagnostic span.
Next steps
Section titled “Next steps”Return to Write and run a program to execute the source, or continue through the Book for structured language lessons.