deepalgo_il 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (631) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +6 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +47 -0
  8. data/Rakefile +8 -0
  9. data/bin/console +15 -0
  10. data/bin/setup +8 -0
  11. data/deepalgo_il.gemspec +37 -0
  12. data/lib/backend_manager.rb +300 -0
  13. data/lib/deepalgo_il.rb +27 -0
  14. data/lib/deepalgo_il/version.rb +5 -0
  15. data/lib/il_parser.treetop +220 -0
  16. data/lib/logging.rb +13 -0
  17. data/lib/parser.rb +32 -0
  18. data/log +37990 -0
  19. data/tests/clean_formula_tex_concern.rb +176 -0
  20. data/tests/test_big_formula/formula-100.inter +1 -0
  21. data/tests/test_big_formula/formula-100.raw +1 -0
  22. data/tests/test_big_formula/formula-100.tex +1 -0
  23. data/tests/test_big_formula/formula-100_pre.tex +1 -0
  24. data/tests/test_big_formula/formula_no_color-100.tex +1 -0
  25. data/tests/test_conditions_for_formula_in_full_app/formula-100.inter +1 -0
  26. data/tests/test_conditions_for_formula_in_full_app/formula-100.raw +1 -0
  27. data/tests/test_conditions_for_formula_in_full_app/formula-100.tex +1 -0
  28. data/tests/test_conditions_for_formula_in_full_app/formula-100_pre.tex +1 -0
  29. data/tests/test_conditions_for_formula_in_full_app/formula_no_color-100.tex +1 -0
  30. data/tests/test_conditions_management_whith_multiple_possible_states/formula-100.inter +1 -0
  31. data/tests/test_conditions_management_whith_multiple_possible_states/formula-100.raw +1 -0
  32. data/tests/test_conditions_management_whith_multiple_possible_states/formula-100.tex +1 -0
  33. data/tests/test_conditions_management_whith_multiple_possible_states/formula-100_pre.tex +1 -0
  34. data/tests/test_conditions_management_whith_multiple_possible_states/formula_no_color-100.tex +1 -0
  35. data/tests/test_formula_in_ebee/formula-100.inter +1 -0
  36. data/tests/test_formula_in_ebee/formula-100.raw +1 -0
  37. data/tests/test_formula_in_ebee/formula-100.tex +1 -0
  38. data/tests/test_formula_in_ebee/formula-100_pre.tex +1 -0
  39. data/tests/test_formula_in_ebee/formula_no_color-100.tex +1 -0
  40. data/tests/test_formula_in_ebee2/formula-100.inter +1 -0
  41. data/tests/test_formula_in_ebee2/formula-100.raw +1 -0
  42. data/tests/test_formula_in_ebee2/formula-100.tex +1 -0
  43. data/tests/test_formula_in_ebee2/formula-100_pre.tex +1 -0
  44. data/tests/test_formula_in_ebee2/formula_no_color-100.tex +1 -0
  45. data/tests/test_formula_in_full_app/formula-100.inter +1 -0
  46. data/tests/test_formula_in_full_app/formula-100.raw +1 -0
  47. data/tests/test_formula_in_full_app/formula-100.tex +1 -0
  48. data/tests/test_formula_in_full_app/formula-100_pre.tex +1 -0
  49. data/tests/test_formula_in_full_app/formula_no_color-100.tex +1 -0
  50. data/tests/test_formula_is_perfect_number/formula-100.inter +1 -0
  51. data/tests/test_formula_is_perfect_number/formula-100.raw +1 -0
  52. data/tests/test_formula_is_perfect_number/formula-100.tex +1 -0
  53. data/tests/test_formula_is_perfect_number/formula-100_pre.tex +1 -0
  54. data/tests/test_formula_is_perfect_number/formula_no_color-100.tex +1 -0
  55. data/tests/test_formula_projet_fred/formula-100.inter +1 -0
  56. data/tests/test_formula_projet_fred/formula-100.raw +1 -0
  57. data/tests/test_formula_projet_fred/formula-100.tex +1 -0
  58. data/tests/test_formula_projet_fred/formula-100_pre.tex +1 -0
  59. data/tests/test_formula_projet_fred/formula_no_color-100.tex +1 -0
  60. data/tests/test_formula_substitution/formula-100.inter +1 -0
  61. data/tests/test_formula_substitution/formula-100.raw +1 -0
  62. data/tests/test_formula_substitution/formula-100.tex +1 -0
  63. data/tests/test_formula_substitution/formula-100_pre.tex +1 -0
  64. data/tests/test_formula_substitution/formula_no_color-100.tex +1 -0
  65. data/tests/test_formula_with_2_subsequent_loops/formula-100.inter +1 -0
  66. data/tests/test_formula_with_2_subsequent_loops/formula-100.raw +1 -0
  67. data/tests/test_formula_with_2_subsequent_loops/formula-100.tex +1 -0
  68. data/tests/test_formula_with_2_subsequent_loops/formula-100_pre.tex +1 -0
  69. data/tests/test_formula_with_2_subsequent_loops/formula_no_color-100.tex +1 -0
  70. data/tests/test_formula_with_3_loops/formula-100.inter +1 -0
  71. data/tests/test_formula_with_3_loops/formula-100.raw +1 -0
  72. data/tests/test_formula_with_3_loops/formula-100.tex +1 -0
  73. data/tests/test_formula_with_3_loops/formula-100_pre.tex +1 -0
  74. data/tests/test_formula_with_3_loops/formula_no_color-100.tex +1 -0
  75. data/tests/test_formula_with_3_loops_and_reinitialization/formula-100.inter +1 -0
  76. data/tests/test_formula_with_3_loops_and_reinitialization/formula-100.raw +1 -0
  77. data/tests/test_formula_with_3_loops_and_reinitialization/formula-100.tex +1 -0
  78. data/tests/test_formula_with_3_loops_and_reinitialization/formula-100_pre.tex +1 -0
  79. data/tests/test_formula_with_3_loops_and_reinitialization/formula_no_color-100.tex +1 -0
  80. data/tests/test_formula_with_3_loops_in_loop/formula-100.inter +1 -0
  81. data/tests/test_formula_with_3_loops_in_loop/formula-100.raw +1 -0
  82. data/tests/test_formula_with_3_loops_in_loop/formula-100.tex +1 -0
  83. data/tests/test_formula_with_3_loops_in_loop/formula-100_pre.tex +1 -0
  84. data/tests/test_formula_with_3_loops_in_loop/formula_no_color-100.tex +1 -0
  85. data/tests/test_formula_with_ambiguous_substitution/formula-100.inter +1 -0
  86. data/tests/test_formula_with_ambiguous_substitution/formula-100.raw +1 -0
  87. data/tests/test_formula_with_ambiguous_substitution/formula-100.tex +1 -0
  88. data/tests/test_formula_with_ambiguous_substitution/formula-100_pre.tex +1 -0
  89. data/tests/test_formula_with_ambiguous_substitution/formula_no_color-100.tex +1 -0
  90. data/tests/test_formula_with_array_as_properties/formula-100.inter +1 -0
  91. data/tests/test_formula_with_array_as_properties/formula-100.raw +1 -0
  92. data/tests/test_formula_with_array_as_properties/formula-100.tex +1 -0
  93. data/tests/test_formula_with_array_as_properties/formula-100_pre.tex +1 -0
  94. data/tests/test_formula_with_array_as_properties/formula_no_color-100.tex +1 -0
  95. data/tests/test_formula_with_bound_return/formula-100.inter +1 -0
  96. data/tests/test_formula_with_bound_return/formula-100.raw +1 -0
  97. data/tests/test_formula_with_bound_return/formula-100.tex +1 -0
  98. data/tests/test_formula_with_bound_return/formula-100_pre.tex +1 -0
  99. data/tests/test_formula_with_bound_return/formula_no_color-100.tex +1 -0
  100. data/tests/test_formula_with_conditions_accross_several_functions/formula-100.inter +1 -0
  101. data/tests/test_formula_with_conditions_accross_several_functions/formula-100.raw +1 -0
  102. data/tests/test_formula_with_conditions_accross_several_functions/formula-100.tex +1 -0
  103. data/tests/test_formula_with_conditions_accross_several_functions/formula-100_pre.tex +1 -0
  104. data/tests/test_formula_with_conditions_accross_several_functions/formula_no_color-100.tex +1 -0
  105. data/tests/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100.inter +1 -0
  106. data/tests/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100.raw +1 -0
  107. data/tests/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100.tex +1 -0
  108. data/tests/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100_pre.tex +1 -0
  109. data/tests/test_formula_with_conditions_accross_several_functions_and_single_call/formula_no_color-100.tex +1 -0
  110. data/tests/test_formula_with_ctor_reference_in_a_child_ctor/formula-100.inter +1 -0
  111. data/tests/test_formula_with_ctor_reference_in_a_child_ctor/formula-100.raw +1 -0
  112. data/tests/test_formula_with_ctor_reference_in_a_child_ctor/formula-100.tex +1 -0
  113. data/tests/test_formula_with_ctor_reference_in_a_child_ctor/formula-100_pre.tex +1 -0
  114. data/tests/test_formula_with_ctor_reference_in_a_child_ctor/formula_no_color-100.tex +1 -0
  115. data/tests/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100.inter +1 -0
  116. data/tests/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100.raw +1 -0
  117. data/tests/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100.tex +1 -0
  118. data/tests/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100_pre.tex +1 -0
  119. data/tests/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula_no_color-100.tex +1 -0
  120. data/tests/test_formula_with_different_states_in_properties/formula-100.inter +1 -0
  121. data/tests/test_formula_with_different_states_in_properties/formula-100.raw +1 -0
  122. data/tests/test_formula_with_different_states_in_properties/formula-100.tex +1 -0
  123. data/tests/test_formula_with_different_states_in_properties/formula-100_pre.tex +1 -0
  124. data/tests/test_formula_with_factorial_reccursion/formula-100.inter +1 -0
  125. data/tests/test_formula_with_factorial_reccursion/formula-100.raw +1 -0
  126. data/tests/test_formula_with_factorial_reccursion/formula-100.tex +1 -0
  127. data/tests/test_formula_with_factorial_reccursion/formula-100_pre.tex +1 -0
  128. data/tests/test_formula_with_factorial_reccursion/formula_no_color-100.tex +1 -0
  129. data/tests/test_formula_with_for_loop_multiple_assignation/formula-100.inter +1 -0
  130. data/tests/test_formula_with_for_loop_multiple_assignation/formula-100.raw +1 -0
  131. data/tests/test_formula_with_for_loop_multiple_assignation/formula-100.tex +1 -0
  132. data/tests/test_formula_with_for_loop_multiple_assignation/formula-100_pre.tex +1 -0
  133. data/tests/test_formula_with_for_loop_multiple_assignation/formula_no_color-100.tex +1 -0
  134. data/tests/test_formula_with_initial_value/#formula-100.raw# +1 -0
  135. data/tests/test_formula_with_initial_value/formula-100.inter +1 -0
  136. data/tests/test_formula_with_initial_value/formula-100.raw +1 -0
  137. data/tests/test_formula_with_initial_value/formula-100.tex +1 -0
  138. data/tests/test_formula_with_initial_value/formula-100_pre.tex +1 -0
  139. data/tests/test_formula_with_initial_value/formula_no_color-100.tex +1 -0
  140. data/tests/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100.inter +1 -0
  141. data/tests/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100.raw +1 -0
  142. data/tests/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100.tex +1 -0
  143. data/tests/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100_pre.tex +1 -0
  144. data/tests/test_formula_with_loop_in_loop_accross_multiple_methods/formula_no_color-100.tex +1 -0
  145. data/tests/test_formula_with_loop_with_array/formula-100.inter +1 -0
  146. data/tests/test_formula_with_loop_with_array/formula-100.raw +1 -0
  147. data/tests/test_formula_with_loop_with_array/formula-100.tex +1 -0
  148. data/tests/test_formula_with_loop_with_array/formula-100_pre.tex +1 -0
  149. data/tests/test_formula_with_loop_with_array/formula_no_color-100.tex +1 -0
  150. data/tests/test_formula_with_loop_with_collection/formula-100.inter +1 -0
  151. data/tests/test_formula_with_loop_with_collection/formula-100.raw +1 -0
  152. data/tests/test_formula_with_loop_with_collection/formula-100.tex +1 -0
  153. data/tests/test_formula_with_loop_with_collection/formula-100_pre.tex +1 -0
  154. data/tests/test_formula_with_loop_with_collection/formula_no_color-100.tex +1 -0
  155. data/tests/test_formula_with_loop_with_collection_on_objects/formula-100.inter +1 -0
  156. data/tests/test_formula_with_loop_with_collection_on_objects/formula-100.raw +1 -0
  157. data/tests/test_formula_with_loop_with_collection_on_objects/formula-100.tex +1 -0
  158. data/tests/test_formula_with_loop_with_collection_on_objects/formula-100_pre.tex +1 -0
  159. data/tests/test_formula_with_loop_with_collection_on_objects/formula_no_color-100.tex +1 -0
  160. data/tests/test_formula_with_loop_with_div/formula-100.inter +1 -0
  161. data/tests/test_formula_with_loop_with_div/formula-100.raw +1 -0
  162. data/tests/test_formula_with_loop_with_div/formula-100.tex +1 -0
  163. data/tests/test_formula_with_loop_with_div/formula-100_pre.tex +1 -0
  164. data/tests/test_formula_with_loop_with_div/formula_no_color-100.tex +1 -0
  165. data/tests/test_formula_with_loop_with_ext_call/formula-100.inter +1 -0
  166. data/tests/test_formula_with_loop_with_ext_call/formula-100.raw +1 -0
  167. data/tests/test_formula_with_loop_with_ext_call/formula-100.tex +1 -0
  168. data/tests/test_formula_with_loop_with_ext_call/formula-100_pre.tex +1 -0
  169. data/tests/test_formula_with_loop_with_ext_call/formula_no_color-100.tex +1 -0
  170. data/tests/test_formula_with_loop_with_prod/formula-100.inter +1 -0
  171. data/tests/test_formula_with_loop_with_prod/formula-100.raw +1 -0
  172. data/tests/test_formula_with_loop_with_prod/formula-100.tex +1 -0
  173. data/tests/test_formula_with_loop_with_prod/formula-100_pre.tex +1 -0
  174. data/tests/test_formula_with_loop_with_prod/formula_no_color-100.tex +1 -0
  175. data/tests/test_formula_with_loop_with_subst/formula-100.inter +1 -0
  176. data/tests/test_formula_with_loop_with_subst/formula-100.raw +1 -0
  177. data/tests/test_formula_with_loop_with_subst/formula-100.tex +1 -0
  178. data/tests/test_formula_with_loop_with_subst/formula-100_pre.tex +1 -0
  179. data/tests/test_formula_with_loop_with_subst/formula_no_color-100.tex +1 -0
  180. data/tests/test_formula_with_loop_with_sum/formula-100.inter +1 -0
  181. data/tests/test_formula_with_loop_with_sum/formula-100.raw +1 -0
  182. data/tests/test_formula_with_loop_with_sum/formula-100.tex +1 -0
  183. data/tests/test_formula_with_loop_with_sum/formula-100_pre.tex +1 -0
  184. data/tests/test_formula_with_loop_with_sum/formula_no_color-100.tex +1 -0
  185. data/tests/test_formula_with_loop_with_while/formula-100.inter +1 -0
  186. data/tests/test_formula_with_loop_with_while/formula-100.raw +1 -0
  187. data/tests/test_formula_with_loop_with_while/formula-100.tex +1 -0
  188. data/tests/test_formula_with_loop_with_while/formula-100_pre.tex +1 -0
  189. data/tests/test_formula_with_loop_with_while/formula_no_color-100.tex +1 -0
  190. data/tests/test_formula_with_loop_with_while_break/formula-100.inter +1 -0
  191. data/tests/test_formula_with_loop_with_while_break/formula-100.raw +1 -0
  192. data/tests/test_formula_with_loop_with_while_break/formula-100.tex +1 -0
  193. data/tests/test_formula_with_loop_with_while_break/formula-100_pre.tex +1 -0
  194. data/tests/test_formula_with_loop_with_while_break/formula_no_color-100.tex +1 -0
  195. data/tests/test_formula_with_loop_with_while_return/formula-100.inter +1 -0
  196. data/tests/test_formula_with_loop_with_while_return/formula-100.raw +1 -0
  197. data/tests/test_formula_with_loop_with_while_return/formula-100.tex +1 -0
  198. data/tests/test_formula_with_loop_with_while_return/formula-100_pre.tex +1 -0
  199. data/tests/test_formula_with_loop_with_while_return/formula_no_color-100.tex +1 -0
  200. data/tests/test_formula_with_multiple_assignation/formula-100.inter +1 -0
  201. data/tests/test_formula_with_multiple_assignation/formula-100.raw +1 -0
  202. data/tests/test_formula_with_multiple_assignation/formula-100.tex +1 -0
  203. data/tests/test_formula_with_multiple_assignation/formula-100_pre.tex +1 -0
  204. data/tests/test_formula_with_multiple_assignation/formula_no_color-100.tex +1 -0
  205. data/tests/test_formula_with_multiple_assignation_if/formula-100.inter +1 -0
  206. data/tests/test_formula_with_multiple_assignation_if/formula-100.raw +1 -0
  207. data/tests/test_formula_with_multiple_assignation_if/formula-100.tex +1 -0
  208. data/tests/test_formula_with_multiple_assignation_if/formula-100_pre.tex +1 -0
  209. data/tests/test_formula_with_multiple_assignation_if/formula_no_color-100.tex +1 -0
  210. data/tests/test_formula_with_multiple_assignation_in_loop/formula-100.inter +1 -0
  211. data/tests/test_formula_with_multiple_assignation_in_loop/formula-100.raw +1 -0
  212. data/tests/test_formula_with_multiple_assignation_in_loop/formula-100.tex +1 -0
  213. data/tests/test_formula_with_multiple_assignation_in_loop/formula-100_pre.tex +1 -0
  214. data/tests/test_formula_with_multiple_assignation_in_loop/formula_no_color-100.tex +1 -0
  215. data/tests/test_formula_with_multiple_assignation_no_if/formula-100.inter +1 -0
  216. data/tests/test_formula_with_multiple_assignation_no_if/formula-100.raw +1 -0
  217. data/tests/test_formula_with_multiple_assignation_no_if/formula-100.tex +1 -0
  218. data/tests/test_formula_with_multiple_assignation_no_if/formula-100_pre.tex +1 -0
  219. data/tests/test_formula_with_multiple_assignation_no_if/formula_no_color-100.tex +1 -0
  220. data/tests/test_formula_with_multiple_assignation_with_false_if/formula-100.inter +1 -0
  221. data/tests/test_formula_with_multiple_assignation_with_false_if/formula-100.raw +1 -0
  222. data/tests/test_formula_with_multiple_assignation_with_false_if/formula-100.tex +1 -0
  223. data/tests/test_formula_with_multiple_assignation_with_false_if/formula-100_pre.tex +1 -0
  224. data/tests/test_formula_with_multiple_assignation_with_false_if/formula_no_color-100.tex +1 -0
  225. data/tests/test_formula_with_multiple_assignation_with_true_if/formula-100.inter +1 -0
  226. data/tests/test_formula_with_multiple_assignation_with_true_if/formula-100.raw +1 -0
  227. data/tests/test_formula_with_multiple_assignation_with_true_if/formula-100.tex +1 -0
  228. data/tests/test_formula_with_multiple_assignation_with_true_if/formula-100_pre.tex +1 -0
  229. data/tests/test_formula_with_multiple_assignation_with_true_if/formula_no_color-100.tex +1 -0
  230. data/tests/test_formula_with_multiple_call_to_same_func/formula-100.inter +1 -0
  231. data/tests/test_formula_with_multiple_call_to_same_func/formula-100.raw +1 -0
  232. data/tests/test_formula_with_multiple_call_to_same_func/formula-100.tex +1 -0
  233. data/tests/test_formula_with_multiple_call_to_same_func/formula-100_pre.tex +1 -0
  234. data/tests/test_formula_with_multiple_call_to_same_func/formula_no_color-100.tex +1 -0
  235. data/tests/test_formula_with_multiple_operations/formula-100.inter +1 -0
  236. data/tests/test_formula_with_multiple_operations/formula-100.raw +1 -0
  237. data/tests/test_formula_with_multiple_operations/formula-100.tex +1 -0
  238. data/tests/test_formula_with_multiple_operations/formula-100_pre.tex +1 -0
  239. data/tests/test_formula_with_multiple_operations/formula_no_color-100.tex +1 -0
  240. data/tests/test_formula_with_multiple_references/formula-100.inter +1 -0
  241. data/tests/test_formula_with_multiple_references/formula-100.raw +1 -0
  242. data/tests/test_formula_with_multiple_references/formula-100.tex +1 -0
  243. data/tests/test_formula_with_multiple_references/formula-100_pre.tex +1 -0
  244. data/tests/test_formula_with_multiple_references/formula_no_color-100.tex +1 -0
  245. data/tests/test_formula_with_multiple_return/formula-100.inter +1 -0
  246. data/tests/test_formula_with_multiple_return/formula-100.raw +1 -0
  247. data/tests/test_formula_with_multiple_return/formula-100.tex +1 -0
  248. data/tests/test_formula_with_multiple_return/formula-100_pre.tex +1 -0
  249. data/tests/test_formula_with_multiple_return/formula_no_color-100.tex +1 -0
  250. data/tests/test_formula_with_multiple_return_when_stdDev_is_0/formula-100.inter +1 -0
  251. data/tests/test_formula_with_multiple_return_when_stdDev_is_0/formula-100.raw +1 -0
  252. data/tests/test_formula_with_multiple_return_when_stdDev_is_0/formula-100.tex +1 -0
  253. data/tests/test_formula_with_multiple_return_when_stdDev_is_0/formula-100_pre.tex +1 -0
  254. data/tests/test_formula_with_multiple_return_when_stdDev_is_0/formula_no_color-100.tex +1 -0
  255. data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100.inter +1 -0
  256. data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100.raw +1 -0
  257. data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100.tex +1 -0
  258. data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100_pre.tex +1 -0
  259. data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula_no_color-100.tex +1 -0
  260. data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100.inter +1 -0
  261. data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100.raw +1 -0
  262. data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100.tex +1 -0
  263. data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100_pre.tex +1 -0
  264. data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula_no_color-100.tex +1 -0
  265. data/tests/test_formula_with_non_impacting_conditions/formula-100.inter +1 -0
  266. data/tests/test_formula_with_non_impacting_conditions/formula-100.raw +1 -0
  267. data/tests/test_formula_with_non_impacting_conditions/formula-100.tex +1 -0
  268. data/tests/test_formula_with_non_impacting_conditions/formula-100_pre.tex +1 -0
  269. data/tests/test_formula_with_non_impacting_conditions/formula_no_color-100.tex +1 -0
  270. data/tests/test_formula_with_object_properties/formula-100.inter +1 -0
  271. data/tests/test_formula_with_object_properties/formula-100.raw +1 -0
  272. data/tests/test_formula_with_object_properties/formula-100.tex +1 -0
  273. data/tests/test_formula_with_object_properties/formula-100_pre.tex +1 -0
  274. data/tests/test_formula_with_object_properties/formula_no_color-100.tex +1 -0
  275. data/tests/test_formula_with_paren/formula-100.inter +1 -0
  276. data/tests/test_formula_with_paren/formula-100.raw +1 -0
  277. data/tests/test_formula_with_paren/formula-100.tex +1 -0
  278. data/tests/test_formula_with_paren/formula-100_pre.tex +1 -0
  279. data/tests/test_formula_with_paren/formula_no_color-100.tex +1 -0
  280. data/tests/test_formula_with_reference_in_ctor/formula-100.inter +1 -0
  281. data/tests/test_formula_with_reference_in_ctor/formula-100.raw +1 -0
  282. data/tests/test_formula_with_reference_in_ctor/formula-100.tex +1 -0
  283. data/tests/test_formula_with_reference_in_ctor/formula-100_pre.tex +1 -0
  284. data/tests/test_formula_with_reference_in_ctor/formula_no_color-100.tex +1 -0
  285. data/tests/test_formula_with_reference_in_ctor_with_called_ctor/formula-100.inter +1 -0
  286. data/tests/test_formula_with_reference_in_ctor_with_called_ctor/formula-100.raw +1 -0
  287. data/tests/test_formula_with_reference_in_ctor_with_called_ctor/formula-100.tex +1 -0
  288. data/tests/test_formula_with_reference_in_ctor_with_called_ctor/formula-100_pre.tex +1 -0
  289. data/tests/test_formula_with_reinint_assignation_false_if_in_loop/formula-100.inter +1 -0
  290. data/tests/test_formula_with_reinint_assignation_false_if_in_loop/formula-100.raw +1 -0
  291. data/tests/test_formula_with_reinint_assignation_false_if_in_loop/formula-100.tex +1 -0
  292. data/tests/test_formula_with_reinint_assignation_false_if_in_loop/formula-100_pre.tex +1 -0
  293. data/tests/test_formula_with_reinint_assignation_false_if_in_loop/formula_no_color-100.tex +1 -0
  294. data/tests/test_formula_with_reinint_assignation_in_loop/formula-100.inter +1 -0
  295. data/tests/test_formula_with_reinint_assignation_in_loop/formula-100.raw +1 -0
  296. data/tests/test_formula_with_reinint_assignation_in_loop/formula-100.tex +1 -0
  297. data/tests/test_formula_with_reinint_assignation_in_loop/formula-100_pre.tex +1 -0
  298. data/tests/test_formula_with_reinint_assignation_in_loop/formula_no_color-100.tex +1 -0
  299. data/tests/test_formula_with_reinint_assignation_no_if_in_loop/formula-100.inter +1 -0
  300. data/tests/test_formula_with_reinint_assignation_no_if_in_loop/formula-100.raw +1 -0
  301. data/tests/test_formula_with_reinint_assignation_no_if_in_loop/formula-100.tex +1 -0
  302. data/tests/test_formula_with_reinint_assignation_no_if_in_loop/formula-100_pre.tex +1 -0
  303. data/tests/test_formula_with_reinint_assignation_no_if_in_loop/formula_no_color-100.tex +1 -0
  304. data/tests/test_formula_with_reinint_assignation_true_if_in_loop/formula-100.inter +1 -0
  305. data/tests/test_formula_with_reinint_assignation_true_if_in_loop/formula-100.raw +1 -0
  306. data/tests/test_formula_with_reinint_assignation_true_if_in_loop/formula-100.tex +1 -0
  307. data/tests/test_formula_with_reinint_assignation_true_if_in_loop/formula-100_pre.tex +1 -0
  308. data/tests/test_formula_with_reinint_assignation_true_if_in_loop/formula_no_color-100.tex +1 -0
  309. data/tests/test_formula_with_return_array_as_properties/formula-100.inter +1 -0
  310. data/tests/test_formula_with_return_array_as_properties/formula-100.raw +1 -0
  311. data/tests/test_formula_with_return_array_as_properties/formula-100.tex +1 -0
  312. data/tests/test_formula_with_return_array_as_properties/formula-100_pre.tex +1 -0
  313. data/tests/test_formula_with_return_string_as_properties/formula-100.inter +1 -0
  314. data/tests/test_formula_with_return_string_as_properties/formula-100.raw +1 -0
  315. data/tests/test_formula_with_return_string_as_properties/formula-100.tex +1 -0
  316. data/tests/test_formula_with_return_string_as_properties/formula-100_pre.tex +1 -0
  317. data/tests/test_formula_with_return_string_as_properties/formula_no_color-100.tex +1 -0
  318. data/tests/test_formula_with_unbound_call_in_assign/formula-100.inter +1 -0
  319. data/tests/test_formula_with_unbound_call_in_assign/formula-100.raw +1 -0
  320. data/tests/test_formula_with_unbound_call_in_assign/formula-100.tex +1 -0
  321. data/tests/test_formula_with_unbound_call_in_assign/formula-100_pre.tex +1 -0
  322. data/tests/test_formula_with_unbound_call_in_assign/formula_no_color-100.tex +1 -0
  323. data/tests/test_formula_with_unused_condition/formula-100.inter +1 -0
  324. data/tests/test_formula_with_unused_condition/formula-100.raw +1 -0
  325. data/tests/test_formula_with_unused_condition/formula-100.tex +1 -0
  326. data/tests/test_formula_with_unused_condition/formula-100_pre.tex +1 -0
  327. data/tests/test_formula_with_unused_condition/formula_no_color-100.tex +1 -0
  328. data/tests/test_formula_with_while_loop_multiple_assignation/formula-100.inter +1 -0
  329. data/tests/test_formula_with_while_loop_multiple_assignation/formula-100.raw +1 -0
  330. data/tests/test_formula_with_while_loop_multiple_assignation/formula-100.tex +1 -0
  331. data/tests/test_formula_with_while_loop_multiple_assignation/formula-100_pre.tex +1 -0
  332. data/tests/test_formula_with_while_loop_multiple_assignation/formula_no_color-100.tex +1 -0
  333. data/tests/test_formula_with_while_loop_multiple_assignation/test_formula_with_for_loop_multiple_assignation/formula-100.raw +1 -0
  334. data/tests/test_formula_with_while_loop_multiple_assignation/test_formula_with_for_loop_multiple_assignation/formula-100.tex +1 -0
  335. data/tests/test_formula_with_while_to_for_loop/formula-100.inter +1 -0
  336. data/tests/test_formula_with_while_to_for_loop/formula-100.raw +1 -0
  337. data/tests/test_formula_with_while_to_for_loop/formula-100.tex +1 -0
  338. data/tests/test_formula_with_while_to_for_loop/formula-100_pre.tex +1 -0
  339. data/tests/test_formula_with_while_to_for_loop_with_break/formula-100.inter +1 -0
  340. data/tests/test_formula_with_while_to_for_loop_with_break/formula-100.raw +1 -0
  341. data/tests/test_formula_with_while_to_for_loop_with_break/formula-100.tex +1 -0
  342. data/tests/test_formula_with_while_to_for_loop_with_break/formula-100_pre.tex +1 -0
  343. data/tests/test_isFlush_formula_in_full_app/formula_no_color-100.tex +1 -0
  344. data/tests/test_isFourOfAKind_formula_in_full_app/formula_no_color-100.tex +1 -0
  345. data/tests/test_isFullHouse_formula_in_full_app/formula_no_color-100.tex +1 -0
  346. data/tests/test_isOnePair_formula_in_full_app/formula_no_color-100.tex +1 -0
  347. data/tests/test_isStraightFlush_formula_in_full_app/formula_no_color-100.tex +1 -0
  348. data/tests/test_isStraight_formula_in_full_app/formula_no_color-100.tex +1 -0
  349. data/tests/test_isThreeOfAKind_formula_in_full_app/formula_no_color-100.tex +1 -0
  350. data/tests/test_isTwoPairs_formula_in_full_app/formula_no_color-100.tex +1 -0
  351. data/tests/test_simple_formula/formula-100.inter +1 -0
  352. data/tests/test_simple_formula/formula-100.raw +1 -0
  353. data/tests/test_simple_formula/formula-100.tex +1 -0
  354. data/tests/test_simple_formula/formula-100_pre.tex +1 -0
  355. data/tests/test_simple_formula/formula_no_color-100.tex +1 -0
  356. data/tests_old/test_big_formula/formula-100 +1 -0
  357. data/tests_old/test_big_formula/formula-100.inter +1 -0
  358. data/tests_old/test_big_formula/formula-100.raw +1 -0
  359. data/tests_old/test_big_formula/formula-100_inter +1 -0
  360. data/tests_old/test_big_formula/formula-100_pre.tex +1 -0
  361. data/tests_old/test_conditions_for_formula_in_full_app/formula-100 +1 -0
  362. data/tests_old/test_conditions_for_formula_in_full_app/formula-100.inter +1 -0
  363. data/tests_old/test_conditions_for_formula_in_full_app/formula-100.raw +1 -0
  364. data/tests_old/test_conditions_for_formula_in_full_app/formula-100_inter +1 -0
  365. data/tests_old/test_conditions_for_formula_in_full_app/formula-100_pre.tex +1 -0
  366. data/tests_old/test_conditions_for_formula_in_full_app/log +1 -0
  367. data/tests_old/test_conditions_management_whith_multiple_possible_states/formula-100 +1 -0
  368. data/tests_old/test_conditions_management_whith_multiple_possible_states/formula-100.inter +1 -0
  369. data/tests_old/test_conditions_management_whith_multiple_possible_states/formula-100.raw +1 -0
  370. data/tests_old/test_conditions_management_whith_multiple_possible_states/formula-100_inter +1 -0
  371. data/tests_old/test_conditions_management_whith_multiple_possible_states/formula-100_pre.tex +1 -0
  372. data/tests_old/test_descriptor_item/formula-100 +1 -0
  373. data/tests_old/test_descriptor_item/formula-100.inter +1 -0
  374. data/tests_old/test_descriptor_item/formula-100.raw +1 -0
  375. data/tests_old/test_descriptor_item/formula-100_pre.tex +1 -0
  376. data/tests_old/test_formula_in_ebee/formula-100 +1 -0
  377. data/tests_old/test_formula_in_ebee/formula-100.inter +1 -0
  378. data/tests_old/test_formula_in_ebee/formula-100.raw +1 -0
  379. data/tests_old/test_formula_in_ebee/formula-100_inter +1 -0
  380. data/tests_old/test_formula_in_ebee/formula-100_pre.tex +1 -0
  381. data/tests_old/test_formula_in_ebee2/formula-100 +1 -0
  382. data/tests_old/test_formula_in_ebee2/formula-100.inter +1 -0
  383. data/tests_old/test_formula_in_ebee2/formula-100.raw +1 -0
  384. data/tests_old/test_formula_in_ebee2/formula-100_inter +1 -0
  385. data/tests_old/test_formula_in_ebee2/formula-100_pre.tex +1 -0
  386. data/tests_old/test_formula_in_full_app/formula-100 +1 -0
  387. data/tests_old/test_formula_in_full_app/formula-100.inter +1 -0
  388. data/tests_old/test_formula_in_full_app/formula-100.raw +1 -0
  389. data/tests_old/test_formula_in_full_app/formula-100_inter +1 -0
  390. data/tests_old/test_formula_in_full_app/formula-100_pre.tex +1 -0
  391. data/tests_old/test_formula_in_full_app/log +1 -0
  392. data/tests_old/test_formula_substitution/formula-100 +1 -0
  393. data/tests_old/test_formula_substitution/formula-100.inter +1 -0
  394. data/tests_old/test_formula_substitution/formula-100.raw +1 -0
  395. data/tests_old/test_formula_substitution/formula-100_inter +1 -0
  396. data/tests_old/test_formula_substitution/formula-100_pre.tex +1 -0
  397. data/tests_old/test_formula_substitution/log +1 -0
  398. data/tests_old/test_formula_with_2_subsequent_loops/formula-100 +1 -0
  399. data/tests_old/test_formula_with_2_subsequent_loops/formula-100.inter +1 -0
  400. data/tests_old/test_formula_with_2_subsequent_loops/formula-100.raw +1 -0
  401. data/tests_old/test_formula_with_2_subsequent_loops/formula-100_inter +1 -0
  402. data/tests_old/test_formula_with_2_subsequent_loops/formula-100_pre.tex +1 -0
  403. data/tests_old/test_formula_with_3_loops/formula-100 +1 -0
  404. data/tests_old/test_formula_with_3_loops/formula-100.inter +1 -0
  405. data/tests_old/test_formula_with_3_loops/formula-100.raw +1 -0
  406. data/tests_old/test_formula_with_3_loops/formula-100_inter +1 -0
  407. data/tests_old/test_formula_with_3_loops/formula-100_pre.tex +1 -0
  408. data/tests_old/test_formula_with_3_loops_and_reinitialization/formula-100 +1 -0
  409. data/tests_old/test_formula_with_3_loops_and_reinitialization/formula-100.inter +1 -0
  410. data/tests_old/test_formula_with_3_loops_and_reinitialization/formula-100.raw +1 -0
  411. data/tests_old/test_formula_with_3_loops_and_reinitialization/formula-100_inter +1 -0
  412. data/tests_old/test_formula_with_3_loops_and_reinitialization/formula-100_pre.tex +1 -0
  413. data/tests_old/test_formula_with_3_loops_in_loop/formula-100 +1 -0
  414. data/tests_old/test_formula_with_3_loops_in_loop/formula-100.inter +1 -0
  415. data/tests_old/test_formula_with_3_loops_in_loop/formula-100.raw +1 -0
  416. data/tests_old/test_formula_with_3_loops_in_loop/formula-100_inter +1 -0
  417. data/tests_old/test_formula_with_3_loops_in_loop/formula-100_pre.tex +1 -0
  418. data/tests_old/test_formula_with_ambiguous_substitution/formula-100 +1 -0
  419. data/tests_old/test_formula_with_ambiguous_substitution/formula-100.inter +1 -0
  420. data/tests_old/test_formula_with_ambiguous_substitution/formula-100.raw +1 -0
  421. data/tests_old/test_formula_with_ambiguous_substitution/formula-100_inter +1 -0
  422. data/tests_old/test_formula_with_ambiguous_substitution/formula-100_pre.tex +1 -0
  423. data/tests_old/test_formula_with_array_as_properties/formula-100 +1 -0
  424. data/tests_old/test_formula_with_array_as_properties/formula-100.inter +1 -0
  425. data/tests_old/test_formula_with_array_as_properties/formula-100.raw +1 -0
  426. data/tests_old/test_formula_with_array_as_properties/formula-100_inter +1 -0
  427. data/tests_old/test_formula_with_array_as_properties/formula-100_pre.tex +1 -0
  428. data/tests_old/test_formula_with_bound_return/formula-100 +1 -0
  429. data/tests_old/test_formula_with_bound_return/formula-100.inter +1 -0
  430. data/tests_old/test_formula_with_bound_return/formula-100.raw +1 -0
  431. data/tests_old/test_formula_with_bound_return/formula-100_inter +1 -0
  432. data/tests_old/test_formula_with_bound_return/formula-100_pre.tex +1 -0
  433. data/tests_old/test_formula_with_bound_return/log +1 -0
  434. data/tests_old/test_formula_with_conditions_accross_several_functions/formula-100 +1 -0
  435. data/tests_old/test_formula_with_conditions_accross_several_functions/formula-100.inter +1 -0
  436. data/tests_old/test_formula_with_conditions_accross_several_functions/formula-100.raw +1 -0
  437. data/tests_old/test_formula_with_conditions_accross_several_functions/formula-100_inter +1 -0
  438. data/tests_old/test_formula_with_conditions_accross_several_functions/formula-100_pre.tex +1 -0
  439. data/tests_old/test_formula_with_conditions_accross_several_functions/log +1 -0
  440. data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100 +1 -0
  441. data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100.inter +1 -0
  442. data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100.raw +1 -0
  443. data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100_inter +1 -0
  444. data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100_pre.tex +1 -0
  445. data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/log +1 -0
  446. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/formula-100 +1 -0
  447. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/formula-100.inter +1 -0
  448. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/formula-100.raw +1 -0
  449. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/formula-100_inter +1 -0
  450. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/formula-100_pre.tex +1 -0
  451. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/log +1 -0
  452. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100 +1 -0
  453. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100.inter +1 -0
  454. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100.raw +1 -0
  455. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100_inter +1 -0
  456. data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100_pre.tex +1 -0
  457. data/tests_old/test_formula_with_different_states_in_properties/formula-100 +1 -0
  458. data/tests_old/test_formula_with_different_states_in_properties/formula-100.inter +1 -0
  459. data/tests_old/test_formula_with_different_states_in_properties/formula-100.raw +1 -0
  460. data/tests_old/test_formula_with_different_states_in_properties/formula-100_inter +1 -0
  461. data/tests_old/test_formula_with_different_states_in_properties/formula-100_pre.tex +1 -0
  462. data/tests_old/test_formula_with_initial_value/formula-100 +1 -0
  463. data/tests_old/test_formula_with_initial_value/formula-100.inter +1 -0
  464. data/tests_old/test_formula_with_initial_value/formula-100.raw +1 -0
  465. data/tests_old/test_formula_with_initial_value/formula-100_inter +1 -0
  466. data/tests_old/test_formula_with_initial_value/formula-100_pre.tex +1 -0
  467. data/tests_old/test_formula_with_initial_value/log +1 -0
  468. data/tests_old/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100 +1 -0
  469. data/tests_old/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100.inter +1 -0
  470. data/tests_old/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100.raw +1 -0
  471. data/tests_old/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100_inter +1 -0
  472. data/tests_old/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100_pre.tex +1 -0
  473. data/tests_old/test_formula_with_loop_with_array/formula-100 +1 -0
  474. data/tests_old/test_formula_with_loop_with_array/formula-100.inter +1 -0
  475. data/tests_old/test_formula_with_loop_with_array/formula-100.raw +1 -0
  476. data/tests_old/test_formula_with_loop_with_array/formula-100_inter +1 -0
  477. data/tests_old/test_formula_with_loop_with_array/formula-100_pre.tex +1 -0
  478. data/tests_old/test_formula_with_loop_with_array/log +1 -0
  479. data/tests_old/test_formula_with_loop_with_collection/formula-100 +1 -0
  480. data/tests_old/test_formula_with_loop_with_collection/formula-100.inter +1 -0
  481. data/tests_old/test_formula_with_loop_with_collection/formula-100.raw +1 -0
  482. data/tests_old/test_formula_with_loop_with_collection/formula-100_inter +1 -0
  483. data/tests_old/test_formula_with_loop_with_collection/formula-100_pre.tex +1 -0
  484. data/tests_old/test_formula_with_loop_with_collection/log +1 -0
  485. data/tests_old/test_formula_with_loop_with_collection_on_objects/formula-100 +1 -0
  486. data/tests_old/test_formula_with_loop_with_collection_on_objects/formula-100.inter +1 -0
  487. data/tests_old/test_formula_with_loop_with_collection_on_objects/formula-100.raw +1 -0
  488. data/tests_old/test_formula_with_loop_with_collection_on_objects/formula-100_inter +1 -0
  489. data/tests_old/test_formula_with_loop_with_collection_on_objects/formula-100_pre.tex +1 -0
  490. data/tests_old/test_formula_with_loop_with_collection_on_objects/log +1 -0
  491. data/tests_old/test_formula_with_loop_with_div/formula-100 +1 -0
  492. data/tests_old/test_formula_with_loop_with_div/formula-100.inter +1 -0
  493. data/tests_old/test_formula_with_loop_with_div/formula-100.raw +1 -0
  494. data/tests_old/test_formula_with_loop_with_div/formula-100_inter +1 -0
  495. data/tests_old/test_formula_with_loop_with_div/formula-100_pre.tex +1 -0
  496. data/tests_old/test_formula_with_loop_with_ext_call/formula-100 +1 -0
  497. data/tests_old/test_formula_with_loop_with_ext_call/formula-100.inter +1 -0
  498. data/tests_old/test_formula_with_loop_with_ext_call/formula-100.raw +1 -0
  499. data/tests_old/test_formula_with_loop_with_ext_call/formula-100_inter +1 -0
  500. data/tests_old/test_formula_with_loop_with_ext_call/formula-100_pre.tex +1 -0
  501. data/tests_old/test_formula_with_loop_with_prod/formula-100 +1 -0
  502. data/tests_old/test_formula_with_loop_with_prod/formula-100.inter +1 -0
  503. data/tests_old/test_formula_with_loop_with_prod/formula-100.raw +1 -0
  504. data/tests_old/test_formula_with_loop_with_prod/formula-100_inter +1 -0
  505. data/tests_old/test_formula_with_loop_with_prod/formula-100_pre.tex +1 -0
  506. data/tests_old/test_formula_with_loop_with_subst/formula-100 +1 -0
  507. data/tests_old/test_formula_with_loop_with_subst/formula-100.inter +1 -0
  508. data/tests_old/test_formula_with_loop_with_subst/formula-100.raw +1 -0
  509. data/tests_old/test_formula_with_loop_with_subst/formula-100_inter +1 -0
  510. data/tests_old/test_formula_with_loop_with_subst/formula-100_pre.tex +1 -0
  511. data/tests_old/test_formula_with_loop_with_sum/formula-100 +1 -0
  512. data/tests_old/test_formula_with_loop_with_sum/formula-100.inter +1 -0
  513. data/tests_old/test_formula_with_loop_with_sum/formula-100.raw +1 -0
  514. data/tests_old/test_formula_with_loop_with_sum/formula-100_inter +1 -0
  515. data/tests_old/test_formula_with_loop_with_sum/formula-100_pre.tex +1 -0
  516. data/tests_old/test_formula_with_loop_with_while/formula-100 +1 -0
  517. data/tests_old/test_formula_with_loop_with_while/formula-100.inter +1 -0
  518. data/tests_old/test_formula_with_loop_with_while/formula-100.raw +1 -0
  519. data/tests_old/test_formula_with_loop_with_while/formula-100_inter +1 -0
  520. data/tests_old/test_formula_with_loop_with_while/formula-100_pre.tex +1 -0
  521. data/tests_old/test_formula_with_loop_with_while_break/formula-100 +1 -0
  522. data/tests_old/test_formula_with_loop_with_while_break/formula-100.inter +1 -0
  523. data/tests_old/test_formula_with_loop_with_while_break/formula-100.raw +1 -0
  524. data/tests_old/test_formula_with_loop_with_while_break/formula-100_inter +1 -0
  525. data/tests_old/test_formula_with_loop_with_while_break/formula-100_pre.tex +1 -0
  526. data/tests_old/test_formula_with_loop_with_while_return/formula-100 +1 -0
  527. data/tests_old/test_formula_with_loop_with_while_return/formula-100.inter +1 -0
  528. data/tests_old/test_formula_with_loop_with_while_return/formula-100.raw +1 -0
  529. data/tests_old/test_formula_with_loop_with_while_return/formula-100_inter +1 -0
  530. data/tests_old/test_formula_with_loop_with_while_return/formula-100_pre.tex +1 -0
  531. data/tests_old/test_formula_with_multiple_call_to_same_func/formula-100 +1 -0
  532. data/tests_old/test_formula_with_multiple_call_to_same_func/formula-100.inter +1 -0
  533. data/tests_old/test_formula_with_multiple_call_to_same_func/formula-100.raw +1 -0
  534. data/tests_old/test_formula_with_multiple_call_to_same_func/formula-100_inter +1 -0
  535. data/tests_old/test_formula_with_multiple_call_to_same_func/formula-100_pre.tex +1 -0
  536. data/tests_old/test_formula_with_multiple_operations/formula-100 +1 -0
  537. data/tests_old/test_formula_with_multiple_operations/formula-100.inter +1 -0
  538. data/tests_old/test_formula_with_multiple_operations/formula-100.raw +1 -0
  539. data/tests_old/test_formula_with_multiple_operations/formula-100_inter +1 -0
  540. data/tests_old/test_formula_with_multiple_operations/formula-100_pre.tex +1 -0
  541. data/tests_old/test_formula_with_multiple_references/formula-100 +1 -0
  542. data/tests_old/test_formula_with_multiple_references/formula-100.inter +1 -0
  543. data/tests_old/test_formula_with_multiple_references/formula-100.raw +1 -0
  544. data/tests_old/test_formula_with_multiple_references/formula-100_inter +1 -0
  545. data/tests_old/test_formula_with_multiple_references/formula-100_pre.tex +1 -0
  546. data/tests_old/test_formula_with_multiple_return/formula-100 +1 -0
  547. data/tests_old/test_formula_with_multiple_return/formula-100.inter +1 -0
  548. data/tests_old/test_formula_with_multiple_return/formula-100.raw +1 -0
  549. data/tests_old/test_formula_with_multiple_return/formula-100_inter +1 -0
  550. data/tests_old/test_formula_with_multiple_return/formula-100_pre.tex +1 -0
  551. data/tests_old/test_formula_with_multiple_return_when_stdDev_is_0/formula-100 +1 -0
  552. data/tests_old/test_formula_with_multiple_return_when_stdDev_is_0/formula-100.inter +1 -0
  553. data/tests_old/test_formula_with_multiple_return_when_stdDev_is_0/formula-100.raw +1 -0
  554. data/tests_old/test_formula_with_multiple_return_when_stdDev_is_0/formula-100_inter +1 -0
  555. data/tests_old/test_formula_with_multiple_return_when_stdDev_is_0/formula-100_pre.tex +1 -0
  556. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100 +1 -0
  557. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100.inter +1 -0
  558. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100.raw +1 -0
  559. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100_inter +1 -0
  560. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100_pre.tex +1 -0
  561. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100 +1 -0
  562. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100.inter +1 -0
  563. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100.raw +1 -0
  564. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100_inter +1 -0
  565. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100_pre.tex +1 -0
  566. data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/log +1 -0
  567. data/tests_old/test_formula_with_non_impacting_conditions/formula-100 +1 -0
  568. data/tests_old/test_formula_with_non_impacting_conditions/formula-100.inter +1 -0
  569. data/tests_old/test_formula_with_non_impacting_conditions/formula-100.raw +1 -0
  570. data/tests_old/test_formula_with_non_impacting_conditions/formula-100_inter +1 -0
  571. data/tests_old/test_formula_with_non_impacting_conditions/formula-100_pre.tex +1 -0
  572. data/tests_old/test_formula_with_non_impacting_conditions/log +1 -0
  573. data/tests_old/test_formula_with_object_properties/formula-100 +1 -0
  574. data/tests_old/test_formula_with_object_properties/formula-100.inter +1 -0
  575. data/tests_old/test_formula_with_object_properties/formula-100.raw +1 -0
  576. data/tests_old/test_formula_with_object_properties/formula-100_inter +1 -0
  577. data/tests_old/test_formula_with_object_properties/formula-100_pre.tex +1 -0
  578. data/tests_old/test_formula_with_paren/formula-100 +1 -0
  579. data/tests_old/test_formula_with_paren/formula-100.inter +1 -0
  580. data/tests_old/test_formula_with_paren/formula-100.raw +1 -0
  581. data/tests_old/test_formula_with_paren/formula-100_inter +1 -0
  582. data/tests_old/test_formula_with_paren/formula-100_pre.tex +1 -0
  583. data/tests_old/test_formula_with_reference_in_ctor/formula-100 +1 -0
  584. data/tests_old/test_formula_with_reference_in_ctor/formula-100.inter +1 -0
  585. data/tests_old/test_formula_with_reference_in_ctor/formula-100.raw +1 -0
  586. data/tests_old/test_formula_with_reference_in_ctor/formula-100_inter +1 -0
  587. data/tests_old/test_formula_with_reference_in_ctor/formula-100_pre.tex +1 -0
  588. data/tests_old/test_formula_with_reference_in_ctor_with_called_ctor/formula-100 +1 -0
  589. data/tests_old/test_formula_with_reference_in_ctor_with_called_ctor/formula-100.inter +1 -0
  590. data/tests_old/test_formula_with_reference_in_ctor_with_called_ctor/formula-100.raw +1 -0
  591. data/tests_old/test_formula_with_reference_in_ctor_with_called_ctor/formula-100_inter +1 -0
  592. data/tests_old/test_formula_with_reference_in_ctor_with_called_ctor/formula-100_pre.tex +1 -0
  593. data/tests_old/test_formula_with_return_array_as_properties/formula-100 +1 -0
  594. data/tests_old/test_formula_with_return_array_as_properties/formula-100.inter +1 -0
  595. data/tests_old/test_formula_with_return_array_as_properties/formula-100.raw +1 -0
  596. data/tests_old/test_formula_with_return_array_as_properties/formula-100_inter +1 -0
  597. data/tests_old/test_formula_with_return_array_as_properties/formula-100_pre.tex +1 -0
  598. data/tests_old/test_formula_with_return_string_as_properties/formula-100 +1 -0
  599. data/tests_old/test_formula_with_return_string_as_properties/formula-100.inter +1 -0
  600. data/tests_old/test_formula_with_return_string_as_properties/formula-100.raw +1 -0
  601. data/tests_old/test_formula_with_return_string_as_properties/formula-100_inter +1 -0
  602. data/tests_old/test_formula_with_return_string_as_properties/formula-100_pre.tex +1 -0
  603. data/tests_old/test_formula_with_unbound_call_in_assign/formula-100 +1 -0
  604. data/tests_old/test_formula_with_unbound_call_in_assign/formula-100.inter +1 -0
  605. data/tests_old/test_formula_with_unbound_call_in_assign/formula-100.raw +1 -0
  606. data/tests_old/test_formula_with_unbound_call_in_assign/formula-100_inter +1 -0
  607. data/tests_old/test_formula_with_unbound_call_in_assign/formula-100_pre.tex +1 -0
  608. data/tests_old/test_formula_with_unused_condition/formula-100 +1 -0
  609. data/tests_old/test_formula_with_unused_condition/formula-100.inter +1 -0
  610. data/tests_old/test_formula_with_unused_condition/formula-100.raw +1 -0
  611. data/tests_old/test_formula_with_unused_condition/formula-100_inter +1 -0
  612. data/tests_old/test_formula_with_unused_condition/formula-100_pre.tex +1 -0
  613. data/tests_old/test_formula_with_unused_condition/log +1 -0
  614. data/tests_old/test_formula_with_while_to_for_loop/formula-100 +1 -0
  615. data/tests_old/test_formula_with_while_to_for_loop/formula-100.inter +1 -0
  616. data/tests_old/test_formula_with_while_to_for_loop/formula-100.raw +1 -0
  617. data/tests_old/test_formula_with_while_to_for_loop/formula-100_inter +1 -0
  618. data/tests_old/test_formula_with_while_to_for_loop/formula-100_pre.tex +1 -0
  619. data/tests_old/test_formula_with_while_to_for_loop/log +1 -0
  620. data/tests_old/test_formula_with_while_to_for_loop_with_break/formula-100 +1 -0
  621. data/tests_old/test_formula_with_while_to_for_loop_with_break/formula-100.inter +1 -0
  622. data/tests_old/test_formula_with_while_to_for_loop_with_break/formula-100.raw +1 -0
  623. data/tests_old/test_formula_with_while_to_for_loop_with_break/formula-100_inter +1 -0
  624. data/tests_old/test_formula_with_while_to_for_loop_with_break/formula-100_pre.tex +1 -0
  625. data/tests_old/test_simple_formula/formula-100 +1 -0
  626. data/tests_old/test_simple_formula/formula-100.inter +1 -0
  627. data/tests_old/test_simple_formula/formula-100.raw +1 -0
  628. data/tests_old/test_simple_formula/formula-100_inter +1 -0
  629. data/tests_old/test_simple_formula/formula-100_pre.tex +1 -0
  630. data/texput.log +21 -0
  631. metadata +757 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f640d104e1a26c56d3a0504ad08e110de3ea840ebd17a4d57ba89f989da39dd6
