math_bracketed_inside_not_closed.pl 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. use vars qw(%result_texis %result_texts %result_trees %result_errors
  2. %result_indices %result_sectioning %result_nodes %result_menus
  3. %result_floats %result_converted %result_converted_errors
  4. %result_elements %result_directions_text);
  5. use utf8;
  6. $result_trees{'math_bracketed_inside_not_closed'} = {
  7. 'contents' => [
  8. {
  9. 'contents' => [
  10. {
  11. 'args' => [
  12. {
  13. 'contents' => [
  14. {
  15. 'contents' => [
  16. {
  17. 'parent' => {},
  18. 'text' => 'x^i'
  19. }
  20. ],
  21. 'line_nr' => {
  22. 'file_name' => '',
  23. 'line_nr' => 1,
  24. 'macro' => ''
  25. },
  26. 'parent' => {},
  27. 'type' => 'bracketed'
  28. },
  29. {
  30. 'parent' => {},
  31. 'text' => '\\over'
  32. },
  33. {
  34. 'contents' => [
  35. {
  36. 'parent' => {},
  37. 'text' => '\\tan'
  38. }
  39. ],
  40. 'line_nr' => {},
  41. 'parent' => {},
  42. 'type' => 'bracketed'
  43. }
  44. ],
  45. 'parent' => {},
  46. 'type' => 'brace_command_context'
  47. }
  48. ],
  49. 'cmdname' => 'math',
  50. 'contents' => [],
  51. 'line_nr' => {},
  52. 'parent' => {}
  53. }
  54. ],
  55. 'parent' => {},
  56. 'type' => 'paragraph'
  57. }
  58. ],
  59. 'type' => 'text_root'
  60. };
  61. $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0];
  62. $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0];
  63. $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0];
  64. $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'parent'} = $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2];
  65. $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'line_nr'} = $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'line_nr'};
  66. $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0];
  67. $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'} = $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0];
  68. $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'line_nr'} = $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'line_nr'};
  69. $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0];
  70. $result_trees{'math_bracketed_inside_not_closed'}{'contents'}[0]{'parent'} = $result_trees{'math_bracketed_inside_not_closed'};
  71. $result_texis{'math_bracketed_inside_not_closed'} = '@math{{x^i}\\over{\\tan}}';
  72. $result_texts{'math_bracketed_inside_not_closed'} = '{x^i}\\over{\\tan}';
  73. $result_errors{'math_bracketed_inside_not_closed'} = [
  74. {
  75. 'error_line' => ':1: @math missing closing brace
  76. ',
  77. 'file_name' => '',
  78. 'line_nr' => 1,
  79. 'macro' => '',
  80. 'text' => '@math missing closing brace',
  81. 'type' => 'error'
  82. }
  83. ];
  84. 1;