Skip to content

hashimoto-kei/aqua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

193 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aqua

Aqua is a small interpreted programming language implemented in Ruby.

Requirements

  • Ruby 3.4 or later

Usage

For example, save the following code as factorial.aq.

def f(n) {
  if (n == 0) {
    1
  } else {
    n * f(n - 1)
  }
}

x = 0
while (x <= 10) {
  y = f(x)
  x = x + 1
  p(y)
}

Then run it like this:

./aqua factorial.aq

Output:

❯ ./aqua factorial.aq
1
1
2
6
24
120
720
5040
40320
362880
3628800

Development

Clone the repository and run it locally.

git clone https://github.com/hashimoto-kei/aqua.git
cd aqua

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors