from wngbuild import * # Import all from wngbuild library
build = BuildProfile(files="src/*.c",output="build/custom/prog.exe" ); # setup the files to compile and the output file
build.cc = "C:\MinGW\bin\gcc.exe" # optional, by default "gcc"
build.flags = "-W -Wall -Werror -Wextra" # optional
build.run() # run the compilation command
fun foo(a: number, b: string) : string => {
var moo = b, ": ", a;
return moo;
}
$ Some comment
var titi = 0; $ number
for i (0;55;1) {
moo += i;
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::process::Command; | |
// Declaring public function clone_from_github | |
pub fn clone_from_github(repo: &str) /* Taking one paramater (a string slice) */ { | |
let mut full_link = String::from("https://github.com/"); //Declaring a new variable of type String that is mutable | |
full_link.push_str(repo); // Adding repo name at the end of the string | |
Command::new("git") //running git command |