-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Add name conventions e.g.
PascalCase: struct, enum, struct constructor macro
snake_case: var, list, broadcast, costume, proc, func, %include, sprite
SCREAMING_SNAKE_CASE: macro (%define)
Also add conventions like code ordering
%include inflator/cmath
%define PI_YAY 3.14159265358979323
costumes "blank.svg";
sounds "meow.wav";
struct Vec2 {
x, y
}
%define Vec2(x, y) (Vec2{x: x, y: y})
proc main {
Vec2 v = Vec2(1, 2);
log v.x & ", " & v.y;
log PI_YAY & " is cool!";
}
onflag {
main;
}i.e.
- includes & macros for compile time library customisation
- Const macros
- costumes and sounds
- general macros
- structs
- procs & funcs
- onflag and other hat blocks
Metadata
Metadata
Assignees
Labels
No labels