Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Akro Programming Language

Fast. Simple. Web-Ready. Created by Ankit Bishnoi (ankitkhileryy) · GitHub · v0.1.0

License: MIT Creator: Ankit Bishnoi Language: Go

Akro is created and maintained by Ankit Bishnoi (GitHub: ankitkhileryy), a 19-year-old developer from India.


What is Akro?

Akro is a modern programming language that combines:

  • 🐍 Python's simplicity — clean, readable syntax
  • Go's speed — fast execution, fast startup
  • 🌐 JavaScript's web power — transpiles to JS, runs in browser
fn main {
    name := "World"
    say "Hello, {name}!"

    nums := [1, 2, 3, 4, 5]
    total := reduce(nums, fn(a, b) { return a + b }, 0)
    say "Sum = {total}"
}

Install

Windows:

# Run as Administrator
.\install.ps1

From source (requires Go 1.21+):

git clone https://github.com/ST/akro
cd akro/src
go build -o akro.exe .

Usage

akro run main.ak          # Run a file
akro repl                 # Interactive shell
akro transpile main.ak    # Convert to JavaScript
akro check main.ak        # Type check
akro fmt main.ak          # Format code
akro version              # Show version

Syntax

// Variables (type inferred)
x := 10
name := "Akro"

// Functions
fn add(a, b) {
    return a + b
}

// If / Elif / Else
if x > 5 {
    say "big"
} elif x == 5 {
    say "equal"
} else {
    say "small"
}

// Loops
for i in 0..10 {
    say "i = {i}"
}

// Structs
struct Point {
    x: int
    y: int
}

// Pattern matching
match x {
    case 1 => say "one"
    case 2 | 3 => say "two or three"
    default => say "other"
}

// Error handling
try {
    throw "oops"
} catch(e) {
    say "Caught: {e}"
}

// Async/Await
async fn fetchData(url) {
    data := await http_get(url)
    return data
}

Web Development

Akro transpiles to JavaScript — write Akro, run in browser:

// app.ak
fn main {
    btn := document.getElementById("btn")
    btn.onclick = fn {
        say "Hello from Akro!"
    }
}
akro transpile app.ak   # → app.js
<script src="app.js"></script>

Comparison

Feature Akro Python JavaScript Go
Simple syntax
Fast execution
Web support
Type inference
String interpolation
Pattern matching
No semicolons

Roadmap

  • v0.1.0 — Interpreter, JS transpiler, REPL, builtins
  • v0.2.0 — VS Code extension, npm/pip package, stdlib
  • v0.3.0 — Native compiler, package manager, playground
  • v1.0.0 — Stable release

Contributing

Contributions welcome! Please read CONTRIBUTING.md first.


License

MIT License — Copyright (c) 2026 Ankit Bishnoi (ankitkhileryy)

Akro is an original language created by Ankit Bishnoi from India. GitHub: https://github.com/ankitkhileryy See LICENSE for details.


Akro — Fast. Simple. Web-Ready.
Created with by Ankit Bishnoi (ankitkhileryy) · India · 19

About

Fast. Simple. Web-Ready.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages