Skip to content

Partur-dev/almaz-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Almaz Lang

Best programming language ever created

Since it is difficult to learn a new language just to write super cool programs, we came up with a solution - Almaz 💎

Variables

declare variable
  named cat
  with value "kafif"

Function

declare function
  named add
  with args a, b
    return sum of a and b

Calling functions

declare variable
  named res

put result of
  function add
    with args 1, 2
  to variable res

call function print
  with args res

Comments

comment

comment
  this code probably causes memory leaks
  (probably)

"..."

"this code probably causes memory leaks"
"(probably)"

i think ...

i think this code probably causes memory leaks
i think (probably)

... thinks ...

nekita thinks this code probably causes memory leaks
nekita thinks (probably)

... said ...

nekita said this code probably causes memory leaks
nekita said (probably)

Boolean values

true, false
yes, no

yes is true
no is false

Array values

declare variable
  named array
  with value array
    1, 2, 5, "bubilda", true

declare function
  named getArray
    return array
      1, 2, 5, "bubilda", true

If statements

declare variable
  named name
  with value "maksim"

if name is "nikita"
  call function print
    with args "nikita idi nahui"
else
  if name is "maksim"
    call function print
      with args "maksim ti furry boykisser"
  else
    if name is "bogdan"
      call function print
        with args "patur di nahui"
    else
      call function print
        with args "undefined (js reference)"

The only loop

while yes
  call function print
    with args "endless loop"

Classes

declare class
  named cat
    declare function
      named meow
        call function print
          with args "meow!!!"

declare class
  named gosha
  extends cat
    declare function
      named meow
        call function print
          with args "AOAOAAAAAAAAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIOOOOOOOOO"

declare variable
  named new cat
  with value
    new cat

declare variable
  named kakodav
  with value
    new gosha

call function meow
  inside of new cat

call function meow
  inside of kakodav

Structs

declare struct
  named vector 2
    declare variable
      named x
    declare variable
      named y

declare variable
  named player position
  with value
    new vector 2

assign x
  inside of player position
    to the 10

assign y
  inside of player position
    to the yes

call function print
  with args x
    inside of player position,
  y
    inside of player position

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published