Giter Site home page Giter Site logo

almaz-lang's Introduction

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

almaz-lang's People

Contributors

partur-dev avatar zst4rdust avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.