Skip to content
Beskid Beskid

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Language basics for the first program

Use the exact case shown in Beskid identifiers. The standard, not this summary, defines lexical and syntax behavior.

Open the Main.bd source from Write and run a program.

  1. Read the function from left to right:

    i32 Main() {
    return 0;
    }
  2. Interpret i32 as the function return type.

  3. Interpret Main as the case-sensitive default entrypoint name used by beskid run.

  4. Interpret () as an empty parameter list.

  5. Interpret { and } as the function body boundaries.

  6. Interpret return 0; as a return statement whose integer value is the process success status.

  7. Use the Beskid Standard for complete language requirements and the Book for lessons and larger examples.

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.

Return to Write and run a program to execute the source, or continue through the Book for structured language lessons.