ayla extensionsyntax highlighting and ayla file icons ayla langayla lang is a small interpreted language written in go, designed to make you forget everything Because fuck you. - Linus Torvalds aboutour team
vs code extensionhttps://marketplace.visualstudio.com/items?itemName=z-sk1.ayla this will add syntax highlighting the featuresdeclaration and assignmentto declare a normal mutable, reassignable variable use egg
variables can be declared without an initial value, like so.
they default to to declare a constant, use rock
constants cannot be declared without an intitial value.
semicolonsemicolons are optional! put them if you want, or leave them out if you're more comfortable with that
this is totally fine
also valid booleansbooleans can be either yes or no
string concatenationyou can concatenate strings using the + operator.
you can also concatenate strings with other types by casting.
string interpolationyou can also interpolate strings using ${}
if/else if/elsein ayla-lang, if has been renamed to ayla, and else renamed to elen. therefore else if has been aptly renamed to elen ayla.
loopsfour loopthe for loop has been renamed to four loop, for convenience oh yea also no brackets for convenience
why loopthe while loop has been renamed to why loop, for convenience no brackets here either :>
kitkat and nextTake a break, take a kitkat because we are so nice, we renamed break to kitkat so it sticks in your memory oh yea we also renamed continue to next
functionsnuh uh now theyre called blueprints return has been renamed to back, haha
output: 12 you cant have a designated return type like this, yet
so uh have fun with that :-) arraysto initialise an array use square brackets: []
you can also index into an array, like normal
and you can reassign a specific index
built in functions!
See docs/builtins.md for more about built-in functions. runtime errorserror handling for runtime errors
parse errorserror handling for parse errors
parse errors will default to (got nothing) if there is nothing after the token
cli tooling and running scriptswindows instructionsto use the cli, please go to the releases tab and download the zip file. extract the zip, and put the exe file in a easy to access place, like C:\ayla put the file path in your PATH found in your System Environment Variables there isnt a REPL currently, so make sure to put ayla infront of every cmd runningto run a script do:
miscellaneousversion:
help:
|