nilac 0.0.4.3.9.7.1 → 0.0.4.3.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -2
  3. data/Rakefile +1 -1
  4. data/cookbook/case_insensitive_compare.js +13 -0
  5. data/cookbook/case_insensitive_compare.nila +7 -0
  6. data/cookbook/compare_strings.js +13 -0
  7. data/cookbook/compare_strings.nila +7 -0
  8. data/cookbook/concat11.js +13 -0
  9. data/cookbook/concat11.nila +4 -0
  10. data/cookbook/concat12.js +23 -0
  11. data/cookbook/concat12.nila +15 -0
  12. data/cookbook/find_substring.js +15 -0
  13. data/cookbook/find_substring.nila +5 -0
  14. data/cookbook/string_interpolation.js +7 -0
  15. data/cookbook/string_interpolation.nila +1 -0
  16. data/cookbook/substring_extract.js +21 -0
  17. data/cookbook/substring_extract.nila +8 -0
  18. data/examples/my_file.js +5 -0
  19. data/examples/repl.js +0 -33
  20. data/examples/repl.nila +36 -8
  21. data/examples/temp_nila.nila +63 -0
  22. data/lib/nilac.rb +83 -68
  23. data/lib/nilac/add_line_numbers.rb +17 -0
  24. data/lib/nilac/add_semicolons.rb +13 -3
  25. data/lib/nilac/compile_arrays.rb +38 -5
  26. data/lib/nilac/compile_blocks.rb +87 -25
  27. data/lib/nilac/compile_case_statement.rb +4 -0
  28. data/lib/nilac/compile_chained_comparison.rb +35 -0
  29. data/lib/nilac/compile_comments.rb +9 -0
  30. data/lib/nilac/compile_conditional_structures.rb +26 -3
  31. data/lib/nilac/compile_custom_function_map.rb +24 -2
  32. data/lib/nilac/compile_hashes.rb +3 -1
  33. data/lib/nilac/compile_heredocs.rb +2 -0
  34. data/lib/nilac/compile_inline_for.rb +13 -0
  35. data/lib/nilac/compile_interpolated_strings.rb +184 -5
  36. data/lib/nilac/compile_lambdas.rb +24 -8
  37. data/lib/nilac/compile_new_keyword.rb +37 -0
  38. data/lib/nilac/compile_nilac_options.rb +79 -0
  39. data/lib/nilac/compile_parallel_assignment.rb +3 -1
  40. data/lib/nilac/compile_ranges.rb +60 -0
  41. data/lib/nilac/compile_require_statements.rb +4 -2
  42. data/lib/nilac/compile_ruby_math.rb +20 -0
  43. data/lib/nilac/compile_ruby_methods.rb +49 -0
  44. data/lib/nilac/compile_whitespace_delimited_functions.rb +15 -1
  45. data/lib/nilac/extract_paranthesis_contents.rb +37 -0
  46. data/lib/nilac/extract_strings.rb +63 -0
  47. data/lib/nilac/fix_javascript_traps.rb +89 -0
  48. data/lib/nilac/friendly_errors.rb +128 -0
  49. data/lib/nilac/get_variables.rb +48 -14
  50. data/lib/nilac/lexical_scoped_function_variables.rb +1 -3
  51. data/lib/nilac/optimizer.rb +13 -0
  52. data/lib/nilac/paranthesis_compactor.rb +3 -1
  53. data/lib/nilac/parse_arguments.rb +21 -7
  54. data/lib/nilac/pretty_print_javascript.rb +152 -18
  55. data/lib/nilac/pretty_print_nila.rb +17 -0
  56. data/lib/nilac/replace_comparison_operators.rb +25 -0
  57. data/lib/nilac/replace_multiline_comments.rb +4 -0
  58. data/lib/nilac/replace_singleline_comments.rb +23 -0
  59. data/lib/nilac/replace_strings.rb +3 -3
  60. data/lib/nilac/rollblocks.rb +7 -3
  61. data/lib/nilac/split_semicolon_seperated_expressions.rb +3 -17
  62. data/lib/nilac/square_brackets_compactor.rb +37 -0
  63. data/lib/nilac/version.rb +1 -1
  64. data/shark/features/arrays.feature +11 -0
  65. data/shark/features/builtin_new.feature +11 -0
  66. data/shark/features/comments.feature +11 -0
  67. data/shark/features/fix_newlines.feature +1 -1
  68. data/shark/features/variables.feature +11 -0
  69. data/shark/test_files/array_string_indexing.nila +5 -1
  70. data/shark/test_files/arrays.nila +3 -0
  71. data/shark/test_files/blocks.nila +10 -0
  72. data/shark/test_files/builtin_new.nila +3 -0
  73. data/shark/test_files/case.nila +8 -0
  74. data/shark/test_files/chained_comparison.nila +19 -0
  75. data/shark/test_files/comments.nila +15 -0
  76. data/shark/test_files/correct.js +1 -1
  77. data/shark/test_files/correct_arrays.js +7 -0
  78. data/shark/test_files/correct_blocks.js +14 -1
  79. data/shark/test_files/correct_builtin_new.js +9 -0
  80. data/shark/test_files/correct_case.js +10 -2
  81. data/shark/test_files/correct_comments.js +19 -0
  82. data/shark/test_files/correct_conditional_assignment.js +1 -1
  83. data/shark/test_files/correct_default_parameters.js +1 -1
  84. data/shark/test_files/correct_for.js +1 -1
  85. data/shark/test_files/correct_hashes.js +1 -1
  86. data/shark/test_files/correct_heredoc.js +6 -2
  87. data/shark/test_files/correct_if_then_else.js +5 -1
  88. data/shark/test_files/correct_indexing.js +7 -3
  89. data/shark/test_files/correct_initialization.js +1 -1
  90. data/shark/test_files/correct_javascript_methods.js +1 -1
  91. data/shark/test_files/correct_loop.js +1 -1
  92. data/shark/test_files/correct_monkey_patch.js +1 -1
  93. data/shark/test_files/correct_multiline_array.js +1 -1
  94. data/shark/test_files/correct_multiple_return.js +1 -1
  95. data/shark/test_files/correct_numbers.js +1 -1
  96. data/shark/test_files/correct_operators.js +1 -1
  97. data/shark/test_files/correct_regular_if.js +1 -1
  98. data/shark/test_files/correct_regular_while.js +1 -1
  99. data/shark/test_files/correct_required_module.js +1 -1
  100. data/shark/test_files/correct_return.js +1 -1
  101. data/shark/test_files/correct_ruby_methods.js +1 -1
  102. data/shark/test_files/correct_single_return.js +1 -1
  103. data/shark/test_files/{perfect.js → correct_spacing.js} +1 -1
  104. data/shark/test_files/correct_splats.js +1 -2
  105. data/shark/test_files/correct_string_interpolation.js +8 -2
  106. data/shark/test_files/correct_string_operators.js +1 -1
  107. data/shark/test_files/correct_times.js +1 -1
  108. data/shark/test_files/correct_unless_until.js +2 -4
  109. data/shark/test_files/correct_variables.js +13 -0
  110. data/shark/test_files/correct_whitespace_delimiter.js +1 -1
  111. data/shark/test_files/existential_operators.nila +7 -0
  112. data/shark/test_files/expression.nila +6 -0
  113. data/shark/test_files/global_variables_client.nila +5 -0
  114. data/shark/test_files/heredoc.nila +11 -1
  115. data/shark/test_files/if_then_else.nila +3 -1
  116. data/shark/test_files/inline_for.nila +5 -0
  117. data/shark/test_files/no_return.js +11 -0
  118. data/shark/test_files/parseInt_trap.nila +3 -0
  119. data/shark/test_files/single_return.js +11 -0
  120. data/shark/test_files/string_interpolation.nila +7 -1
  121. data/shark/test_files/variables.nila +7 -0
  122. metadata +54 -3
