Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

nonamescm/nolang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nolang

NOTE:

I archived this repository as a way of showing to my friends how my old code looks like, just that. It doesn't have good code, it isn't fast even for a tree-walk interpreter. Just please ignore this if you want to review my coding skills.

A simple tree-walk interpreter written in rust

Why

Just to play with programming languages design

Syntax

all existing structures for now

@ variable
let x = 10


@ Power function

defn(n, by) pow_by =
    if by <= 1 then
        n
    else n*pow_by(n, by-1)

writeln(pow_by(2, 2))

do
    let nome = "nolang"
    writeln(nome + "!!")
end

TODO

  • Bytecode virtual machine
  • Types
  • Modules

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages