The Dala Formula Language is a light weight language, that is heavily inspired by Excel and Google Sheets formulas, for example: SUM(1, 2, 3, 4, 5) will yield 15.
It is currently a work in progress.
These primitive values are used as arguments and as return values from functions.
| Primitive | Description | Syntax |
| --------- | ------------------------------------------------ | -------------------- |
| Str | A string of characters enclosed by double quotes | "Hello World" |
| Num | A number | 1, 2.5, 3.1415 |
| Boolean | A boolean value | TRUE, FALSE |
CONCAT(a, b, c, ...) -> StrConcatenates all the arguments together into a single string.
This function takes one or more arguments.
Non Str arguments will be implictly converted to Str, before being concatenated.
| Name | Description | Type |
| ---- | -------------------------------------- | --------------------------- |
| a | The first string to concat | Str or Num or Boolean |
| b | The second string to concat (optional) | Str or Num or Boolean |
| ... | The rest of the strings (optional) | Str or Num or Boolean |
| Type | Description |
| ----- | --------------------------------------------- |
| Str | All arguments concatenated as a single string |
dala
CONCAT("Hello", " ", "World") -> "Hello World"
SUM(a, b, c, ...) -> NumSums all the arguments together.
This function takes one or more arguments.
| Name | Description | Type |
| ---- | --------------------------------------- | ----- |
| a | The first number to sum | Num |
| b | The second number to sum (optional) | Num |
| ... | The rest of the numbers to sum (option) | Num |
| Type | Description |
| ----- | ----------------------- |
| Num | All arguments summed up |
dala
SUM(1, 2, 3, 4, 5) -> 15
UPPER(a) -> StrConverts the string to upper case.
Non Str arguments will be implictly converted to Str, before being concatenated.
| Name | Description | Type |
| ---- | ------------------- | --------------------------- |
| a | The string to upper | Str or Num or Boolean |
| Type | Description |
| ----- | ------------------ |
| Str | The upper case str |
dala
UPPER("Hello World") -> "HELLO WORLD"