double_command.pl 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881
  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{'double_command'} = {
  7. 'contents' => [
  8. {
  9. 'cmdname' => 'deffn',
  10. 'contents' => [
  11. {
  12. 'args' => [
  13. {
  14. 'contents' => [
  15. {
  16. 'extra' => {
  17. 'command' => {}
  18. },
  19. 'parent' => {},
  20. 'text' => ' ',
  21. 'type' => 'empty_spaces_after_command'
  22. },
  23. {
  24. 'parent' => {},
  25. 'text' => 'func plot (a, b, c, ...) '
  26. },
  27. {
  28. 'args' => [
  29. {
  30. 'contents' => [
  31. {
  32. 'extra' => {
  33. 'command' => {}
  34. },
  35. 'parent' => {},
  36. 'text' => ' ',
  37. 'type' => 'empty_spaces_after_command'
  38. },
  39. {
  40. 'parent' => {},
  41. 'text' => 'func plot2 (a, b, c, ..., d)
  42. '
  43. }
  44. ],
  45. 'parent' => {},
  46. 'type' => 'misc_line_arg'
  47. }
  48. ],
  49. 'cmdname' => 'deffnx',
  50. 'extra' => {
  51. 'def_args' => [
  52. [
  53. 'category',
  54. {
  55. 'text' => 'func'
  56. }
  57. ],
  58. [
  59. 'spaces',
  60. {
  61. 'text' => ' ',
  62. 'type' => 'spaces'
  63. }
  64. ],
  65. [
  66. 'name',
  67. {
  68. 'text' => 'plot2'
  69. }
  70. ],
  71. [
  72. 'spaces',
  73. {
  74. 'text' => ' ',
  75. 'type' => 'spaces'
  76. }
  77. ],
  78. [
  79. 'delimiter',
  80. {
  81. 'text' => '(',
  82. 'type' => 'delimiter'
  83. }
  84. ],
  85. [
  86. 'arg',
  87. {
  88. 'text' => 'a'
  89. }
  90. ],
  91. [
  92. 'delimiter',
  93. {
  94. 'text' => ',',
  95. 'type' => 'delimiter'
  96. }
  97. ],
  98. [
  99. 'spaces',
  100. {
  101. 'text' => ' ',
  102. 'type' => 'spaces'
  103. }
  104. ],
  105. [
  106. 'arg',
  107. {
  108. 'text' => 'b'
  109. }
  110. ],
  111. [
  112. 'delimiter',
  113. {
  114. 'text' => ',',
  115. 'type' => 'delimiter'
  116. }
  117. ],
  118. [
  119. 'spaces',
  120. {
  121. 'text' => ' ',
  122. 'type' => 'spaces'
  123. }
  124. ],
  125. [
  126. 'arg',
  127. {
  128. 'text' => 'c'
  129. }
  130. ],
  131. [
  132. 'delimiter',
  133. {
  134. 'text' => ',',
  135. 'type' => 'delimiter'
  136. }
  137. ],
  138. [
  139. 'spaces',
  140. {
  141. 'text' => ' ',
  142. 'type' => 'spaces'
  143. }
  144. ],
  145. [
  146. 'arg',
  147. {
  148. 'text' => '...'
  149. }
  150. ],
  151. [
  152. 'delimiter',
  153. {
  154. 'text' => ',',
  155. 'type' => 'delimiter'
  156. }
  157. ],
  158. [
  159. 'spaces',
  160. {
  161. 'text' => ' ',
  162. 'type' => 'spaces'
  163. }
  164. ],
  165. [
  166. 'arg',
  167. {
  168. 'text' => 'd'
  169. }
  170. ],
  171. [
  172. 'delimiter',
  173. {
  174. 'text' => ')',
  175. 'type' => 'delimiter'
  176. }
  177. ]
  178. ],
  179. 'def_command' => 'deffn',
  180. 'def_parsed_hash' => {
  181. 'category' => {},
  182. 'name' => {}
  183. },
  184. 'index_entry' => {
  185. 'command' => {},
  186. 'content' => [
  187. {}
  188. ],
  189. 'content_normalized' => [
  190. {}
  191. ],
  192. 'in_code' => 1,
  193. 'index_at_command' => 'deffnx',
  194. 'index_name' => 'fn',
  195. 'index_type_command' => 'deffn',
  196. 'key' => 'plot2',
  197. 'number' => 1
  198. },
  199. 'invalid_nesting' => 1,
  200. 'not_after_command' => 1,
  201. 'original_def_cmdname' => 'deffnx',
  202. 'spaces_after_command' => {}
  203. },
  204. 'line_nr' => {
  205. 'file_name' => '',
  206. 'line_nr' => 1,
  207. 'macro' => ''
  208. },
  209. 'parent' => {},
  210. 'type' => 'def_line'
  211. }
  212. ],
  213. 'parent' => {},
  214. 'type' => 'block_line_arg'
  215. }
  216. ],
  217. 'extra' => {
  218. 'def_args' => [
  219. [
  220. 'category',
  221. {
  222. 'text' => 'func'
  223. }
  224. ],
  225. [
  226. 'spaces',
  227. {
  228. 'text' => ' ',
  229. 'type' => 'spaces'
  230. }
  231. ],
  232. [
  233. 'name',
  234. {
  235. 'text' => 'plot'
  236. }
  237. ],
  238. [
  239. 'spaces',
  240. {
  241. 'text' => ' ',
  242. 'type' => 'spaces'
  243. }
  244. ],
  245. [
  246. 'delimiter',
  247. {
  248. 'text' => '(',
  249. 'type' => 'delimiter'
  250. }
  251. ],
  252. [
  253. 'arg',
  254. {
  255. 'text' => 'a'
  256. }
  257. ],
  258. [
  259. 'delimiter',
  260. {
  261. 'text' => ',',
  262. 'type' => 'delimiter'
  263. }
  264. ],
  265. [
  266. 'spaces',
  267. {
  268. 'text' => ' ',
  269. 'type' => 'spaces'
  270. }
  271. ],
  272. [
  273. 'arg',
  274. {
  275. 'text' => 'b'
  276. }
  277. ],
  278. [
  279. 'delimiter',
  280. {
  281. 'text' => ',',
  282. 'type' => 'delimiter'
  283. }
  284. ],
  285. [
  286. 'spaces',
  287. {
  288. 'text' => ' ',
  289. 'type' => 'spaces'
  290. }
  291. ],
  292. [
  293. 'arg',
  294. {
  295. 'text' => 'c'
  296. }
  297. ],
  298. [
  299. 'delimiter',
  300. {
  301. 'text' => ',',
  302. 'type' => 'delimiter'
  303. }
  304. ],
  305. [
  306. 'spaces',
  307. {
  308. 'text' => ' ',
  309. 'type' => 'spaces'
  310. }
  311. ],
  312. [
  313. 'arg',
  314. {
  315. 'text' => '...'
  316. }
  317. ],
  318. [
  319. 'delimiter',
  320. {
  321. 'text' => ')',
  322. 'type' => 'delimiter'
  323. }
  324. ],
  325. [
  326. 'spaces',
  327. {
  328. 'text' => ' ',
  329. 'type' => 'spaces'
  330. }
  331. ],
  332. [
  333. 'arg',
  334. {}
  335. ]
  336. ],
  337. 'def_command' => 'deffn',
  338. 'def_parsed_hash' => {
  339. 'category' => {},
  340. 'name' => {}
  341. },
  342. 'index_entry' => {
  343. 'command' => {},
  344. 'content' => [
  345. {}
  346. ],
  347. 'content_normalized' => [
  348. {}
  349. ],
  350. 'in_code' => 1,
  351. 'index_at_command' => 'deffn',
  352. 'index_name' => 'fn',
  353. 'index_type_command' => 'deffn',
  354. 'key' => 'plot',
  355. 'number' => 2
  356. },
  357. 'original_def_cmdname' => 'deffn'
  358. },
  359. 'line_nr' => {},
  360. 'parent' => {},
  361. 'type' => 'def_line'
  362. },
  363. {
  364. 'contents' => [
  365. {
  366. 'contents' => [
  367. {
  368. 'parent' => {},
  369. 'text' => 'aaa
  370. '
  371. }
  372. ],
  373. 'parent' => {},
  374. 'type' => 'paragraph'
  375. }
  376. ],
  377. 'parent' => {},
  378. 'type' => 'def_item'
  379. },
  380. {
  381. 'args' => [
  382. {
  383. 'contents' => [
  384. {
  385. 'extra' => {
  386. 'command' => {}
  387. },
  388. 'parent' => {},
  389. 'text' => ' ',
  390. 'type' => 'empty_spaces_after_command'
  391. },
  392. {
  393. 'parent' => {},
  394. 'text' => 'deffn'
  395. },
  396. {
  397. 'parent' => {},
  398. 'text' => '
  399. ',
  400. 'type' => 'spaces_at_end'
  401. }
  402. ],
  403. 'parent' => {},
  404. 'type' => 'misc_line_arg'
  405. }
  406. ],
  407. 'cmdname' => 'end',
  408. 'extra' => {
  409. 'command' => {},
  410. 'command_argument' => 'deffn',
  411. 'spaces_after_command' => {},
  412. 'text_arg' => 'deffn'
  413. },
  414. 'line_nr' => {
  415. 'file_name' => '',
  416. 'line_nr' => 3,
  417. 'macro' => ''
  418. },
  419. 'parent' => {}
  420. }
  421. ],
  422. 'extra' => {
  423. 'end_command' => {},
  424. 'spaces_after_command' => {}
  425. },
  426. 'line_nr' => {},
  427. 'parent' => {}
  428. },
  429. {
  430. 'parent' => {},
  431. 'text' => '
  432. ',
  433. 'type' => 'empty_line'
  434. },
  435. {
  436. 'cmdname' => 'deffn',
  437. 'contents' => [
  438. {
  439. 'args' => [
  440. {
  441. 'contents' => [
  442. {
  443. 'extra' => {
  444. 'command' => {}
  445. },
  446. 'parent' => {},
  447. 'text' => ' ',
  448. 'type' => 'empty_spaces_after_command'
  449. },
  450. {
  451. 'parent' => {},
  452. 'text' => 'func aaaa args '
  453. },
  454. {
  455. 'cmdname' => 'defvr',
  456. 'contents' => [
  457. {
  458. 'args' => [
  459. {
  460. 'contents' => [
  461. {
  462. 'extra' => {
  463. 'command' => {}
  464. },
  465. 'parent' => {},
  466. 'text' => ' ',
  467. 'type' => 'empty_spaces_after_command'
  468. },
  469. {
  470. 'parent' => {},
  471. 'text' => 'c--ategory d--efvr_name
  472. '
  473. }
  474. ],
  475. 'parent' => {},
  476. 'type' => 'block_line_arg'
  477. }
  478. ],
  479. 'extra' => {
  480. 'def_args' => [
  481. [
  482. 'category',
  483. {
  484. 'text' => 'c--ategory'
  485. }
  486. ],
  487. [
  488. 'spaces',
  489. {
  490. 'text' => ' ',
  491. 'type' => 'spaces'
  492. }
  493. ],
  494. [
  495. 'name',
  496. {
  497. 'text' => 'd--efvr_name'
  498. }
  499. ]
  500. ],
  501. 'def_command' => 'defvr',
  502. 'def_parsed_hash' => {
  503. 'category' => {},
  504. 'name' => {}
  505. },
  506. 'index_entry' => {
  507. 'command' => {},
  508. 'content' => [
  509. {}
  510. ],
  511. 'content_normalized' => [
  512. {}
  513. ],
  514. 'in_code' => 1,
  515. 'index_at_command' => 'defvr',
  516. 'index_name' => 'vr',
  517. 'index_type_command' => 'defvr',
  518. 'key' => 'd--efvr_name',
  519. 'number' => 1
  520. },
  521. 'original_def_cmdname' => 'defvr'
  522. },
  523. 'line_nr' => {
  524. 'file_name' => '',
  525. 'line_nr' => 5,
  526. 'macro' => ''
  527. },
  528. 'parent' => {},
  529. 'type' => 'def_line'
  530. }
  531. ],
  532. 'extra' => {
  533. 'invalid_nesting' => 1,
  534. 'spaces_after_command' => {}
  535. },
  536. 'line_nr' => {},
  537. 'parent' => {}
  538. }
  539. ],
  540. 'parent' => {},
  541. 'type' => 'block_line_arg'
  542. }
  543. ],
  544. 'extra' => {
  545. 'def_args' => [
  546. [
  547. 'category',
  548. {
  549. 'text' => 'func'
  550. }
  551. ],
  552. [
  553. 'spaces',
  554. {
  555. 'text' => ' ',
  556. 'type' => 'spaces'
  557. }
  558. ],
  559. [
  560. 'name',
  561. {
  562. 'text' => 'aaaa'
  563. }
  564. ],
  565. [
  566. 'spaces',
  567. {
  568. 'text' => ' ',
  569. 'type' => 'spaces'
  570. }
  571. ],
  572. [
  573. 'arg',
  574. {
  575. 'text' => 'args'
  576. }
  577. ],
  578. [
  579. 'spaces',
  580. {
  581. 'text' => ' ',
  582. 'type' => 'spaces'
  583. }
  584. ],
  585. [
  586. 'arg',
  587. {}
  588. ]
  589. ],
  590. 'def_command' => 'deffn',
  591. 'def_parsed_hash' => {
  592. 'category' => {},
  593. 'name' => {}
  594. },
  595. 'index_entry' => {
  596. 'command' => {},
  597. 'content' => [
  598. {}
  599. ],
  600. 'content_normalized' => [
  601. {}
  602. ],
  603. 'in_code' => 1,
  604. 'index_at_command' => 'deffn',
  605. 'index_name' => 'fn',
  606. 'index_type_command' => 'deffn',
  607. 'key' => 'aaaa',
  608. 'number' => 3
  609. },
  610. 'original_def_cmdname' => 'deffn'
  611. },
  612. 'line_nr' => {},
  613. 'parent' => {},
  614. 'type' => 'def_line'
  615. },
  616. {
  617. 'contents' => [
  618. {
  619. 'contents' => [
  620. {
  621. 'parent' => {},
  622. 'text' => 'bbb
  623. '
  624. }
  625. ],
  626. 'parent' => {},
  627. 'type' => 'paragraph'
  628. }
  629. ],
  630. 'parent' => {},
  631. 'type' => 'def_item'
  632. },
  633. {
  634. 'args' => [
  635. {
  636. 'contents' => [
  637. {
  638. 'extra' => {
  639. 'command' => {}
  640. },
  641. 'parent' => {},
  642. 'text' => ' ',
  643. 'type' => 'empty_spaces_after_command'
  644. },
  645. {
  646. 'parent' => {},
  647. 'text' => 'deffn'
  648. },
  649. {
  650. 'parent' => {},
  651. 'text' => '
  652. ',
  653. 'type' => 'spaces_at_end'
  654. }
  655. ],
  656. 'parent' => {},
  657. 'type' => 'misc_line_arg'
  658. }
  659. ],
  660. 'cmdname' => 'end',
  661. 'extra' => {
  662. 'command' => {},
  663. 'command_argument' => 'deffn',
  664. 'spaces_after_command' => {},
  665. 'text_arg' => 'deffn'
  666. },
  667. 'line_nr' => {
  668. 'file_name' => '',
  669. 'line_nr' => 7,
  670. 'macro' => ''
  671. },
  672. 'parent' => {}
  673. }
  674. ],
  675. 'extra' => {
  676. 'end_command' => {},
  677. 'spaces_after_command' => {}
  678. },
  679. 'line_nr' => {},
  680. 'parent' => {}
  681. }
  682. ],
  683. 'type' => 'text_root'
  684. };
  685. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'double_command'}{'contents'}[0];
  686. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0];
  687. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0];
  688. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2];
  689. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'args'}[0];
  690. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'args'}[0];
  691. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'args'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2];
  692. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'def_parsed_hash'}{'category'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'def_args'}[0][1];
  693. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'def_parsed_hash'}{'name'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'def_args'}[2][1];
  694. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'command'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2];
  695. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'content'}[0] = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'def_args'}[2][1];
  696. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'content_normalized'}[0] = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'def_args'}[2][1];
  697. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'spaces_after_command'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0];
  698. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0];
  699. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0];
  700. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'extra'}{'def_args'}[17][1] = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2];
  701. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'category'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'extra'}{'def_args'}[0][1];
  702. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'name'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'extra'}{'def_args'}[2][1];
  703. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'command'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0];
  704. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content'}[0] = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'extra'}{'def_args'}[2][1];
  705. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}[0] = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'extra'}{'def_args'}[2][1];
  706. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'line_nr'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'line_nr'};
  707. $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[0];
  708. $result_trees{'double_command'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[1]{'contents'}[0];
  709. $result_trees{'double_command'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[1];
  710. $result_trees{'double_command'}{'contents'}[0]{'contents'}[1]{'parent'} = $result_trees{'double_command'}{'contents'}[0];
  711. $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[2];
  712. $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'args'}[0];
  713. $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'args'}[0];
  714. $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'args'}[0];
  715. $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[2];
  716. $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'extra'}{'command'} = $result_trees{'double_command'}{'contents'}[0];
  717. $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'extra'}{'spaces_after_command'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0];
  718. $result_trees{'double_command'}{'contents'}[0]{'contents'}[2]{'parent'} = $result_trees{'double_command'}{'contents'}[0];
  719. $result_trees{'double_command'}{'contents'}[0]{'extra'}{'end_command'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[2];
  720. $result_trees{'double_command'}{'contents'}[0]{'extra'}{'spaces_after_command'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0];
  721. $result_trees{'double_command'}{'contents'}[0]{'line_nr'} = $result_trees{'double_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'line_nr'};
  722. $result_trees{'double_command'}{'contents'}[0]{'parent'} = $result_trees{'double_command'};
  723. $result_trees{'double_command'}{'contents'}[1]{'parent'} = $result_trees{'double_command'};
  724. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'double_command'}{'contents'}[2];
  725. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0];
  726. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0];
  727. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2];
  728. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'args'}[0];
  729. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'args'}[0];
  730. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'args'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0];
  731. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'category'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'def_args'}[0][1];
  732. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'name'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'def_args'}[2][1];
  733. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'index_entry'}{'command'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0];
  734. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'index_entry'}{'content'}[0] = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'def_args'}[2][1];
  735. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}[0] = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'def_args'}[2][1];
  736. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2];
  737. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'extra'}{'spaces_after_command'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[0];
  738. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'line_nr'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'line_nr'};
  739. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0];
  740. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0];
  741. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'extra'}{'def_args'}[6][1] = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2];
  742. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'category'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'extra'}{'def_args'}[0][1];
  743. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'extra'}{'def_parsed_hash'}{'name'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'extra'}{'def_args'}[2][1];
  744. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'extra'}{'index_entry'}{'command'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0];
  745. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'extra'}{'index_entry'}{'content'}[0] = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'extra'}{'def_args'}[2][1];
  746. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}[0] = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'extra'}{'def_args'}[2][1];
  747. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'line_nr'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'line_nr'};
  748. $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[2];
  749. $result_trees{'double_command'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[1]{'contents'}[0];
  750. $result_trees{'double_command'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[1];
  751. $result_trees{'double_command'}{'contents'}[2]{'contents'}[1]{'parent'} = $result_trees{'double_command'}{'contents'}[2];
  752. $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[2];
  753. $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'args'}[0];
  754. $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'args'}[0];
  755. $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'args'}[0];
  756. $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'parent'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[2];
  757. $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'extra'}{'command'} = $result_trees{'double_command'}{'contents'}[2];
  758. $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'extra'}{'spaces_after_command'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[0];
  759. $result_trees{'double_command'}{'contents'}[2]{'contents'}[2]{'parent'} = $result_trees{'double_command'}{'contents'}[2];
  760. $result_trees{'double_command'}{'contents'}[2]{'extra'}{'end_command'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[2];
  761. $result_trees{'double_command'}{'contents'}[2]{'extra'}{'spaces_after_command'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[0];
  762. $result_trees{'double_command'}{'contents'}[2]{'line_nr'} = $result_trees{'double_command'}{'contents'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'contents'}[0]{'line_nr'};
  763. $result_trees{'double_command'}{'contents'}[2]{'parent'} = $result_trees{'double_command'};
  764. $result_texis{'double_command'} = '@deffn func plot (a, b, c, ...) @deffnx func plot2 (a, b, c, ..., d)
  765. aaa
  766. @end deffn
  767. @deffn func aaaa args @defvr c--ategory d--efvr_name
  768. bbb
  769. @end deffn
  770. ';
  771. $result_texts{'double_command'} = 'func: plot (a, b, c, ...) func: plot2 (a, b, c, ..., d)
  772. aaa
  773. func: aaaa args c--ategory: d--efvr_name
  774. bbb
  775. ';
  776. $result_errors{'double_command'} = [
  777. {
  778. 'error_line' => ':1: warning: @deffnx should only appear at the beginning of a line
  779. ',
  780. 'file_name' => '',
  781. 'line_nr' => 1,
  782. 'macro' => '',
  783. 'text' => '@deffnx should only appear at the beginning of a line',
  784. 'type' => 'warning'
  785. },
  786. {
  787. 'error_line' => ':1: must be after `@deffn\' to use `@deffnx\'
  788. ',
  789. 'file_name' => '',
  790. 'line_nr' => 1,
  791. 'macro' => '',
  792. 'text' => 'must be after `@deffn\' to use `@deffnx\'',
  793. 'type' => 'error'
  794. },
  795. {
  796. 'error_line' => ':1: warning: @deffnx should not appear in @deffn
  797. ',
  798. 'file_name' => '',
  799. 'line_nr' => 1,
  800. 'macro' => '',
  801. 'text' => '@deffnx should not appear in @deffn',
  802. 'type' => 'warning'
  803. },
  804. {
  805. 'error_line' => ':1: warning: entry for index `fn\' outside of any node
  806. ',
  807. 'file_name' => '',
  808. 'line_nr' => 1,
  809. 'macro' => '',
  810. 'text' => 'entry for index `fn\' outside of any node',
  811. 'type' => 'warning'
  812. },
  813. {
  814. 'error_line' => ':1: warning: entry for index `fn\' outside of any node
  815. ',
  816. 'file_name' => '',
  817. 'line_nr' => 1,
  818. 'macro' => '',
  819. 'text' => 'entry for index `fn\' outside of any node',
  820. 'type' => 'warning'
  821. },
  822. {
  823. 'error_line' => ':5: warning: @defvr should only appear at the beginning of a line
  824. ',
  825. 'file_name' => '',
  826. 'line_nr' => 5,
  827. 'macro' => '',
  828. 'text' => '@defvr should only appear at the beginning of a line',
  829. 'type' => 'warning'
  830. },
  831. {
  832. 'error_line' => ':5: warning: @defvr should not appear in @deffn
  833. ',
  834. 'file_name' => '',
  835. 'line_nr' => 5,
  836. 'macro' => '',
  837. 'text' => '@defvr should not appear in @deffn',
  838. 'type' => 'warning'
  839. },
  840. {
  841. 'error_line' => ':5: warning: entry for index `vr\' outside of any node
  842. ',
  843. 'file_name' => '',
  844. 'line_nr' => 5,
  845. 'macro' => '',
  846. 'text' => 'entry for index `vr\' outside of any node',
  847. 'type' => 'warning'
  848. },
  849. {
  850. 'error_line' => ':5: no matching `@end defvr\'
  851. ',
  852. 'file_name' => '',
  853. 'line_nr' => 5,
  854. 'macro' => '',
  855. 'text' => 'no matching `@end defvr\'',
  856. 'type' => 'error'
  857. },
  858. {
  859. 'error_line' => ':5: warning: entry for index `fn\' outside of any node
  860. ',
  861. 'file_name' => '',
  862. 'line_nr' => 5,
  863. 'macro' => '',
  864. 'text' => 'entry for index `fn\' outside of any node',
  865. 'type' => 'warning'
  866. }
  867. ];
  868. 1;