Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
/ xvr Public
forked from slowy07/xvr

The xvr programming language

License

Notifications You must be signed in to change notification settings

ahyalfan/xvr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

142 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image_banner

Feature

  • intermediate bytecode interpretation

Note

For more information about project you can check the docs for documentation about xvr, and you can check the sample code from code directory

Build Instruction

Note

For Windows using (mingw32 & Cygwin), For linux or Unix already support compiler

Build interpreter

# make the interpreter
make inter
# the compilation output
# can check on the /out directory
# including external library
make tests-cases
make inter

Say wello with Xvr

var nama: string = "arfy slowy";

print("wello " + nama);
var hitung: int = 1;

while (hitung < 10) {
  print(hitung);
  hitung += 1;
}

print ("woilah cik kelar loh ya");
proc wello(name: string) {
    return "wello " + name;
}

print(wello("xvr"));
// simple fibonacci

proc fibonacci(number: int): int {
    if (number < 2) {
        return number;
    }

    return fibonacci(number - 1) + fibonacci(number - 2);
}

// with looping using 'for' loops
for (var i: int = 0; i < 30; i++) {
    var hasil = fibonacci(i);
    print(hasil);
}

Need Tutorial?

You can check on tutorial for explore some tutorials.

Side project XvrLang

About

The xvr programming language

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.7%
  • Makefile 1.3%