4
+ data.tar.gz: 83afcaded5bf20f8cb823a75ac740095bd144322d264449802a58d60dee3c5a4
5
+ SHA512:
6
+ metadata.gz: 42907545732c415ea57425fc65f09c8b0648bcfd538d4e306afbcb5887774bb40aa46a366b08938f7d9ff2cefbb8908fe3453fb9538028b7f1c3f404a08d56a7
7
+ data.tar.gz: e7f67f9284b5773cf21452389eef4f587166063e64143cf724f44da4cb87cccbdb6acf8a64188a092c86abf40e3405cdb86eef070d34bf07d662bb93416a8226
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.1
4
+ before_install: gem install bundler -v 1.11.2
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in deepalgo_il.gemspec
6
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Valderane Potong Mboucheko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,47 @@
1
+ # DeepalgoIl
2
+
3
+ DeepalgoIl is a litte module that aim to convert the <i>Deepalgo IL</i> into a certain human readable form (it can be javascript, html, tex, etc...)
4
+ The goal is have a bunch of <i>backends</i> in which the <i>Deepalgo IL</i> can be represented. More, we should to be able to implement a new backend rapidly
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'deepalgo_il'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install deepalgo_il
21
+
22
+ ## Usage
23
+ To use this library, you have to import it in your code. Thus you can call the method
24
+ ```
25
+ deepalgoIl_to(il, backends)
26
+ ```
27
+ where
28
+ * il : stream of characters that represent a file in a <b>Deepalgo IL</b> form
29
+ * backends : A list of backends in which you want your <b>il<b> to be represented. For example you can pass ["tex", "js"] to generate the <b>il</b> into a tex and javascript form. Obviously, these backends have to be implemented, otherwise every backend not implemented will be ignored. Not setting a value for this parameter will make the program generating outputs for every implemented backend
30
+
31
+ ### To gene
32
+
33
+ ## Development
34
+
35
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
+
37
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+
39
+ ## Contributing
40
+
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/deepalgo_il.
42
+
43
+
44
+ ## License
45
+
46
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
47
+
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'deepalgo_il'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'deepalgo_il/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'deepalgo_il'
9
+ spec.version = DeepalgoIl::VERSION
10
+ spec.authors = ['Valderane Potong Mboucheko']
11
+ spec.email = ['valderane.potongmboucheko@margo-group.com']
12
+
13
+ spec.summary = 'Little formula traductor from IL to a backend of your choice (Latex for exemple)'
14
+ spec.description = 'This gem provides some functions to convert IL into a backend we want.'
15
+ # spec.homepage = "TODO: Put your gem's website or public repo URL here."
16
+ spec.license = 'MIT'
17
+
18
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
19
+ # delete this section to allow pushing this gem to any host.
20
+ if spec.respond_to?(:metadata)
21
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
22
+ else
23
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ spec.bindir = 'exe'
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ['lib']
30
+
31
+ spec.add_development_dependency 'bundler', '~> 2.1'
32
+ spec.add_development_dependency 'logger'
33
+ spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'rspec', '~> 3.0'
35
+ spec.add_development_dependency 'rubocop'
36
+ spec.add_development_dependency 'treetop'
37
+ end
@@ -0,0 +1,300 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'logging.rb'
4
+
5
+ module DeepAlgo
6
+ module IL
7
+ module Backend
8
+ class Generic
9
+ def generate(_tree)
10
+ raise 'not yep implemented'
11
+ end
12
+
13
+ def document(_tree)
14
+ raise 'not yep implemented'
15
+ end
16
+
17
+ def expr(_tree)
18
+ raise 'not yep implemented'
19
+ end
20
+
21
+ def add_expr(_tree)
22
+ raise 'not yep implemented'
23
+ end
24
+
25
+ def assignment(_tree)
26
+ raise 'not yet implemented'
27
+ end
28
+
29
+ def while_expr(_tree)
30
+ raise 'not yep implemented'
31
+ end
32
+
33
+ def while_cond_expr(_tree)
34
+ raise 'not yep implemented'
35
+ end
36
+
37
+ def plus_expr(_tree)
38
+ raise 'not yep implemented'
39
+ end
40
+
41
+ def minus_expr(_tree)
42
+ raise 'not yep implemented'
43
+ end
44
+
45
+ def time_expr(_tree)
46
+ raise 'not yep implemented'
47
+ end
48
+
49
+ def div_expr(_tree)
50
+ raise 'not yep implemented'
51
+ end
52
+
53
+ def dotted_expr(_tree)
54
+ raise 'not yep implemented'
55
+ end
56
+
57
+ def factor(_tree)
58
+ raise 'not yep implemented'
59
+ end
60
+
61
+ def tab_ref(_tree)
62
+ raise 'not yep implemented'
63
+ end
64
+
65
+ def terminal(_tree)
66
+ raise 'not yep implemented'
67
+ end
68
+
69
+ def dotted_terminal(_tree)
70
+ raise 'not yep implemented'
71
+ end
72
+
73
+ def atom(_tree)
74
+ raise 'not yep implemented'
75
+ end
76
+
77
+ def descriptor(_tree)
78
+ raise 'not yep implemented'
79
+ end
80
+
81
+ def descriptor_items(_tree)
82
+ raise 'not yep implemented'
83
+ end
84
+
85
+ def descriptor_item(_tree)
86
+ raise 'not yep implemented'
87
+ end
88
+
89
+ def call(_tree)
90
+ raise 'not yep implemented'
91
+ end
92
+
93
+ def args(_tree)
94
+ raise 'not yep implemented'
95
+ end
96
+
97
+ def parenthesed(_tree)
98
+ raise 'not yep implemented'
99
+ end
100
+
101
+ def colored(_tree)
102
+ raise 'not yep implemented'
103
+ end
104
+
105
+ def color(_tree)
106
+ raise 'not yep implemented'
107
+ end
108
+
109
+ def colorcode(_tree)
110
+ raise 'not yep implemented'
111
+ end
112
+
113
+ def identifier(_tree)
114
+ raise 'not yep implemented'
115
+ end
116
+
117
+ def number(_tree)
118
+ raise 'not yep implemented'
119
+ end
120
+
121
+ def unary_minus(_tree)
122
+ 'not yep implemented'
123
+ end
124
+
125
+ def text(_tree)
126
+ raise 'not yep implemented'
127
+ end
128
+ end
129
+
130
+ class Latex < Generic
131
+ def initialize
132
+ @curr_backend = nil
133
+ end
134
+
135
+ def generate(tree, curr_backend)
136
+ @curr_backend = curr_backend
137
+ latex = tree.value(@curr_backend)
138
+ latex
139
+ end
140
+
141
+ def document(tree)
142
+ tree.elements[0].value(@curr_backend)
143
+ end
144
+
145
+ def add_expr(tree)
146
+ tree.elements[0].value(@curr_backend)
147
+ end
148
+
149
+ def assignment(tree)
150
+ left = tree.elements[0].value(@curr_backend)
151
+ right = tree.elements[4].value(@curr_backend)
152
+ "#{left} \\text{equals} #{right}"
153
+ end
154
+
155
+ def plus_expr(tree)
156
+ left = tree.elements[0].value(@curr_backend)
157
+ right = tree.elements[4].value(@curr_backend)
158
+ "#{left} + #{right}"
159
+ end
160
+
161
+ def minus_expr(tree)
162
+ left = tree.elements[0].value(@curr_backend)
163
+ right = tree.elements[4].value(@curr_backend)
164
+ "#{left} - #{right}"
165
+ end
166
+
167
+ def time_expr(tree)
168
+ left = tree.elements[0].value(@curr_backend)
169
+ right = tree.elements[4].value(@curr_backend)
170
+ "#{left} \\times #{right}"
171
+ end
172
+
173
+ def parenthesed(tree)
174
+ "\\left( #{tree.elements[2].value(@curr_backend)} \\right)"
175
+ end
176
+
177
+ def colored(tree)
178
+ color = "##{tree.elements[0].value(@curr_backend)}"
179
+ expr = tree.elements[4].value(@curr_backend)
180
+ "\\color{ #{color} }{ #{expr} }"
181
+ end
182
+
183
+ def color(tree)
184
+ tree.elements[1].value(@curr_backend)
185
+ # tree.text_value
186
+ end
187
+
188
+ def colorcode(tree)
189
+ tree.text_value
190
+ end
191
+
192
+ def atom(tree)
193
+ tree.text_value
194
+ end
195
+
196
+ def while_expr(tree)
197
+ statements = tree.elements[4].value(@curr_backend)
198
+ cond = tree.elements[8].value(@curr_backend)
199
+ "\\text{repeat} \\left[ #{statements} \\right]#{cond}"
200
+ end
201
+
202
+ def while_cond_expr(tree)
203
+ "_{ \\text{ while #{tree.elements[4].value(@curr_backend)} } }"
204
+ end
205
+
206
+ def text(tree)
207
+ tree.text_value
208
+ end
209
+
210
+ def dotted_expr(tree)
211
+ to_return = ''
212
+ if !tree.elements[1].nil? && tree.elements[1] != ''
213
+ tree
214
+ .elements[1]
215
+ .elements
216
+ .each do |son_expr|
217
+ to_return = "#{to_return}. \
218
+ #{son_expr.elements[2].value(@curr_backend)}"
219
+ end
220
+ end
221
+
222
+ "#{tree.elements[0].value(@curr_backend)}#{to_return}"
223
+ end
224
+
225
+ def call(tree)
226
+ caller_name = tree.elements[0].value(@curr_backend)
227
+ params = tree.elements[4].value(@curr_backend)
228
+ "#{caller_name} \\left( #{params} \\right)"
229
+ end
230
+
231
+ def dotted_terminal(tree)
232
+ first_expr = tree.elements[0].value(@curr_backend)
233
+ second_expr = tree.elements[2].value(@curr_backend)
234
+ "#{first_expr}.#{second_expr}"
235
+ end
236
+
237
+ def args(tree)
238
+ # parse arg, arg, arg, ...
239
+ to_return = ''
240
+ tree
241
+ .elements[1]
242
+ &.elements
243
+ &.each do |arg|
244
+ to_return = "#{to_return}, \
245
+ #{arg.elements[3].value(@curr_backend)}"
246
+ end
247
+ "#{tree.elements[0].value(@curr_backend)}#{to_return}"
248
+ end
249
+
250
+ def tab_ref(tree)
251
+ tab = tree.elements[0].value(@curr_backend)
252
+ index = tree.elements[6].value(@curr_backend)
253
+ "#{tab}_{ #{index} }"
254
+ end
255
+
256
+ def descriptor(tree)
257
+ label = tree.elements[2].value(@curr_backend)
258
+ items = tree.elements[8].value(@curr_backend)
259
+ "\\text{ #{label} } \
260
+ \\left\\{\\begin{array}{l} #{items} \\\\ \\end{array}\\right."
261
+ end
262
+
263
+ def descriptor_items(tree)
264
+ to_return = ''
265
+ tree
266
+ .elements[1]
267
+ &.elements
268
+ &.each do |arg|
269
+ to_return = "#{to_return} \\\\ \
270
+ #{arg.elements[1].value(@curr_backend)} "
271
+ end
272
+ "#{tree.elements[0].value(@curr_backend)} #{to_return}"
273
+ end
274
+
275
+ def descriptor_item(tree)
276
+ label = tree.elements[4].value(@curr_backend)
277
+ assignee = tree
278
+ .elements[10]
279
+ .elements[0]
280
+ .value(@curr_backend)
281
+ "\\text{ #{label} } = #{assignee}"
282
+ end
283
+
284
+ def div_expr(tree)
285
+ numerator = tree.elements[6].value(@curr_backend)
286
+ denominator = tree.elements[14].value(@curr_backend)
287
+ "\\dfrac{ #{numerator} }{ #{denominator} }"
288
+ end
289
+
290
+ def unary_minus(tree)
291
+ "-#{tree.elements[2].value(@curr_backend)}"
292
+ end
293
+
294
+ def identifier(tree)
295
+ tree.text_value
296
+ end
297
+ end
298
+ end
299
+ end
300
+ end