-
Notifications
You must be signed in to change notification settings - Fork 5
Minimal Program Structure
StavWasPlayZ edited this page Apr 14, 2026
·
8 revisions
This page will guide you in creating your first Codesh class.
TL;DR:
בס"ד
וישב בארץ ישראל:
ויהי עצם ושמו תוכנית נגלה היה ויאמר:
ויתם:
Every Codesh source file follow this structure:
- Opening declaration (typically
בס"ד) - Origin of land declaration
- Class(es)
In addition, every statement must end with :.
בס"ד
וישב בארץ ישראל:
ויהי עצם ושמו תוכנית נגלה היה ויאמר:
ויתם:
Is equivalent to Java's:
public class תוכנית {
}-
ויהי: And there was a... (creation) -
עצם: class -
שמו:: and its name was... -
תוכנית: (name of class)
To declare the class to be public, we can specify the Nigle modifier:
-
נגלה: public -
היה: it was
Closing the modifiers list requires the היה keyword.
We then define the class' scope using ויאמר/ויתם blocks.