Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keywords Reference

This page summarizes the keywords and reserved terms that appear in the current Sydrogen documentation.

KeywordMeaning
NunctionFunction that does not return a value
functionFunction with a dynamic return type
ReturnEnds a returning function and sends a value to its caller
OpenVisibility modifier
ClosedVisibility modifier
ShowcaseVisibility modifier currently parsed but not code-generated
NumberInternal category for numeric types
IntInteger type
FloatFloating-point type
WeldString type
StringAlias of the canonical Weld type
Bool / BooleanBoolean type
OreArray or tuple type indicator
MaterialsList type
GenericGeneric list element type
IfConditional statement
ElseConditional fallback
SwitchEvaluates one value and selects the first matching Case
CaseIntroduces one or more values in a Switch
BaseFinal fallback branch in a Switch
WhileWhile loop
ForFor loop
DoIntroduces a protected error-handling block
CatchHandles the first matching typed error
FinallyRuns cleanup after a protected block
ThrowConstructs and propagates a typed error
ErrorRoot of the built-in error hierarchy
StopStructured early exit
ProgramRuntime namespace
UseModule import path
UsingImported symbol from a module
DataStructured data declaration

A number of these keywords are present in the parser or AST, but not yet fully implemented in every backend. See Switch Statements, Error Handling, Current Limitations, and the language chapters for the current status.


← Previous Next →