nilac 0.0.4.1.9 → 0.0.4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/nilac +408 -411
- data/lib/nilac/version.rb +1 -1
- data/shark/test_files/correct_initialization.js +4 -4
- data/shark/test_files/correct_multiple_return.js +4 -4
- data/src/nilac.rb +406 -409
- metadata +1 -3
- data/shark/test_files/default_parameters.js +0 -21
- data/shark/test_files/string_interpolation.js +0 -17
data/lib/nilac/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
//Written using Nila. Visit http://adhithyan15.github.io/nila
|
2
2
|
(function() {
|
3
|
-
var first_name, last_name
|
3
|
+
var _ref1, first_name, last_name;
|
4
4
|
|
5
5
|
// This file demonstrates multiple variable initialization
|
6
6
|
|
@@ -10,11 +10,11 @@
|
|
10
10
|
return [name_split[0],name_split[1]];
|
11
11
|
}
|
12
12
|
|
13
|
-
|
13
|
+
_ref1 = parse_name("Adhithya Rajasekaran");
|
14
14
|
|
15
|
-
first_name =
|
15
|
+
first_name = _ref1[0];
|
16
16
|
|
17
|
-
last_name =
|
17
|
+
last_name = _ref1[1];
|
18
18
|
|
19
19
|
console.log(first_name + " " + last_name);
|
20
20
|
|
@@ -5,10 +5,10 @@
|
|
5
5
|
// This method demonstrates multiple return values
|
6
6
|
|
7
7
|
function parse_name(input_name) {
|
8
|
-
var
|
9
|
-
|
10
|
-
first_name =
|
11
|
-
last_name =
|
8
|
+
var _ref1, first_name, last_name;
|
9
|
+
_ref1 = input_name.split(" ");
|
10
|
+
first_name = _ref1[0];
|
11
|
+
last_name = _ref1[1];
|
12
12
|
return [first_name,last_name];
|
13
13
|
}
|
14
14
|
|