@@ -0,0 +1,19 @@
1
+ //Written using Nila. Visit http://adhithyan15.github.io/nila
2
+ (function () {
3
+ var square;
4
+
5
+ /*
6
+ This code was written by Adhithya Rajasekaran
7
+ This is licensed under the MIT License
8
+ */
9
+
10
+ // square method takes a number and
11
+ // returns the square of the number
12
+
13
+ square = function(num) {
14
+ return num*num;
15
+ };
16
+
17
+ square(5);
18
+
19
+ }).call(this);
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var a, b;
4
4
 
5
5
  // This file demonstrates the conditional assignment operator in Nila
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var fill;
4
4
 
5
5
  // This is a demo of default parameters
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var _i, _j, _ref1, fruit, fruits, x;
4
4
 
5
5
  _ref1 = [1,2,3,4];
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var inst_section, student_ages, variable;
4
4
 
5
5
  // This file demonstrates several Hash features in Nila
@@ -1,6 +1,6 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
3
- var numbers;
2
+ (function () {
3
+ var email, name, numbers;
4
4
 
5
5
  console.log("Grocery list\n----\n1. Salad mix.\n2. Strawberries.*\n3. Cereal.\n4. Milk.*\n \n* Organic\n");
6
6
 
@@ -8,4 +8,8 @@
8
8
 
9
9
  numbers.push(7);
10
10
 
11
+ name = "Mr. Lorum";
12
+
13
+ email = "Dear " + (name) + ",\nUnfortunately we cannot process your insurance claim at this\ntime. This is because we are a bakery, not an insurance company.\nSigned,\n Nil, Null, and None\n Bakers to Her Majesty the Singleton\n";
14
+
11
15
  }).call(this);
