Run everything like a script!
Note that this might not be so stable as V is still in a very early stage. Maybe check the older version Executor
$ git clone https://github.com/Naheel-Azawy/runner.git
$ cd runner
$ make && sudo make install
$ rn hello.c
Or even better, add a shebang to your file test.vala:
#!/bin/rn
void main() { print ("Hello!\n"); }
$ chmod +x test.vala
$ ./test.vala
It's also possible to run a range of lines
$ ./test.ts --from 3 --to 5
One more cool feature! I leave you with examples:
$ rn -r Hello vala 'print (@"$(args[1]) from VALA\n")'
Hello from VALA
$ rn -r Hello c++ 'cout << argv[1] << " from CPP" << endl'
Hello from CPP
$ rn -r "1 1" c 'int i=atoi(argv[1]),j=atoi(argv[2]),k=i+j;printf("%d + %d = %d\n",i,j,k)'
1 + 1 = 2
Add this to you .emacs:
(defun run-program ()
(interactive)
(defvar cmd)
(setq cmd (concat "rn " (buffer-name) ))
(shell-command cmd))
(global-set-key [C-f5] 'run-program)

Yes! it comes with a gedit plugin!
./install-gedit
Create ~/.config/.runners.json. Example:
{
".js": {
"ext": "js",
"outFile": "'{sourceFile}'",
"cm": "",
"rn": "gjs {outFile}"
}
}
Binaries will be generated under '~/.cache/runnables directory.
GPL
20 commits
3 commits
V
55.6%
Shell
13.6%
Python
10.5%
Assembly
4.1%
Vala
3.5%
Makefile
2.9%
TypeScript
1.4%
Run everything like a script!
Note that this might not be so stable as V is still in a very early stage. Maybe check the older version Executor
$ git clone https://github.com/Naheel-Azawy/runner.git
$ cd runner
$ make && sudo make install
$ rn hello.c
Or even better, add a shebang to your file test.vala:
#!/bin/rn
void main() { print ("Hello!\n"); }
$ chmod +x test.vala
$ ./test.vala
It's also possible to run a range of lines
$ ./test.ts --from 3 --to 5
One more cool feature! I leave you with examples:
$ rn -r Hello vala 'print (@"$(args[1]) from VALA\n")'
Hello from VALA
$ rn -r Hello c++ 'cout << argv[1] << " from CPP" << endl'
Hello from CPP
$ rn -r "1 1" c 'int i=atoi(argv[1]),j=atoi(argv[2]),k=i+j;printf("%d + %d = %d\n",i,j,k)'
1 + 1 = 2
Add this to you .emacs:
(defun run-program ()
(interactive)
(defvar cmd)
(setq cmd (concat "rn " (buffer-name) ))
(shell-command cmd))
(global-set-key [C-f5] 'run-program)

Yes! it comes with a gedit plugin!
./install-gedit
Create ~/.config/.runners.json. Example:
{
".js": {
"ext": "js",
"outFile": "'{sourceFile}'",
"cm": "",
"rn": "gjs {outFile}"
}
}
Binaries will be generated under '~/.cache/runnables directory.
GPL
20 commits
3 commits
V
55.6%
Shell
13.6%
Python
10.5%
Assembly
4.1%
Vala
3.5%
Makefile
2.9%
TypeScript
1.4%