diff options
author | s-over-4 | 2023-06-12 16:22:46 -0400 |
---|---|---|
committer | s-over-4 | 2023-06-12 16:22:46 -0400 |
commit | c42c82d4c48a2e53e62ebd04c9ed1c03a4f42294 (patch) | |
tree | 5e355ca196363ebfc28af86cfb01530d949e1fb9 | |
parent | a56e2d453b9bbc811a8926dfcc8d406a46bfc03b (diff) |
oh
-rw-r--r-- | man.md | 56 |
1 files changed, 0 insertions, 56 deletions
@@ -1,56 +0,0 @@ -# The HALK Programming Language - -*version 0.0.1* - -*2023-05-22* - -# Syntax - -## Definitions - -HALK has no special definition keyword. When a keyword that has not been defined is called, the -interpreter will assume the user is defining a new variable. Definitions have 3 major components: - -1. The **Definition Tags** -2. The **Definition Args** -3. The **Definition Value** - -### Definition Tags - -Tags help describe the variable before it is given a value. This ensures it will be handled properly -in the future. A variable definition can have any number of tags, but the most important one by far -is the type. - -```halk -int:n = 5; -``` - -The type is always the first tag, and is terminated by a colon `:` character. Following the type, -the second most important tag is the name, in this case `n`. The name tag is always the last. In -between these, there can be any number of tags. - -```halk -int:mut:var = 4; -int:imut:var2 = 4; -``` - -In this case, `var` has the `mut` tag while `var2` has the `imut` tag. These indicate the -mutabillity of a variable. When not specified, the interpreter will assume `imut`. - -## Calls - -# Data Structures - -## Namespaces - -## Structs - -# Logic & Program Flow - -## If / Else - -## For / While - -## Cond - -# Style |