@@ -1,7 +1,11 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var date;
4
4
 
5
5
  date = friday ? sue : jill;
6
6
 
7
+ if (!(x === 1)) {
8
+ console.log("x is not 1");
9
+ }
10
+
7
11
  }).call(this);
@@ -1,10 +1,14 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var copy, first_name, last, middle, name, name_copy, numbers, second_name, start;
4
4
 
5
5
  numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9];
6
6
 
7
- start = numbers.slice(0,2+1);
7
+ start = numbers.slice(0,3);
8
+
9
+ start = numbers.slice(0,3);
10
+
11
+ middle = numbers.slice(3,6);
8
12
 
9
13
  middle = numbers.slice(3,6);
10
14
 
@@ -16,7 +20,7 @@
16
20
 
17
21
  name = "Adhithya Rajasekaran";
18
22
 
19
- first_name = name.slice(0,7+1);
23
+ first_name = name.slice(0,8);
20
24
 
21
25
  second_name = name.slice(9);
22
26
 
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var _ref1, count, current_val, first_name, last_name, next_val, parse_name;
4
4
 
5
5
  // This file demonstrates multiple variable initialization
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var commandline_args, overspeed;
4
4
 
5
5
  if ((typeof console !== "undefined" && console !== null)) {
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var i;
4
4
 
5
5
  i=0;
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var avg, nums, sum;
4
4
 
5
5
  Array.prototype.sum = function() {
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var myarray, name, numbers;
4
4
 
5
5
  numbers = [1,2,3,4,5,6,7,8,9,10];
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var parse_name, parsed_name, test_method;
4
4
 
5
5
  // This method demonstrates multiple return values
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var million;
4
4
 
5
5
  million = 1000000 + 7000000;
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var a, line;
4
4
 
5
5
  a = Math.pow(2,3);
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  if (visitor_present) {
4
4
  if (active || happy) {
5
5
  console.log("Hello Wonderful Visitor!");
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var counter;
4
4
 
5
5
  counter = 1;
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var fs, http;
4
4
 
5
5
  fs = require('fs');
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var subtract;
4
4
 
5
5
  subtract = function(num1,num2) {
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var jsonp, jsonprint, name, parsejson;
4
4
 
5
5
  name = "Adhithya Rajasekaran ".replace(/\s+$/g,"");
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var subtract;
4
4
 
5
5
  subtract = function(num1,num2) {
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var goal_reached, hello, message, msg, square;
4
4
 
5
5
  hello = "world";
@@ -1,9 +1,8 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var args_unleashed, default_args, mixed_args, two_or_more;
4
4
 
5
5
  // These example were taken from The Well Grounded Rubyist by Manning
6
-
7
6
  // Copyright: Manning Publications
8
7
 
9
8
  two_or_more = function() {
@@ -1,9 +1,11 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
3
- var msg;
2
+ (function () {
3
+ var msg, number, x;
4
4
 
5
5
  //This file tests the limits of the string interpolation feature present in Nila
6
6
 
7
+ number = 5;
8
+
7
9
  msg = "Hello " + ("world. A lovely place.") + "" + "Another " + ("Lovely quote");
8
10
 
9
11
  console.log(msg);
@@ -14,4 +16,8 @@
14
16
 
15
17
  console.log('Hello');
16
18
 
19
+ console.log("We're #" + (number) + "!");
20
+
21
+ console.log("I've set x to " + (x = 5, x += 1) + ".");
22
+
17
23
  }).call(this);
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var str;
4
4
 
5
5
  // This file demonstrates different ways to declare a string
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var _i, _j, a;
4
4
 
5
5
  a = 5;
@@ -1,11 +1,9 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var i;
4
4
 
5
5
  // This file demonstrates unless and until statements.
6
-
7
- // Examples are from http://www.skorks.com/2009/09/a-wealth-of-ruby-loops-and-iterators/ and
8
-
6
+ // Examples are from http://www.skorks.com/2009/09/a-wealth-of-ruby-loops-and-iterators/ and
9
7
  // http://37signals.com/svn/posts/2699-making-sense-with-rubys-unless
10
8
 
11
9
  if (!(person.present)) {
@@ -0,0 +1,13 @@
1
+ //Written using Nila. Visit http://adhithyan15.github.io/nila
2
+ (function () {
3
+ var average_temperature, end_counter, one, six, start_counter, three, two, wind_speed;
4
+
5
+ start_counter = end_counter = 0;
6
+
7
+ six = (one = 1) + (two = 2) + (three = 3);
8
+
9
+ wind_speed = 25;
10
+
11
+ average_temperature = 32; // an example of Pogoscript variables
12
+
13
+ }).call(this);
@@ -1,5 +1,5 @@
1
1
  //Written using Nila. Visit http://adhithyan15.github.io/nila
2
- (function() {
2
+ (function () {
3
3
  var return_number, square;
4
4
 
5
5
  square = function(input_number) {
@@ -0,0 +1,7 @@
1
+ if console.exist?
2
+ console.log "I am here!"
3
+ end
4
+
5
+ if console.?
6
+ console.log "I am here!"
7
+ end
@@ -0,0 +1,6 @@
1
+ result =
2
+ if condition
3
+ x
4
+ else
5
+ y
6
+ end
@@ -0,0 +1,5 @@
1
+ def $onload
2
+ document.getElementById('testButton').onclick = lambda do
3
+ document.getElementById('xyz').style.color = 'red'
4
+ end
5
+ end
@@ -11,4 +11,14 @@ Hello
11
11
 
12
12
  numbers = [1,2,3,4,5,6,7]
13
13
 
14
- numbers << 7
14
+ numbers << 7
15
+
16
+ name = "Mr. Lorum"
17
+ email = <<-END
18
+ Dear #{name},
19
+ Unfortunately we cannot process your insurance claim at this
20
+ time. This is because we are a bakery, not an insurance company.
21
+ Signed,
22
+ Nil, Null, and None
23
+ Bakers to Her Majesty the Singleton
24
+ END
@@ -1 +1,3 @@
1
- date = if friday then sue else jill end
1
+ date = if friday then sue else jill end
2
+
3
+ puts "x is not 1" if not (x == 1)
@@ -0,0 +1,5 @@
1
+ eat(food) for food in ['toast', 'cheese', 'wine']
2
+
3
+ for food in ['toast', 'cheese', 'wine']
4
+ eat(food)
5
+ end
@@ -0,0 +1,11 @@
1
+ //Written using Nila. Visit http://adhithyan15.github.io/nila
2
+ (function () {
3
+ var subtract;
4
+
5
+ subtract = function(num1,num2) {
6
+ return num1-num2;
7
+ };
8
+
9
+ console.log(subtract(7,8));
10
+
11
+ }).call(this);
@@ -0,0 +1,3 @@
1
+ eight = parseInt "08"
2
+
3
+ parseInt("08",10)
@@ -0,0 +1,11 @@
1
+ //Written using Nila. Visit http://adhithyan15.github.io/nila
2
+ (function () {
3
+ var subtract;
4
+
5
+ subtract = function(num1,num2) {
6
+ return num1-num2;
7
+ };
8
+
9
+ console.log(subtract(7,8));
10
+
11
+ }).call(this);
@@ -1,5 +1,7 @@
1
1
  #This file tests the limits of the string interpolation feature present in Nila
2
2
 
3
+ number = 5
4
+
3
5
  msg = "Hello #{"world. A lovely place."}" + "Another #{"Lovely quote"}"
4
6
 
5
7
  puts msg
@@ -8,4 +10,8 @@ puts "Hello #{"world"}"
8
10
 
9
11
  puts 'Hello #{world}'
10
12
 
11
- puts 'Hello'
13
+ puts 'Hello'
14
+
15
+ puts "We're ##{number}!"
16
+
17
+ puts "I've set x to #{x = 5; x += 1}."
@@ -0,0 +1,7 @@
1
+ start_counter = end_counter = 0
2
+
3
+ six = (one = 1) + (two = 2) + (three = 3)
4
+
5
+ wind speed = 25
6
+
7
+ average temperature = 32 # an example of Pogoscript variables
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nilac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.3.9.7.1
4
+ version: 0.0.4.3.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adhithya Rajasekaran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-04 00:00:00.000000000 Z
11
+ date: 2014-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shark
@@ -37,19 +37,37 @@ files:
37
37
  - README.md
38
38
  - Rakefile
39
39
  - bin/nilac
40
+ - cookbook/case_insensitive_compare.js
41
+ - cookbook/case_insensitive_compare.nila
42
+ - cookbook/compare_strings.js
43
+ - cookbook/compare_strings.nila
44
+ - cookbook/concat11.js
45
+ - cookbook/concat11.nila
46
+ - cookbook/concat12.js
47
+ - cookbook/concat12.nila
48
+ - cookbook/find_substring.js
49
+ - cookbook/find_substring.nila
50
+ - cookbook/string_interpolation.js
51
+ - cookbook/string_interpolation.nila
52
+ - cookbook/substring_extract.js
53
+ - cookbook/substring_extract.nila
40
54
  - examples/decBin.js
41
55
  - examples/decBin.nila
42
56
  - examples/marky.js
43
57
  - examples/marky.nila
58
+ - examples/my_file.js
44
59
  - examples/repl.js
45
60
  - examples/repl.nila
61
+ - examples/temp_nila.nila
46
62
  - lib/nilac.rb
47
63
  - lib/nilac/ErrorDeclarations.rb
48
64
  - lib/nilac/add_auto_return_statement.rb
65
+ - lib/nilac/add_line_numbers.rb
49
66
  - lib/nilac/add_semicolons.rb
50
67
  - lib/nilac/compile_arrays.rb
51
68
  - lib/nilac/compile_blocks.rb
52
69
  - lib/nilac/compile_case_statement.rb
70
+ - lib/nilac/compile_chained_comparison.rb
53
71
  - lib/nilac/compile_comments.rb
54
72
  - lib/nilac/compile_conditional_structures.rb
55
73
  - lib/nilac/compile_custom_function_map.rb
@@ -57,6 +75,7 @@ files:
57
75
  - lib/nilac/compile_existential_operator.rb
58
76
  - lib/nilac/compile_hashes.rb
59
77
  - lib/nilac/compile_heredocs.rb
78
+ - lib/nilac/compile_inline_for.rb
60
79
  - lib/nilac/compile_integers.rb
61
80
  - lib/nilac/compile_interpolated_strings.rb
62
81
  - lib/nilac/compile_lambdas.rb
@@ -64,42 +83,56 @@ files:
64
83
  - lib/nilac/compile_monkey_patching.rb
65
84
  - lib/nilac/compile_multiple_return.rb
66
85
  - lib/nilac/compile_named_functions.rb
86
+ - lib/nilac/compile_new_keyword.rb
87
+ - lib/nilac/compile_nilac_options.rb
67
88
  - lib/nilac/compile_operators.rb
68
89
  - lib/nilac/compile_parallel_assignment.rb
90
+ - lib/nilac/compile_ranges.rb
69
91
  - lib/nilac/compile_require_statements.rb
92
+ - lib/nilac/compile_ruby_math.rb
70
93
  - lib/nilac/compile_ruby_methods.rb
71
94
  - lib/nilac/compile_special_keywords.rb
72
95
  - lib/nilac/compile_strings.rb
73
96
  - lib/nilac/compile_whitespace_delimited_functions.rb
74
97
  - lib/nilac/create_mac_executable.rb
98
+ - lib/nilac/extract_paranthesis_contents.rb
75
99
  - lib/nilac/extract_parsable_file.rb
100
+ - lib/nilac/extract_strings.rb
76
101
  - lib/nilac/find_all_matching_indices.rb
77
102
  - lib/nilac/find_file_name.rb
78
103
  - lib/nilac/find_file_path.rb
104
+ - lib/nilac/fix_javascript_traps.rb
79
105
  - lib/nilac/friendly_errors.rb
80
106
  - lib/nilac/get_variables.rb
81
107
  - lib/nilac/lexical_scoped_function_variables.rb
108
+ - lib/nilac/optimizer.rb
82
109
  - lib/nilac/output_javascript.rb
83
110
  - lib/nilac/paranthesis_compactor.rb
84
111
  - lib/nilac/parse_arguments.rb
85
112
  - lib/nilac/pretty_print_javascript.rb
113
+ - lib/nilac/pretty_print_nila.rb
86
114
  - lib/nilac/read_file_line_by_line.rb
87
115
  - lib/nilac/remove_question_marks.rb
116
+ - lib/nilac/replace_comparison_operators.rb
88
117
  - lib/nilac/replace_multiline_comments.rb
89
118
  - lib/nilac/replace_named_functions.rb
90
119
  - lib/nilac/replace_singleline_comments.rb
91
120
  - lib/nilac/replace_strings.rb
92
121
  - lib/nilac/rollblocks.rb
93
122
  - lib/nilac/split_semicolon_seperated_expressions.rb
123
+ - lib/nilac/square_brackets_compactor.rb
94
124
  - lib/nilac/strToArray.rb
95
125
  - lib/nilac/version.rb
96
126
  - nilac.gemspec
97
127
  - shark/features/add_auto_return_statement.feature
98
128
  - shark/features/array_and_string_indexing.feature
129
+ - shark/features/arrays.feature
99
130
  - shark/features/automatic_require_statements.feature
100
131
  - shark/features/barebones_compilation.feature
101
132
  - shark/features/blocks.feature
133
+ - shark/features/builtin_new.feature
102
134
  - shark/features/case_when.feature
135
+ - shark/features/comments.feature
103
136
  - shark/features/default_method_parameters.feature
104
137
  - shark/features/fix_newlines.feature
105
138
  - shark/features/hashes.feature
@@ -122,14 +155,22 @@ files:
122
155
  - shark/features/strings.feature
123
156
  - shark/features/times.feature
124
157
  - shark/features/unless_until.feature
158
+ - shark/features/variables.feature
125
159
  - shark/features/whitespace_delimitation.feature
126
160
  - shark/test_files/array_string_indexing.nila
161
+ - shark/test_files/arrays.nila
127
162
  - shark/test_files/blocks.nila
163
+ - shark/test_files/builtin_new.nila
128
164
  - shark/test_files/case.nila
165
+ - shark/test_files/chained_comparison.nila
166
+ - shark/test_files/comments.nila
129
167
  - shark/test_files/conditional_assignment.nila
130
168
  - shark/test_files/correct.js
169
+ - shark/test_files/correct_arrays.js
131
170
  - shark/test_files/correct_blocks.js
171
+ - shark/test_files/correct_builtin_new.js
132
172
  - shark/test_files/correct_case.js
173
+ - shark/test_files/correct_comments.js
133
174
  - shark/test_files/correct_conditional_assignment.js
134
175
  - shark/test_files/correct_default_parameters.js
135
176
  - shark/test_files/correct_for.js
@@ -151,17 +192,23 @@ files:
151
192
  - shark/test_files/correct_return.js
152
193
  - shark/test_files/correct_ruby_methods.js
153
194
  - shark/test_files/correct_single_return.js
195
+ - shark/test_files/correct_spacing.js
154
196
  - shark/test_files/correct_splats.js
155
197
  - shark/test_files/correct_string_interpolation.js
156
198
  - shark/test_files/correct_string_operators.js
157
199
  - shark/test_files/correct_times.js
158
200
  - shark/test_files/correct_unless_until.js
201
+ - shark/test_files/correct_variables.js
159
202
  - shark/test_files/correct_whitespace_delimiter.js
160
203
  - shark/test_files/default_parameters.nila
161
204
  - shark/test_files/erratic.nila
205
+ - shark/test_files/existential_operators.nila
206
+ - shark/test_files/expression.nila
207
+ - shark/test_files/global_variables_client.nila
162
208
  - shark/test_files/hashes.nila
163
209
  - shark/test_files/heredoc.nila
164
210
  - shark/test_files/if_then_else.nila
211
+ - shark/test_files/inline_for.nila
165
212
  - shark/test_files/javascript_methods.nila
166
213
  - shark/test_files/lambda.nila
167
214
  - shark/test_files/loop.nila
@@ -169,10 +216,11 @@ files:
169
216
  - shark/test_files/multiline_array.nila
170
217
  - shark/test_files/multiple_initialization.nila
171
218
  - shark/test_files/multiple_return.nila
219
+ - shark/test_files/no_return.js
172
220
  - shark/test_files/no_return.nila
173
221
  - shark/test_files/numbers.nila
174
222
  - shark/test_files/operators.nila
175
- - shark/test_files/perfect.js
223
+ - shark/test_files/parseInt_trap.nila
176
224
  - shark/test_files/regular_for.nila
177
225
  - shark/test_files/regular_if.nila
178
226
  - shark/test_files/regular_while.nila
@@ -180,6 +228,7 @@ files:
180
228
  - shark/test_files/ruby_methods.nila
181
229
  - shark/test_files/sample_class.nila
182
230
  - shark/test_files/simple.nila
231
+ - shark/test_files/single_return.js
183
232
  - shark/test_files/single_return.nila
184
233
  - shark/test_files/splats.nila
185
234
  - shark/test_files/string_interpolation.nila
@@ -188,6 +237,7 @@ files:
188
237
  - shark/test_files/times.nila
189
238
  - shark/test_files/unless_until.nila
190
239
  - shark/test_files/variable_spaces.nila
240
+ - shark/test_files/variables.nila
191
241
  - shark/test_files/whitespace_delimiter.nila
192
242
  homepage: http://adhithyan15.github.com/nila
193
243
  licenses: []
@@ -213,3 +263,4 @@ signing_key:
213
263
  specification_version: 4
214
264
  summary: Nilac compiles Nila files into line for line Javascript.
215
265
  test_files: []
266
+ has_rdoc: