deepalgo_il 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +47 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/deepalgo_il.gemspec +37 -0
- data/lib/backend_manager.rb +300 -0
- data/lib/deepalgo_il.rb +27 -0
- data/lib/deepalgo_il/version.rb +5 -0
- data/lib/il_parser.treetop +220 -0
- data/lib/logging.rb +13 -0
- data/lib/parser.rb +32 -0
- data/log +37990 -0
- data/tests/clean_formula_tex_concern.rb +176 -0
- data/tests/test_big_formula/formula-100.inter +1 -0
- data/tests/test_big_formula/formula-100.raw +1 -0
- data/tests/test_big_formula/formula-100.tex +1 -0
- data/tests/test_big_formula/formula-100_pre.tex +1 -0
- data/tests/test_big_formula/formula_no_color-100.tex +1 -0
- data/tests/test_conditions_for_formula_in_full_app/formula-100.inter +1 -0
- data/tests/test_conditions_for_formula_in_full_app/formula-100.raw +1 -0
- data/tests/test_conditions_for_formula_in_full_app/formula-100.tex +1 -0
- data/tests/test_conditions_for_formula_in_full_app/formula-100_pre.tex +1 -0
- data/tests/test_conditions_for_formula_in_full_app/formula_no_color-100.tex +1 -0
- data/tests/test_conditions_management_whith_multiple_possible_states/formula-100.inter +1 -0
- data/tests/test_conditions_management_whith_multiple_possible_states/formula-100.raw +1 -0
- data/tests/test_conditions_management_whith_multiple_possible_states/formula-100.tex +1 -0
- data/tests/test_conditions_management_whith_multiple_possible_states/formula-100_pre.tex +1 -0
- data/tests/test_conditions_management_whith_multiple_possible_states/formula_no_color-100.tex +1 -0
- data/tests/test_formula_in_ebee/formula-100.inter +1 -0
- data/tests/test_formula_in_ebee/formula-100.raw +1 -0
- data/tests/test_formula_in_ebee/formula-100.tex +1 -0
- data/tests/test_formula_in_ebee/formula-100_pre.tex +1 -0
- data/tests/test_formula_in_ebee/formula_no_color-100.tex +1 -0
- data/tests/test_formula_in_ebee2/formula-100.inter +1 -0
- data/tests/test_formula_in_ebee2/formula-100.raw +1 -0
- data/tests/test_formula_in_ebee2/formula-100.tex +1 -0
- data/tests/test_formula_in_ebee2/formula-100_pre.tex +1 -0
- data/tests/test_formula_in_ebee2/formula_no_color-100.tex +1 -0
- data/tests/test_formula_in_full_app/formula-100.inter +1 -0
- data/tests/test_formula_in_full_app/formula-100.raw +1 -0
- data/tests/test_formula_in_full_app/formula-100.tex +1 -0
- data/tests/test_formula_in_full_app/formula-100_pre.tex +1 -0
- data/tests/test_formula_in_full_app/formula_no_color-100.tex +1 -0
- data/tests/test_formula_is_perfect_number/formula-100.inter +1 -0
- data/tests/test_formula_is_perfect_number/formula-100.raw +1 -0
- data/tests/test_formula_is_perfect_number/formula-100.tex +1 -0
- data/tests/test_formula_is_perfect_number/formula-100_pre.tex +1 -0
- data/tests/test_formula_is_perfect_number/formula_no_color-100.tex +1 -0
- data/tests/test_formula_projet_fred/formula-100.inter +1 -0
- data/tests/test_formula_projet_fred/formula-100.raw +1 -0
- data/tests/test_formula_projet_fred/formula-100.tex +1 -0
- data/tests/test_formula_projet_fred/formula-100_pre.tex +1 -0
- data/tests/test_formula_projet_fred/formula_no_color-100.tex +1 -0
- data/tests/test_formula_substitution/formula-100.inter +1 -0
- data/tests/test_formula_substitution/formula-100.raw +1 -0
- data/tests/test_formula_substitution/formula-100.tex +1 -0
- data/tests/test_formula_substitution/formula-100_pre.tex +1 -0
- data/tests/test_formula_substitution/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_2_subsequent_loops/formula-100.inter +1 -0
- data/tests/test_formula_with_2_subsequent_loops/formula-100.raw +1 -0
- data/tests/test_formula_with_2_subsequent_loops/formula-100.tex +1 -0
- data/tests/test_formula_with_2_subsequent_loops/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_2_subsequent_loops/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_3_loops/formula-100.inter +1 -0
- data/tests/test_formula_with_3_loops/formula-100.raw +1 -0
- data/tests/test_formula_with_3_loops/formula-100.tex +1 -0
- data/tests/test_formula_with_3_loops/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_3_loops/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_3_loops_and_reinitialization/formula-100.inter +1 -0
- data/tests/test_formula_with_3_loops_and_reinitialization/formula-100.raw +1 -0
- data/tests/test_formula_with_3_loops_and_reinitialization/formula-100.tex +1 -0
- data/tests/test_formula_with_3_loops_and_reinitialization/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_3_loops_and_reinitialization/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_3_loops_in_loop/formula-100.inter +1 -0
- data/tests/test_formula_with_3_loops_in_loop/formula-100.raw +1 -0
- data/tests/test_formula_with_3_loops_in_loop/formula-100.tex +1 -0
- data/tests/test_formula_with_3_loops_in_loop/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_3_loops_in_loop/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_ambiguous_substitution/formula-100.inter +1 -0
- data/tests/test_formula_with_ambiguous_substitution/formula-100.raw +1 -0
- data/tests/test_formula_with_ambiguous_substitution/formula-100.tex +1 -0
- data/tests/test_formula_with_ambiguous_substitution/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_ambiguous_substitution/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_array_as_properties/formula-100.inter +1 -0
- data/tests/test_formula_with_array_as_properties/formula-100.raw +1 -0
- data/tests/test_formula_with_array_as_properties/formula-100.tex +1 -0
- data/tests/test_formula_with_array_as_properties/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_array_as_properties/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_bound_return/formula-100.inter +1 -0
- data/tests/test_formula_with_bound_return/formula-100.raw +1 -0
- data/tests/test_formula_with_bound_return/formula-100.tex +1 -0
- data/tests/test_formula_with_bound_return/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_bound_return/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_conditions_accross_several_functions/formula-100.inter +1 -0
- data/tests/test_formula_with_conditions_accross_several_functions/formula-100.raw +1 -0
- data/tests/test_formula_with_conditions_accross_several_functions/formula-100.tex +1 -0
- data/tests/test_formula_with_conditions_accross_several_functions/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_conditions_accross_several_functions/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100.inter +1 -0
- data/tests/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100.raw +1 -0
- data/tests/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100.tex +1 -0
- data/tests/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_conditions_accross_several_functions_and_single_call/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_ctor_reference_in_a_child_ctor/formula-100.inter +1 -0
- data/tests/test_formula_with_ctor_reference_in_a_child_ctor/formula-100.raw +1 -0
- data/tests/test_formula_with_ctor_reference_in_a_child_ctor/formula-100.tex +1 -0
- data/tests/test_formula_with_ctor_reference_in_a_child_ctor/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_ctor_reference_in_a_child_ctor/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100.inter +1 -0
- data/tests/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100.raw +1 -0
- data/tests/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100.tex +1 -0
- data/tests/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_different_states_in_properties/formula-100.inter +1 -0
- data/tests/test_formula_with_different_states_in_properties/formula-100.raw +1 -0
- data/tests/test_formula_with_different_states_in_properties/formula-100.tex +1 -0
- data/tests/test_formula_with_different_states_in_properties/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_factorial_reccursion/formula-100.inter +1 -0
- data/tests/test_formula_with_factorial_reccursion/formula-100.raw +1 -0
- data/tests/test_formula_with_factorial_reccursion/formula-100.tex +1 -0
- data/tests/test_formula_with_factorial_reccursion/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_factorial_reccursion/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_for_loop_multiple_assignation/formula-100.inter +1 -0
- data/tests/test_formula_with_for_loop_multiple_assignation/formula-100.raw +1 -0
- data/tests/test_formula_with_for_loop_multiple_assignation/formula-100.tex +1 -0
- data/tests/test_formula_with_for_loop_multiple_assignation/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_for_loop_multiple_assignation/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_initial_value/#formula-100.raw# +1 -0
- data/tests/test_formula_with_initial_value/formula-100.inter +1 -0
- data/tests/test_formula_with_initial_value/formula-100.raw +1 -0
- data/tests/test_formula_with_initial_value/formula-100.tex +1 -0
- data/tests/test_formula_with_initial_value/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_initial_value/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_in_loop_accross_multiple_methods/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_array/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_array/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_array/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_array/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_array/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_collection/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_collection/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_collection/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_collection/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_collection/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_collection_on_objects/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_collection_on_objects/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_collection_on_objects/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_collection_on_objects/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_collection_on_objects/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_div/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_div/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_div/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_div/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_div/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_ext_call/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_ext_call/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_ext_call/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_ext_call/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_ext_call/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_prod/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_prod/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_prod/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_prod/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_prod/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_subst/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_subst/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_subst/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_subst/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_subst/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_sum/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_sum/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_sum/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_sum/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_sum/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_while/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_while/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_while/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_while/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_while/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_while_break/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_while_break/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_while_break/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_while_break/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_while_break/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_loop_with_while_return/formula-100.inter +1 -0
- data/tests/test_formula_with_loop_with_while_return/formula-100.raw +1 -0
- data/tests/test_formula_with_loop_with_while_return/formula-100.tex +1 -0
- data/tests/test_formula_with_loop_with_while_return/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_loop_with_while_return/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_assignation/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_assignation/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_assignation/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_if/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_assignation_if/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_assignation_if/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_if/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_if/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_in_loop/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_assignation_in_loop/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_assignation_in_loop/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_in_loop/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_in_loop/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_no_if/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_assignation_no_if/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_assignation_no_if/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_no_if/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_no_if/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_with_false_if/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_assignation_with_false_if/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_assignation_with_false_if/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_with_false_if/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_with_false_if/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_with_true_if/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_assignation_with_true_if/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_assignation_with_true_if/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_with_true_if/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_assignation_with_true_if/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_call_to_same_func/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_call_to_same_func/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_call_to_same_func/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_call_to_same_func/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_call_to_same_func/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_operations/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_operations/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_operations/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_operations/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_operations/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_references/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_references/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_references/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_references/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_references/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_return/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_return/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_return/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_return/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_return/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_return_when_stdDev_is_0/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_return_when_stdDev_is_0/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_return_when_stdDev_is_0/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_return_when_stdDev_is_0/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_return_when_stdDev_is_0/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100.inter +1 -0
- data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100.raw +1 -0
- data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100.tex +1 -0
- data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_non_impacting_conditions/formula-100.inter +1 -0
- data/tests/test_formula_with_non_impacting_conditions/formula-100.raw +1 -0
- data/tests/test_formula_with_non_impacting_conditions/formula-100.tex +1 -0
- data/tests/test_formula_with_non_impacting_conditions/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_non_impacting_conditions/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_object_properties/formula-100.inter +1 -0
- data/tests/test_formula_with_object_properties/formula-100.raw +1 -0
- data/tests/test_formula_with_object_properties/formula-100.tex +1 -0
- data/tests/test_formula_with_object_properties/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_object_properties/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_paren/formula-100.inter +1 -0
- data/tests/test_formula_with_paren/formula-100.raw +1 -0
- data/tests/test_formula_with_paren/formula-100.tex +1 -0
- data/tests/test_formula_with_paren/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_paren/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_reference_in_ctor/formula-100.inter +1 -0
- data/tests/test_formula_with_reference_in_ctor/formula-100.raw +1 -0
- data/tests/test_formula_with_reference_in_ctor/formula-100.tex +1 -0
- data/tests/test_formula_with_reference_in_ctor/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_reference_in_ctor/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_reference_in_ctor_with_called_ctor/formula-100.inter +1 -0
- data/tests/test_formula_with_reference_in_ctor_with_called_ctor/formula-100.raw +1 -0
- data/tests/test_formula_with_reference_in_ctor_with_called_ctor/formula-100.tex +1 -0
- data/tests/test_formula_with_reference_in_ctor_with_called_ctor/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_false_if_in_loop/formula-100.inter +1 -0
- data/tests/test_formula_with_reinint_assignation_false_if_in_loop/formula-100.raw +1 -0
- data/tests/test_formula_with_reinint_assignation_false_if_in_loop/formula-100.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_false_if_in_loop/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_false_if_in_loop/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_in_loop/formula-100.inter +1 -0
- data/tests/test_formula_with_reinint_assignation_in_loop/formula-100.raw +1 -0
- data/tests/test_formula_with_reinint_assignation_in_loop/formula-100.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_in_loop/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_in_loop/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_no_if_in_loop/formula-100.inter +1 -0
- data/tests/test_formula_with_reinint_assignation_no_if_in_loop/formula-100.raw +1 -0
- data/tests/test_formula_with_reinint_assignation_no_if_in_loop/formula-100.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_no_if_in_loop/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_no_if_in_loop/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_true_if_in_loop/formula-100.inter +1 -0
- data/tests/test_formula_with_reinint_assignation_true_if_in_loop/formula-100.raw +1 -0
- data/tests/test_formula_with_reinint_assignation_true_if_in_loop/formula-100.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_true_if_in_loop/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_reinint_assignation_true_if_in_loop/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_return_array_as_properties/formula-100.inter +1 -0
- data/tests/test_formula_with_return_array_as_properties/formula-100.raw +1 -0
- data/tests/test_formula_with_return_array_as_properties/formula-100.tex +1 -0
- data/tests/test_formula_with_return_array_as_properties/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_return_string_as_properties/formula-100.inter +1 -0
- data/tests/test_formula_with_return_string_as_properties/formula-100.raw +1 -0
- data/tests/test_formula_with_return_string_as_properties/formula-100.tex +1 -0
- data/tests/test_formula_with_return_string_as_properties/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_return_string_as_properties/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_unbound_call_in_assign/formula-100.inter +1 -0
- data/tests/test_formula_with_unbound_call_in_assign/formula-100.raw +1 -0
- data/tests/test_formula_with_unbound_call_in_assign/formula-100.tex +1 -0
- data/tests/test_formula_with_unbound_call_in_assign/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_unbound_call_in_assign/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_unused_condition/formula-100.inter +1 -0
- data/tests/test_formula_with_unused_condition/formula-100.raw +1 -0
- data/tests/test_formula_with_unused_condition/formula-100.tex +1 -0
- data/tests/test_formula_with_unused_condition/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_unused_condition/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_while_loop_multiple_assignation/formula-100.inter +1 -0
- data/tests/test_formula_with_while_loop_multiple_assignation/formula-100.raw +1 -0
- data/tests/test_formula_with_while_loop_multiple_assignation/formula-100.tex +1 -0
- data/tests/test_formula_with_while_loop_multiple_assignation/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_while_loop_multiple_assignation/formula_no_color-100.tex +1 -0
- data/tests/test_formula_with_while_loop_multiple_assignation/test_formula_with_for_loop_multiple_assignation/formula-100.raw +1 -0
- data/tests/test_formula_with_while_loop_multiple_assignation/test_formula_with_for_loop_multiple_assignation/formula-100.tex +1 -0
- data/tests/test_formula_with_while_to_for_loop/formula-100.inter +1 -0
- data/tests/test_formula_with_while_to_for_loop/formula-100.raw +1 -0
- data/tests/test_formula_with_while_to_for_loop/formula-100.tex +1 -0
- data/tests/test_formula_with_while_to_for_loop/formula-100_pre.tex +1 -0
- data/tests/test_formula_with_while_to_for_loop_with_break/formula-100.inter +1 -0
- data/tests/test_formula_with_while_to_for_loop_with_break/formula-100.raw +1 -0
- data/tests/test_formula_with_while_to_for_loop_with_break/formula-100.tex +1 -0
- data/tests/test_formula_with_while_to_for_loop_with_break/formula-100_pre.tex +1 -0
- data/tests/test_isFlush_formula_in_full_app/formula_no_color-100.tex +1 -0
- data/tests/test_isFourOfAKind_formula_in_full_app/formula_no_color-100.tex +1 -0
- data/tests/test_isFullHouse_formula_in_full_app/formula_no_color-100.tex +1 -0
- data/tests/test_isOnePair_formula_in_full_app/formula_no_color-100.tex +1 -0
- data/tests/test_isStraightFlush_formula_in_full_app/formula_no_color-100.tex +1 -0
- data/tests/test_isStraight_formula_in_full_app/formula_no_color-100.tex +1 -0
- data/tests/test_isThreeOfAKind_formula_in_full_app/formula_no_color-100.tex +1 -0
- data/tests/test_isTwoPairs_formula_in_full_app/formula_no_color-100.tex +1 -0
- data/tests/test_simple_formula/formula-100.inter +1 -0
- data/tests/test_simple_formula/formula-100.raw +1 -0
- data/tests/test_simple_formula/formula-100.tex +1 -0
- data/tests/test_simple_formula/formula-100_pre.tex +1 -0
- data/tests/test_simple_formula/formula_no_color-100.tex +1 -0
- data/tests_old/test_big_formula/formula-100 +1 -0
- data/tests_old/test_big_formula/formula-100.inter +1 -0
- data/tests_old/test_big_formula/formula-100.raw +1 -0
- data/tests_old/test_big_formula/formula-100_inter +1 -0
- data/tests_old/test_big_formula/formula-100_pre.tex +1 -0
- data/tests_old/test_conditions_for_formula_in_full_app/formula-100 +1 -0
- data/tests_old/test_conditions_for_formula_in_full_app/formula-100.inter +1 -0
- data/tests_old/test_conditions_for_formula_in_full_app/formula-100.raw +1 -0
- data/tests_old/test_conditions_for_formula_in_full_app/formula-100_inter +1 -0
- data/tests_old/test_conditions_for_formula_in_full_app/formula-100_pre.tex +1 -0
- data/tests_old/test_conditions_for_formula_in_full_app/log +1 -0
- data/tests_old/test_conditions_management_whith_multiple_possible_states/formula-100 +1 -0
- data/tests_old/test_conditions_management_whith_multiple_possible_states/formula-100.inter +1 -0
- data/tests_old/test_conditions_management_whith_multiple_possible_states/formula-100.raw +1 -0
- data/tests_old/test_conditions_management_whith_multiple_possible_states/formula-100_inter +1 -0
- data/tests_old/test_conditions_management_whith_multiple_possible_states/formula-100_pre.tex +1 -0
- data/tests_old/test_descriptor_item/formula-100 +1 -0
- data/tests_old/test_descriptor_item/formula-100.inter +1 -0
- data/tests_old/test_descriptor_item/formula-100.raw +1 -0
- data/tests_old/test_descriptor_item/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_in_ebee/formula-100 +1 -0
- data/tests_old/test_formula_in_ebee/formula-100.inter +1 -0
- data/tests_old/test_formula_in_ebee/formula-100.raw +1 -0
- data/tests_old/test_formula_in_ebee/formula-100_inter +1 -0
- data/tests_old/test_formula_in_ebee/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_in_ebee2/formula-100 +1 -0
- data/tests_old/test_formula_in_ebee2/formula-100.inter +1 -0
- data/tests_old/test_formula_in_ebee2/formula-100.raw +1 -0
- data/tests_old/test_formula_in_ebee2/formula-100_inter +1 -0
- data/tests_old/test_formula_in_ebee2/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_in_full_app/formula-100 +1 -0
- data/tests_old/test_formula_in_full_app/formula-100.inter +1 -0
- data/tests_old/test_formula_in_full_app/formula-100.raw +1 -0
- data/tests_old/test_formula_in_full_app/formula-100_inter +1 -0
- data/tests_old/test_formula_in_full_app/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_in_full_app/log +1 -0
- data/tests_old/test_formula_substitution/formula-100 +1 -0
- data/tests_old/test_formula_substitution/formula-100.inter +1 -0
- data/tests_old/test_formula_substitution/formula-100.raw +1 -0
- data/tests_old/test_formula_substitution/formula-100_inter +1 -0
- data/tests_old/test_formula_substitution/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_substitution/log +1 -0
- data/tests_old/test_formula_with_2_subsequent_loops/formula-100 +1 -0
- data/tests_old/test_formula_with_2_subsequent_loops/formula-100.inter +1 -0
- data/tests_old/test_formula_with_2_subsequent_loops/formula-100.raw +1 -0
- data/tests_old/test_formula_with_2_subsequent_loops/formula-100_inter +1 -0
- data/tests_old/test_formula_with_2_subsequent_loops/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_3_loops/formula-100 +1 -0
- data/tests_old/test_formula_with_3_loops/formula-100.inter +1 -0
- data/tests_old/test_formula_with_3_loops/formula-100.raw +1 -0
- data/tests_old/test_formula_with_3_loops/formula-100_inter +1 -0
- data/tests_old/test_formula_with_3_loops/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_3_loops_and_reinitialization/formula-100 +1 -0
- data/tests_old/test_formula_with_3_loops_and_reinitialization/formula-100.inter +1 -0
- data/tests_old/test_formula_with_3_loops_and_reinitialization/formula-100.raw +1 -0
- data/tests_old/test_formula_with_3_loops_and_reinitialization/formula-100_inter +1 -0
- data/tests_old/test_formula_with_3_loops_and_reinitialization/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_3_loops_in_loop/formula-100 +1 -0
- data/tests_old/test_formula_with_3_loops_in_loop/formula-100.inter +1 -0
- data/tests_old/test_formula_with_3_loops_in_loop/formula-100.raw +1 -0
- data/tests_old/test_formula_with_3_loops_in_loop/formula-100_inter +1 -0
- data/tests_old/test_formula_with_3_loops_in_loop/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_ambiguous_substitution/formula-100 +1 -0
- data/tests_old/test_formula_with_ambiguous_substitution/formula-100.inter +1 -0
- data/tests_old/test_formula_with_ambiguous_substitution/formula-100.raw +1 -0
- data/tests_old/test_formula_with_ambiguous_substitution/formula-100_inter +1 -0
- data/tests_old/test_formula_with_ambiguous_substitution/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_array_as_properties/formula-100 +1 -0
- data/tests_old/test_formula_with_array_as_properties/formula-100.inter +1 -0
- data/tests_old/test_formula_with_array_as_properties/formula-100.raw +1 -0
- data/tests_old/test_formula_with_array_as_properties/formula-100_inter +1 -0
- data/tests_old/test_formula_with_array_as_properties/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_bound_return/formula-100 +1 -0
- data/tests_old/test_formula_with_bound_return/formula-100.inter +1 -0
- data/tests_old/test_formula_with_bound_return/formula-100.raw +1 -0
- data/tests_old/test_formula_with_bound_return/formula-100_inter +1 -0
- data/tests_old/test_formula_with_bound_return/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_bound_return/log +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions/formula-100 +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions/formula-100.inter +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions/formula-100.raw +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions/formula-100_inter +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions/log +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100 +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100.inter +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100.raw +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100_inter +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_conditions_accross_several_functions_and_single_call/log +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/formula-100 +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/formula-100.inter +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/formula-100.raw +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/formula-100_inter +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor/log +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100 +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100.inter +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100.raw +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100_inter +1 -0
- data/tests_old/test_formula_with_ctor_reference_in_a_child_ctor_and_true_conditions/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_different_states_in_properties/formula-100 +1 -0
- data/tests_old/test_formula_with_different_states_in_properties/formula-100.inter +1 -0
- data/tests_old/test_formula_with_different_states_in_properties/formula-100.raw +1 -0
- data/tests_old/test_formula_with_different_states_in_properties/formula-100_inter +1 -0
- data/tests_old/test_formula_with_different_states_in_properties/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_initial_value/formula-100 +1 -0
- data/tests_old/test_formula_with_initial_value/formula-100.inter +1 -0
- data/tests_old/test_formula_with_initial_value/formula-100.raw +1 -0
- data/tests_old/test_formula_with_initial_value/formula-100_inter +1 -0
- data/tests_old/test_formula_with_initial_value/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_initial_value/log +1 -0
- data/tests_old/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_in_loop_accross_multiple_methods/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_array/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_array/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_array/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_array/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_array/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_array/log +1 -0
- data/tests_old/test_formula_with_loop_with_collection/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_collection/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_collection/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_collection/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_collection/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_collection/log +1 -0
- data/tests_old/test_formula_with_loop_with_collection_on_objects/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_collection_on_objects/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_collection_on_objects/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_collection_on_objects/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_collection_on_objects/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_collection_on_objects/log +1 -0
- data/tests_old/test_formula_with_loop_with_div/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_div/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_div/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_div/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_div/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_ext_call/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_ext_call/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_ext_call/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_ext_call/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_ext_call/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_prod/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_prod/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_prod/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_prod/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_prod/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_subst/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_subst/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_subst/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_subst/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_subst/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_sum/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_sum/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_sum/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_sum/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_sum/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_while/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_while/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_while/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_while/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_while/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_while_break/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_while_break/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_while_break/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_while_break/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_while_break/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_loop_with_while_return/formula-100 +1 -0
- data/tests_old/test_formula_with_loop_with_while_return/formula-100.inter +1 -0
- data/tests_old/test_formula_with_loop_with_while_return/formula-100.raw +1 -0
- data/tests_old/test_formula_with_loop_with_while_return/formula-100_inter +1 -0
- data/tests_old/test_formula_with_loop_with_while_return/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_multiple_call_to_same_func/formula-100 +1 -0
- data/tests_old/test_formula_with_multiple_call_to_same_func/formula-100.inter +1 -0
- data/tests_old/test_formula_with_multiple_call_to_same_func/formula-100.raw +1 -0
- data/tests_old/test_formula_with_multiple_call_to_same_func/formula-100_inter +1 -0
- data/tests_old/test_formula_with_multiple_call_to_same_func/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_multiple_operations/formula-100 +1 -0
- data/tests_old/test_formula_with_multiple_operations/formula-100.inter +1 -0
- data/tests_old/test_formula_with_multiple_operations/formula-100.raw +1 -0
- data/tests_old/test_formula_with_multiple_operations/formula-100_inter +1 -0
- data/tests_old/test_formula_with_multiple_operations/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_multiple_references/formula-100 +1 -0
- data/tests_old/test_formula_with_multiple_references/formula-100.inter +1 -0
- data/tests_old/test_formula_with_multiple_references/formula-100.raw +1 -0
- data/tests_old/test_formula_with_multiple_references/formula-100_inter +1 -0
- data/tests_old/test_formula_with_multiple_references/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_multiple_return/formula-100 +1 -0
- data/tests_old/test_formula_with_multiple_return/formula-100.inter +1 -0
- data/tests_old/test_formula_with_multiple_return/formula-100.raw +1 -0
- data/tests_old/test_formula_with_multiple_return/formula-100_inter +1 -0
- data/tests_old/test_formula_with_multiple_return/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_multiple_return_when_stdDev_is_0/formula-100 +1 -0
- data/tests_old/test_formula_with_multiple_return_when_stdDev_is_0/formula-100.inter +1 -0
- data/tests_old/test_formula_with_multiple_return_when_stdDev_is_0/formula-100.raw +1 -0
- data/tests_old/test_formula_with_multiple_return_when_stdDev_is_0/formula-100_inter +1 -0
- data/tests_old/test_formula_with_multiple_return_when_stdDev_is_0/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100 +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100.inter +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100.raw +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100_inter +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_call/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100 +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100.inter +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100.raw +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100_inter +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_multiple_return_when_strike_is_0_and_opt_type_is_put/log +1 -0
- data/tests_old/test_formula_with_non_impacting_conditions/formula-100 +1 -0
- data/tests_old/test_formula_with_non_impacting_conditions/formula-100.inter +1 -0
- data/tests_old/test_formula_with_non_impacting_conditions/formula-100.raw +1 -0
- data/tests_old/test_formula_with_non_impacting_conditions/formula-100_inter +1 -0
- data/tests_old/test_formula_with_non_impacting_conditions/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_non_impacting_conditions/log +1 -0
- data/tests_old/test_formula_with_object_properties/formula-100 +1 -0
- data/tests_old/test_formula_with_object_properties/formula-100.inter +1 -0
- data/tests_old/test_formula_with_object_properties/formula-100.raw +1 -0
- data/tests_old/test_formula_with_object_properties/formula-100_inter +1 -0
- data/tests_old/test_formula_with_object_properties/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_paren/formula-100 +1 -0
- data/tests_old/test_formula_with_paren/formula-100.inter +1 -0
- data/tests_old/test_formula_with_paren/formula-100.raw +1 -0
- data/tests_old/test_formula_with_paren/formula-100_inter +1 -0
- data/tests_old/test_formula_with_paren/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_reference_in_ctor/formula-100 +1 -0
- data/tests_old/test_formula_with_reference_in_ctor/formula-100.inter +1 -0
- data/tests_old/test_formula_with_reference_in_ctor/formula-100.raw +1 -0
- data/tests_old/test_formula_with_reference_in_ctor/formula-100_inter +1 -0
- data/tests_old/test_formula_with_reference_in_ctor/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_reference_in_ctor_with_called_ctor/formula-100 +1 -0
- data/tests_old/test_formula_with_reference_in_ctor_with_called_ctor/formula-100.inter +1 -0
- data/tests_old/test_formula_with_reference_in_ctor_with_called_ctor/formula-100.raw +1 -0
- data/tests_old/test_formula_with_reference_in_ctor_with_called_ctor/formula-100_inter +1 -0
- data/tests_old/test_formula_with_reference_in_ctor_with_called_ctor/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_return_array_as_properties/formula-100 +1 -0
- data/tests_old/test_formula_with_return_array_as_properties/formula-100.inter +1 -0
- data/tests_old/test_formula_with_return_array_as_properties/formula-100.raw +1 -0
- data/tests_old/test_formula_with_return_array_as_properties/formula-100_inter +1 -0
- data/tests_old/test_formula_with_return_array_as_properties/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_return_string_as_properties/formula-100 +1 -0
- data/tests_old/test_formula_with_return_string_as_properties/formula-100.inter +1 -0
- data/tests_old/test_formula_with_return_string_as_properties/formula-100.raw +1 -0
- data/tests_old/test_formula_with_return_string_as_properties/formula-100_inter +1 -0
- data/tests_old/test_formula_with_return_string_as_properties/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_unbound_call_in_assign/formula-100 +1 -0
- data/tests_old/test_formula_with_unbound_call_in_assign/formula-100.inter +1 -0
- data/tests_old/test_formula_with_unbound_call_in_assign/formula-100.raw +1 -0
- data/tests_old/test_formula_with_unbound_call_in_assign/formula-100_inter +1 -0
- data/tests_old/test_formula_with_unbound_call_in_assign/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_unused_condition/formula-100 +1 -0
- data/tests_old/test_formula_with_unused_condition/formula-100.inter +1 -0
- data/tests_old/test_formula_with_unused_condition/formula-100.raw +1 -0
- data/tests_old/test_formula_with_unused_condition/formula-100_inter +1 -0
- data/tests_old/test_formula_with_unused_condition/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_unused_condition/log +1 -0
- data/tests_old/test_formula_with_while_to_for_loop/formula-100 +1 -0
- data/tests_old/test_formula_with_while_to_for_loop/formula-100.inter +1 -0
- data/tests_old/test_formula_with_while_to_for_loop/formula-100.raw +1 -0
- data/tests_old/test_formula_with_while_to_for_loop/formula-100_inter +1 -0
- data/tests_old/test_formula_with_while_to_for_loop/formula-100_pre.tex +1 -0
- data/tests_old/test_formula_with_while_to_for_loop/log +1 -0
- data/tests_old/test_formula_with_while_to_for_loop_with_break/formula-100 +1 -0
- data/tests_old/test_formula_with_while_to_for_loop_with_break/formula-100.inter +1 -0
- data/tests_old/test_formula_with_while_to_for_loop_with_break/formula-100.raw +1 -0
- data/tests_old/test_formula_with_while_to_for_loop_with_break/formula-100_inter +1 -0
- data/tests_old/test_formula_with_while_to_for_loop_with_break/formula-100_pre.tex +1 -0
- data/tests_old/test_simple_formula/formula-100 +1 -0
- data/tests_old/test_simple_formula/formula-100.inter +1 -0
- data/tests_old/test_simple_formula/formula-100.raw +1 -0
- data/tests_old/test_simple_formula/formula-100_inter +1 -0
- data/tests_old/test_simple_formula/formula-100_pre.tex +1 -0
- data/texput.log +21 -0
- metadata +757 -0
checksums.yaml
ADDED
@@ -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
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -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.
|
data/README.md
ADDED
@@ -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
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -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
|
data/bin/setup
ADDED
data/deepalgo_il.gemspec
ADDED
@@ -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
|