Skip to content

BlidDev/Niv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Niv

drawing

Niv is a fairly simple interpreted langauge written in Rust, being the unofficial spritiual succesor of Glang.

The main goal behind this project was to make a language capable of ed expressions (like printf("%d\n", 1 + 1) for example).

If you want to learn more about the development of this langauge check out the video I made about the process.

Wiki

Niv holds a detailed wiki about almost every aspect of language, check these two pages out to get started:

Other pages can be found over in the wiki tab.

Code example:

Here is an example code sinppet that prints your info using sturcts:

@Person
 name : ""
 age : 0
@Person

#MAIN |
    set name (input "Enter your name: ")
    set age (inputcast i32 "Enter your age: ")
    set obj (make Person $name $age)
    print "Your info is: {}\n" $obj
#MAIN

Libraries used for this project

  • unescape
  • snailquote
  • unstringify
  • sfml-rs
  • device_query
  • clap

Special Thanks

Thanks a bunch for

For helping throughout the project in many forms and again for Dorbell going over and refining the Niv wiki.


Thanks for checking out Niv! :D