-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainScript.interOp
More file actions
164 lines (115 loc) · 1.96 KB
/
mainScript.interOp
File metadata and controls
164 lines (115 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
#PARSER#
**R name1 simple
x <- c(1:10)
print(x)
**/
# This is a comment yup
**python module2 simple
x = 3
print(x)
**/
**R moduu simple
x <- c(1:10)
y <- x^2
print(y)
print(x)
**/
**R rtester simple
args <- commandArgs(trailingOnly = TRUE)
qwe <- function(asd){
return(as.integer(asd)^2)
}
qwe(args[1])
**/
**lua luaTest simple
function fact (n)
if n == 0 then
return 1
else
return n * fact(n-1)
end
end
--print("enter a number:")
--a = io.read("*number")
print(fact(arg[1]))
--If you are using Lua
**/
**go goMod simple
package main
import "os"
import "fmt"
func main() {
arg := os.Args[1]
fmt.Println(arg)
}
**/
**Elixir testElixir simple
IO.puts "Hello world from Elixir"
**/
**bat testBat simple
echo hi
echo hi again
**/
**rust testRust simple
fn main() {
// The statements here will be executed when the compiled binary is called
// Print text to the console
println!("Hello World! from rust");
}
**/
**ruby testRuby simple
puts "Hello World From Ruby!"
puts ARGV[0]*3
**/
**perl testPerl simple
print "Hello, world!\n";
print qq=Did you say "Hello?"\n=;
print "$ARGV[0]\n";
**/
**dart testDart simple
void main() {
print('Hello, World! from dart');
}
**/
**java Helloworld simple
public class Helloworld {
public static void main(String[] args) {
// Prints "Hello, World" to the terminal window.
System.out.println("Hello, World from java");
}
}
**/
**js funJS simple
var x = 2;
console.log(x);
**/
# Testing function calls here
** funJS
** Helloworld
** testDart
** testPerl 3
** name1
** module2
** rtester 4
** luaTest 7
** goMod 4
** testElixir
** testBat
** testRust
** testRuby 4
# Testing pipe calls here
rtester **<< module2
testRuby **<< module2
goMod **<< module2
luaTest **<< module2
**R otherName matrix universal2
x <- 1:10
print(x)
universal2 <- cars
**/
**python pythonMod matrix unv3
x = "dog"
unv3 = x
**/
** otherName
** pythonMod