Keywords
In the terminalela --spec keywords
Every word the language keeps for itself, with the section that says what it does. ela --spec
and the word itself prints that section: ela --spec with, ela --spec catch. The names a script declares follow one style, Naming style (ela --spec naming-style).
| Keyword | Section | ela --spec |
|---|---|---|
alias | SHELL.md, Aliases | aliases |
and, or, not | Arithmetic | arithmetic |
break, continue | Control flow | control-flow |
case | switch | switch |
catch | catch | catch |
defer | defer | defer |
done | not ela's: end, Statements and blocks; no name either | statements-and-blocks |
else | Control flow | control-flow |
end | Statements and blocks | statements-and-blocks |
enum, struct | Structs and enums | structs-and-enums |
exec | Process control | process-control |
exit | Procs | procs |
fail | fail | fail |
export | not ela's: env.NAME = value, The environment | the-environment |
for, in | Control flow | control-flow |
if | Control flow | control-flow |
import | Files and imports | files-and-imports |
kill | kill | kill |
null | null | null |
print | not ela's: echo, Commands | commands |
proc, return | Procs | procs |
run | Process control | process-control |
spawn | not ela's: run, Process control | process-control |
spin | Progress and spinners | progress-and-spinners |
switch | switch | switch |
true, false | Types | types |
try | Error handling | error-handling |
wait | wait | wait |
when | Lists from for | lists-from-for |
while | Control flow | control-flow |
with | with | with |