Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Borrow Nim

Nim and Rust inspired language.
Install the latest release. Put the folder where you want it. Then run install.sh. You now should be able to compile .bn files.

Example:

# Importing standard libraries
use math
use cli
use string

# Get arguments
left_operand = rs_str_to_i32(rs_arg(1))
operator = rs_arg(2)
right_operand = rs_str_to_i32(rs_arg(3))

# Calculate and print
if rs_str_eq(operator,"+"):
    echo rs_i32_to_str(rs_add(left_operand,right_operand))
if rs_str_eq(operator,"-"):
    echo rs_i32_to_str(rs_sub(left_operand,right_operand))

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages