You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gunner edited this page Jun 11, 2022
·
2 revisions
Syntax
Syntax refers to the rules that define the structure of a language. Syntax in computer programming means the rules that control the structure of the symbols, punctuation, and words of a programming language. Without syntax, the meaning or semantics of a language is nearly impossible to understand.
What different symbols/characters mean
:: - An equivalent of the => symbol in JavaScript
~> and <~ - start and end to a object (or a function if you use it like this)
@variablefunctionThing=() :: ~>!!thingshere<~
< and > - JS equivalents to "[]". Used for getting a specific item in a arrays.
[ and ] - JS equivalents of "()". used for calling functions, and making them.