-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmini_leo_ref.leo
5177 lines (5027 loc) · 171 KB
/
mini_leo_ref.leo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Leo: http://leoeditor.com/leo_toc.html -->
<leo_file xmlns:leo="http://leoeditor.com/namespaces/leo-python-editor/1.1" >
<leo_header file_format="2"/>
<globals/>
<preferences/>
<find_panel_settings/>
<vnodes>
<v t="vitalije.20180822151714.2"><vh>Start</vh>
<v t="vitalije.20180822200821.1"><vh>to clean</vh></v>
<v t="vitalije.20180822175121.1"><vh>@edit mkdocs.yml</vh></v>
<v t="vitalije.20180822175420.1"><vh>@edit .gitignore</vh></v>
<v t="vitalije.20180822184227.1"><vh>@edit .travis.yml</vh></v>
<v t="vitalije.20180822184624.1"><vh>@edit MANIFEST.in</vh></v>
<v t="vitalije.20180823001012.1"><vh>@clean rust-installer.sh</vh></v>
<v t="vitalije.20180823103429.1"><vh>@edit setup.cfg</vh></v>
<v t="vitalije.20180823104438.1"><vh>@edit SConstruct</vh></v>
<v t="vitalije.20180823104449.1"><vh>@edit pyproject.toml</vh></v>
<v t="vitalije.20180823132035.1"><vh>@edit requirements_dev.txt</vh></v>
<v t="vitalije.20180822185454.1"><vh>@auto tox.ini</vh></v>
<v t="vitalije.20180822173307.1"><vh>@settings</vh>
<v t="vitalije.20191229164032.1"><vh>@data extract-patterns</vh></v>
<v t="vitalije.20180822171822.1"><vh>@button n-save @key=Ctrl-s</vh>
<v t="vitalije.20180822171822.2"><vh>hl</vh></v>
<v t="vitalije.20180822171822.3"><vh>mdlines</vh></v>
<v t="vitalije.20180822171822.4"><vh>getf</vh></v>
<v t="vitalije.20180822171822.5"><vh>putf</vh></v>
<v t="vitalije.20180822171822.6"><vh>obradi</vh></v>
</v>
</v>
</v>
<v t="vitalije.20180822200124.1"><vh>@clean mini_leo/__init__.py</vh></v>
<v t="vitalije.20180822200508.1"><vh>@clean mini_leo/cli.py</vh>
<v t="vitalije.20180822200550.2"><vh>main (cli.py)</vh></v>
</v>
<v t="vitalije.20180822200526.1"><vh>@clean mini_leo/mini_leo.py</vh></v>
<v t="vitalije.20190622133345.1"><vh>@clean tests/test_mini_leo.py</vh></v>
<v t="vitalije.20180822183813.1"><vh>@clean setup.py</vh>
<v t="vitalije.20191230142308.1"><vh>build_native</vh></v>
</v>
<v t="vitalije.20191231151920.1"><vh>@clean build_wheel.py</vh>
<v t="vitalije.20191231152226.1"><vh>cargo_build</vh></v>
<v t="vitalije.20191231152252.1"><vh>METADATA</vh></v>
<v t="vitalije.20191231152300.1"><vh>WHEEL</vh></v>
<v t="vitalije.20191231153206.1"><vh>getversion</vh></v>
<v t="vitalije.20191231155959.1"><vh>make_wheel</vh></v>
<v t="vitalije.20191231160001.1"><vh>makelinux_wheel</vh></v>
<v t="vitalije.20191231160004.1"><vh>makewin_wheel</vh></v>
<v t="vitalije.20191231160008.1"><vh>makeany_wheel</vh></v>
</v>
<v t="vitalije.20191231162159.1"><vh>@clean appveyor.yml</vh></v>
<v t="vitalije.20180822204714.1"><vh>RUST</vh>
<v t="vitalije.20190625073241.1"><vh>parsing leo xml</vh></v>
<v t="vitalije.20190702085616.1"><vh>rust attick</vh>
<v t="vitalije.20190701152643.1"><vh>main2</vh></v>
<v t="vitalije.20190626141101.1"><vh>ldf_header</vh></v>
</v>
<v t="vitalije.20180822204724.1"><vh>@clean src/lib.rs</vh>
<v t="vitalije.20191215163859.1"><vh>Tree, TreeIterator</vh></v>
<v t="vitalije.20191215164034.1"><vh>TREES</vh></v>
<v t="vitalije.20191215164048.1"><vh>module</vh>
<v t="vitalije.20191216171715.1"><vh>at_files</vh></v>
<v t="vitalije.20200324100844.1"><vh>auto_files</vh></v>
<v t="vitalije.20210715090741.1"><vh>check_tree</vh></v>
<v t="vitalije.20200325084556.1"><vh>children</vh></v>
<v t="vitalije.20200324100917.1"><vh>clean_files</vh></v>
<v t="vitalije.20210718122914.1"><vh>collapse_node</vh></v>
<v t="vitalije.20210714205839.1"><vh>debug_str</vh></v>
<v t="vitalije.20210721193924.1"><vh>debug_str2</vh></v>
<v t="vitalije.20191215194010.1"><vh>drop_tree</vh></v>
<v t="vitalije.20200324100938.1"><vh>edit_files</vh></v>
<v t="vitalije.20210718121623.1"><vh>expand_node</vh></v>
<v t="vitalije.20200324130742.1"><vh>extract_subtree</vh></v>
<v t="vitalije.20210714190540.1"><vh>gnx_index</vh></v>
<v t="vitalije.20191215164117.1"><vh>iternodes</vh></v>
<v t="vitalije.20191229172150.1"><vh>load_leo</vh></v>
<v t="vitalije.20210716090049.1"><vh>moving nodes</vh>
<v t="vitalije.20210716090113.1"><vh>pymove_node_right</vh></v>
<v t="vitalije.20210716122155.1"><vh>pymove_node_left</vh></v>
<v t="vitalije.20210716125311.1"><vh>pymove_node_up</vh></v>
<v t="vitalije.20210716171752.1"><vh>pymove_node_down</vh></v>
</v>
<v t="vitalije.20191215164111.1"><vh>node_at</vh></v>
<v t="vitalije.20191215182759.1"><vh>outline_from_file</vh></v>
<v t="vitalije.20191215183719.1"><vh>outline_from_leo</vh></v>
<v t="vitalije.20191215183645.1"><vh>outline_from_leo_file</vh></v>
<v t="vitalije.20191215164104.1"><vh>outline_from_str</vh></v>
<v t="vitalije.20210715081914.1"><vh>outline_from_zipped_leo</vh></v>
<v t="vitalije.20210721174513.1"><vh>p_index</vh></v>
<v t="vitalije.20200325085157.1"><vh>parent_index</vh></v>
<v t="vitalije.20200325085029.1"><vh>parents_indexes</vh></v>
<v t="vitalije.20200324094558.1"><vh>pyatclean_to_str</vh></v>
<v t="vitalije.20210715154702.1"><vh>pybreak_link</vh></v>
<v t="vitalije.20210722101220.1"><vh>pyclone_node</vh></v>
<v t="vitalije.20210715105215.1"><vh>pycreate_link</vh></v>
<v t="vitalije.20210722101821.1"><vh>pydelete_node</vh></v>
<v t="vitalije.20210721175419.1"><vh>pyinsert_new_node</vh></v>
<v t="vitalije.20210715145536.1"><vh>pyredo</vh></v>
<v t="vitalije.20210715141414.1"><vh>pyundo</vh></v>
<v t="vitalije.20200324130524.1"><vh>pyupdate_atclean</vh></v>
<v t="vitalije.20200325090819.1"><vh>subtree_size</vh></v>
<v t="vitalije.20191217044239.1"><vh>tree_len</vh></v>
<v t="vitalije.20210714194823.1"><vh>update_node</vh></v>
<v t="vitalije.20210720114427.1"><vh>valid_operations</vh></v>
<v t="vitalije.20210721173540.1"><vh>visible_nodes</vh></v>
<v t="vitalije.20210719173534.1"><vh>visible_positions</vh></v>
</v>
</v>
<v t="vitalije.20190702073134.1"><vh>@clean src/model.rs</vh>
<v t="vitalije.20190625101129.1"><vh>LevGnx</vh>
<v t="vitalije.20190702093107.1"><vh>LevGnx implementation</vh></v>
<v t="vitalije.20210714203347.1"><vh>test LevGnx</vh></v>
</v>
<v t="vitalije.20190625110116.1"><vh>Outline</vh>
<v t="vitalije.20190702093035.1"><vh>Outline implementation</vh>
<v t="vitalije.20190625121544.1"><vh>add_node</vh></v>
<v t="vitalije.20190625145812.1"><vh>child_index</vh></v>
<v t="vitalije.20200325083733.1"><vh>children</vh></v>
<v t="vitalije.20190625121531.1"><vh>find</vh></v>
<v t="vitalije.20190625121525.1"><vh>has</vh></v>
<v t="vitalije.20210721174306.1"><vh>label_index</vh></v>
<v t="vitalije.20190625122338.1"><vh>parent_index</vh></v>
<v t="vitalije.20200325082013.1"><vh>parent_indexes</vh></v>
<v t="vitalije.20190625121537.1"><vh>subtree</vh></v>
<v t="vitalije.20190625145720.1"><vh>subtree_size</vh></v>
<v t="vitalije.20210719172903.1"><vh>visible_indices</vh></v>
</v>
</v>
<v t="vitalije.20190702100427.1"><vh>gnx_index</vh></v>
<v t="vitalije.20190625161035.1"><vh>VData</vh></v>
<v t="vitalije.20200323075415.1"><vh>find_any_file_nodes</vh>
<v t="vitalije.20191216165649.1"><vh>adjust for @path</vh></v>
</v>
<v t="vitalije.20191216165607.1"><vh>find_derived_files</vh></v>
<v t="vitalije.20200323075434.1"><vh>find_clean_files</vh></v>
<v t="vitalije.20200323075457.1"><vh>find_auto_files</vh></v>
<v t="vitalije.20200323075523.1"><vh>find_edit_files</vh></v>
<v t="vitalije.20191229164057.1"><vh>combine_trees</vh></v>
<v t="vitalije.20210713141646.1"><vh>dump_outline</vh></v>
<v t="vitalije.20200323085033.1"><vh>extract_subtree</vh></v>
<v t="vitalije.20200323114517.1"><vh>TreeIterator</vh>
<v t="vitalije.20200323141459.1"><vh>Tree</vh></v>
<v t="vitalije.20200323141509.1"><vh>Tree impl</vh>
<v t="vitalije.20200323141527.1"><vh>new</vh></v>
<v t="vitalije.20200323141530.1"><vh>roots</vh></v>
<v t="vitalije.20200323141537.1"><vh>skip</vh></v>
<v t="vitalije.20200323141541.1"><vh>skip_sections</vh></v>
<v t="vitalije.20200323141554.1"><vh>find_section</vh></v>
<v t="vitalije.20200323141544.1"><vh>others</vh></v>
</v>
</v>
<v t="vitalije.20210716071616.1"><vh>geting info</vh>
<v t="vitalije.20210719210802.1"><vh>valid_operations</vh>
<v t="vitalije.20210722114710.1"><vh>check expand</vh></v>
<v t="vitalije.20210722113218.1"><vh>check delete node</vh></v>
<v t="vitalije.20210719211246.1"><vh>check move left valid</vh></v>
<v t="vitalije.20210720115025.1"><vh>check move right valid</vh></v>
<v t="vitalije.20210720120256.1"><vh>check move up valid</vh></v>
<v t="vitalije.20210720124335.1"><vh>check move down valid</vh></v>
</v>
<v t="vitalije.20210715083652.1"><vh>all_parents</vh></v>
<v t="vitalije.20210715085917.1"><vh>clonned_nodes</vh></v>
</v>
<v t="vitalije.20210716071553.1"><vh>checks</vh>
<v t="vitalije.20210715124740.1"><vh>check_labels</vh></v>
<v t="vitalije.20210715085928.1"><vh>check_levels</vh></v>
<v t="vitalije.20210715124725.1"><vh>check_clones</vh></v>
</v>
<v t="vitalije.20210716071650.1"><vh>outline operations</vh>
<v t="vitalije.20210716071701.1"><vh>basic</vh>
<v t="vitalije.20210715101954.1"><vh>create_link</vh></v>
<v t="vitalije.20210715153300.1"><vh>break_link</vh></v>
</v>
<v t="vitalije.20210722095213.1"><vh>clone_node</vh></v>
<v t="vitalije.20210722101002.1"><vh>delete_node</vh></v>
<v t="vitalije.20210716071711.1"><vh>move_node_right</vh>
<v t="vitalije.20210716120732.1"><vh><<move right optimize>></vh></v>
</v>
<v t="vitalije.20210716121409.1"><vh>move_node_left</vh>
<v t="vitalije.20210719170944.1"><vh><<move left case 1>></vh></v>
<v t="vitalije.20210719171056.1"><vh><<move left case 2>></vh></v>
<v t="vitalije.20210719171147.1"><vh><<move left case 3>></vh></v>
<v t="vitalije.20210719171154.1"><vh><<move left case 4>></vh></v>
</v>
<v t="vitalije.20210716125410.1"><vh>move_node_up</vh>
<v t="vitalije.20210719143857.1"><vh><<move up case 1>></vh></v>
<v t="vitalije.20210719144020.1"><vh><<move up case 2>></vh></v>
<v t="vitalije.20210719144033.1"><vh><<move up case 3>></vh></v>
<v t="vitalije.20210716202521.1"><vh>visible_parent</vh></v>
<v t="vitalije.20210716202526.1"><vh>is_visible</vh></v>
<v t="vitalije.20210716204038.1"><vh>move_node_up_3</vh></v>
</v>
<v t="vitalije.20210716171712.1"><vh>move_node_down</vh>
<v t="vitalije.20210718201053.1"><vh><<move down case 1>></vh></v>
<v t="vitalije.20210718201112.1"><vh><<move donw case 2>></vh></v>
<v t="vitalije.20210718201129.1"><vh><<move_down case 3>></vh></v>
</v>
</v>
<v t="vitalije.20210721214100.1"><vh>inserting/updating nodes</vh>
<v t="vitalije.20210721212805.1"><vh>insert_new_node</vh></v>
<v t="vitalije.20210721213656.1"><vh>redo_insert_new_node</vh></v>
<v t="vitalije.20210721213901.1"><vh>undo_update_node</vh></v>
<v t="vitalije.20210721213805.1"><vh>redo_update_node</vh></v>
</v>
<v t="vitalije.20210716071524.1"><vh>inserting parts</vh>
<v t="vitalije.20210715123908.1"><vh>encode_insert_parts</vh></v>
<v t="vitalije.20210715140101.1"><vh>undo_insert_parts</vh></v>
<v t="vitalije.20210715145719.1"><vh>redo_insert_parts</vh></v>
</v>
<v t="vitalije.20210716071457.1"><vh>deleting blocks</vh>
<v t="vitalije.20210715155238.1"><vh>encode_delete_blocks</vh></v>
<v t="vitalije.20210715155611.1"><vh>undo_delete_blocks</vh></v>
<v t="vitalije.20210715155637.1"><vh>redo_delete_blocks</vh></v>
</v>
<v t="vitalije.20210716115224.1"><vh>shifting blocks</vh>
<v t="vitalije.20210716112543.1"><vh>shift_blocks</vh></v>
<v t="vitalije.20210716114748.1"><vh>encode_shift_blocks</vh></v>
<v t="vitalije.20210716120605.1"><vh>decode_shift_blocks</vh></v>
<v t="vitalije.20210716115256.1"><vh>undo_shift_blocks</vh></v>
<v t="vitalije.20210716115333.1"><vh>redo_shift_blocks</vh></v>
</v>
<v t="vitalije.20210716205921.1"><vh>setting nodes</vh>
<v t="vitalije.20210716210738.1"><vh>encode_set_nodes</vh></v>
<v t="vitalije.20210716210930.1"><vh>set_nodes</vh></v>
<v t="vitalije.20210716210937.1"><vh>undo_set_nodes</vh></v>
<v t="vitalije.20210716211545.1"><vh>redo_set_nodes</vh></v>
</v>
</v>
<v t="vitalije.20190702073410.1"><vh>@clean src/utils.rs</vh>
<v t="vitalije.20190625101104.1"><vh>b64 ints</vh>
<v t="vitalije.20190625102142.1"><vh>constants ...</vh></v>
</v>
<v t="vitalije.20190626141051.1"><vh>rpartition</vh></v>
<v t="vitalije.20200323152529.1"><vh>extract_section_ref</vh></v>
<v t="vitalije.20200323154503.1"><vh>is_directive</vh></v>
<v t="vitalije.20200324091357.1"><vh>is_special</vh></v>
<v t="vitalije.20200324091401.1"><vh>others_index</vh></v>
<v t="vitalije.20200324092152.1"><vh>has_others</vh></v>
<v t="vitalije.20210714133115.1"><vh>insert_parts</vh></v>
<v t="vitalije.20210714131143.1"><vh>make_gaps</vh></v>
<v t="vitalije.20210715134233.1"><vh>delete_blocks</vh></v>
<v t="vitalije.20190702085650.1"><vh>tests</vh>
<v t="vitalije.20190630113842.1"><vh>test_rpartition</vh></v>
<v t="vitalije.20210714131223.1"><vh>test_make_gaps</vh></v>
<v t="vitalije.20210714133911.1"><vh>test_insert_parts</vh></v>
<v t="vitalije.20210715135807.1"><vh>test_delete_blocks</vh></v>
</v>
</v>
<v t="vitalije.20190625192155.1"><vh>@clean src/parsing.rs</vh>
<v t="vitalije.20190630112527.1"><vh>test</vh>
<v t="vitalije.20190630151934.1"><vh>test_handle_level_stars</vh></v>
</v>
<v t="vitalije.20190630144259.1"><vh>LdfParseState</vh></v>
<v t="vitalije.20190630144250.1"><vh>handle_line</vh>
<v t="vitalije.20190630155031.1"><vh>helpers...</vh>
<v t="vitalije.20190630145512.1"><vh>afterws</vh></v>
<v t="vitalije.20190630145518.1"><vh>tonl</vh></v>
<v t="vitalije.20190630150332.1"><vh>tocolon</vh></v>
<v t="vitalije.20190630153727.1"><vh>tocloseref</vh></v>
<v t="vitalije.20190701152016.1"><vh>to_start_of_bytes</vh></v>
<v t="vitalije.20190630145524.1"><vh>afternl</vh></v>
<v t="vitalije.20190630154640.1"><vh>push_body_line</vh></v>
</v>
<v t="vitalije.20190630154632.1"><vh>handle_leo_line</vh>
<v t="vitalije.20190630152746.1"><vh>check_at_plus_node</vh>
<v t="vitalije.20190630151224.1"><vh>handle_level_stars</vh></v>
</v>
<v t="vitalije.20190630154729.1"><vh>check_at_minus_others</vh></v>
<v t="vitalije.20190630154919.1"><vh>check_at_minus_ref</vh></v>
<v t="vitalije.20190630154613.1"><vh>check_at_plus_ref</vh></v>
<v t="vitalije.20190630154620.1"><vh>check_at_plus_others</vh></v>
<v t="vitalije.20190701193905.1"><vh>check_at_plus_all</vh></v>
<v t="vitalije.20190701194037.1"><vh>check_at_minus_all</vh></v>
<v t="vitalije.20190630192319.1"><vh>check_leo_directives</vh></v>
<v t="vitalije.20190701194331.1"><vh>check_at_verbatim</vh></v>
<v t="vitalije.20190701195722.1"><vh>check_at_raw</vh></v>
<v t="vitalije.20190630192331.1"><vh>check_ignored_sentinels</vh></v>
<v t="vitalije.20190701145231.1"><vh>check_at_first</vh></v>
<v t="vitalije.20190701145239.1"><vh>check_at_plus_at</vh></v>
</v>
</v>
<v t="vitalije.20190630160440.1"><vh>handle_leo_header</vh></v>
<v t="vitalije.20190630155744.1"><vh>ldf_parse</vh></v>
<v t="vitalije.20191215182251.1"><vh>from_derived_file</vh></v>
<v t="vitalije.20191231195159.1"><vh>read_file_as_in_linux</vh></v>
<v t="vitalije.20190702104313.1"><vh>from_derived_file_content</vh></v>
<v t="vitalije.20191215181220.1"><vh>parser_config</vh></v>
<v t="vitalije.20191215181042.1"><vh>from_leo_file</vh></v>
<v t="vitalije.20210715081849.1"><vh>from_zip_archive</vh></v>
<v t="vitalije.20191215182704.1"><vh>from_leo_content</vh>
<v t="vitalije.20210719122601.1"><vh><<handle empty v element>></vh></v>
</v>
<v t="vitalije.20200323081335.1"><vh>from_auto_content</vh></v>
<v t="vitalije.20191229171155.1"><vh>load_with_external_files</vh>
<v t="vitalije.20200323075753.1"><vh>load derived files</vh></v>
<v t="vitalije.20200323081110.1"><vh>load auto files</vh></v>
<v t="vitalije.20200323075757.1"><vh>update clean files</vh></v>
<v t="vitalije.20200323080552.1"><vh>update edit files</vh></v>
</v>
</v>
<v t="vitalije.20200323074449.1"><vh>@clean src/atclean.rs</vh>
<v t="vitalije.20200323101936.1"><vh>atclean_to_string</vh>
<v t="vitalije.20200323150457.1"><vh>AtCleanTree iterator</vh></v>
</v>
<v t="vitalije.20200323085359.1"><vh>update_atclean_tree</vh></v>
</v>
<v t="vitalije.20210715094411.1"><vh>@clean test.py</vh>
<v t="vitalije.20210715133349.1"><vh>dump</vh></v>
<v t="vitalije.20210715133359.1"><vh>check</vh></v>
<v t="vitalije.20210715150601.1"><vh>compare_debugs</vh></v>
<v t="vitalije.20210716091223.1"><vh>test_some</vh></v>
<v t="vitalije.20210716091402.1"><vh>get_outline</vh></v>
<v t="vitalije.20210716122616.1"><vh>test_right</vh></v>
<v t="vitalije.20210716122705.1"><vh>test_left</vh></v>
<v t="vitalije.20210718114938.1"><vh>test_up</vh></v>
<v t="vitalije.20210719104019.1"><vh>test_down</vh></v>
<v t="vitalije.20210721210914.1"><vh>test_update_node</vh></v>
<v t="vitalije.20210722115009.1"><vh>test_valid_operations</vh>
<v t="vitalije.20210722115946.1"><vh>newgnx</vh></v>
<v t="vitalije.20210722120743.1"><vh>check_op</vh></v>
</v>
</v>
<v t="vitalije.20210719152258.1"><vh>тест дата</vh></v>
<v t="vitalije.20210720160919.1"><vh>nodes per level</vh></v>
<v t="vitalije.20180822205209.1"><vh>@clean build.rs</vh></v>
<v t="vitalije.20180822204947.1"><vh>@clean Cargo.toml</vh></v>
</v>
<v t="vitalije.20180822170827.1"><vh>md:README.md</vh>
<v t="vitalije.20180822170827.2"><vh>Mini Leo</vh>
<v t="vitalije.20180822170827.3"><vh>Features</vh></v>
<v t="vitalije.20180822170827.4"><vh>Credits</vh></v>
</v>
</v>
<v t="vitalije.20180822164726.1"><vh>Doc</vh>
<v t="vitalije.20180822170856.1"><vh>md:AUTHORS.md</vh>
<v t="vitalije.20180822170856.2"><vh>Credits</vh>
<v t="vitalije.20180822170856.3"><vh>Development Lead</vh></v>
<v t="vitalije.20180822170856.4"><vh>Contributors</vh></v>
</v>
</v>
<v t="vitalije.20180822170901.1"><vh>md:CONTRIBUTING.md</vh>
<v t="vitalije.20180822171411.2"><vh>Contributing</vh>
<v t="vitalije.20180822171411.3"><vh>Types of Contributions</vh>
<v t="vitalije.20180822171411.4"><vh>Report Bugs</vh></v>
<v t="vitalije.20180822171411.5"><vh>Fix Bugs</vh></v>
<v t="vitalije.20180822171411.6"><vh>Implement Features</vh></v>
<v t="vitalije.20180822171411.7"><vh>Write Documentation</vh></v>
<v t="vitalije.20180822171411.8"><vh>Submit Feedback</vh></v>
</v>
<v t="vitalije.20180822171411.9"><vh>Get Started!</vh></v>
<v t="vitalije.20180822171411.10"><vh>Pull Request Guidelines</vh></v>
<v t="vitalije.20180822171411.11"><vh>Tips</vh></v>
<v t="vitalije.20180822171411.12"><vh>Deploying</vh></v>
</v>
</v>
<v t="vitalije.20180822170949.1"><vh>md:HISTORY.md</vh>
<v t="vitalije.20180822170949.2"><vh>History</vh>
<v t="vitalije.20180822170949.3"><vh>0.1.0 (2018-08-22)</vh></v>
</v>
</v>
<v t="vitalije.20180822171411.1"><vh>md:docs/contributing.md</vh>
<v t="vitalije.20180822171411.2"></v>
</v>
<v t="vitalije.20180822171443.1"><vh>md:docs/history.md</vh>
<v t="vitalije.20180822170949.2"></v>
</v>
<v t="vitalije.20180822171037.1"><vh>md:docs/index.md</vh>
<v t="vitalije.20180822171037.2"><vh>Welcome to Mini Leo's documentation!</vh></v>
</v>
<v t="vitalije.20180822171107.1"><vh>md:docs/installation.md</vh>
<v t="vitalije.20180822171107.2"><vh>Installation</vh>
<v t="vitalije.20180822171107.3"><vh>Stable release</vh></v>
<v t="vitalije.20180822171107.4"><vh>From sources</vh></v>
</v>
</v>
<v t="vitalije.20180822171113.1"><vh>md:docs/usage.md</vh>
<v t="vitalije.20180822171129.1"><vh>Usage</vh></v>
</v>
<v t="vitalije.20180822171159.1"><vh>md:docs/authors.md</vh>
<v t="vitalije.20180822170856.2"></v>
</v>
<v t="vitalije.20180822182319.1"><vh>md:docs/readme.md</vh>
<v t="vitalije.20180822170827.2"></v>
</v>
</v>
<v t="vitalije.20190702171525.1"><vh>Benchmark results</vh></v>
<v t="vitalije.20200324073138.1"><vh>atclean in python key=Alt-4</vh>
<v t="vitalije.20200324073748.1"><vh>workdata</vh></v>
<v t="vitalije.20200324074019.1"><vh>test_final</vh></v>
<v t="vitalije.20200324074659.1"><vh>atothers_index</vh></v>
</v>
</vnodes>
<tnodes>
<t tx="vitalije.20180822151714.2">A minimal version of Leo editor</t>
<t tx="vitalije.20180822164726.1">s = '''AUTHORS.md
CONTRIBUTING.md
HISTORY.md
README.md
index.md
installation.md
usage.md
docs/authors.md
docs/contributing.md
docs/history.md
docs/index.md
docs/installation.md
docs/readme.md
docs/usage.md'''.split('\n')
for x in s:
p1 = p.insertAsLastChild()
p1.h = 'md:%s'%x
p1.b = open(x, 'rt', encoding='utf8').read()
c.redraw()
</t>
<t tx="vitalije.20180822170827.1"></t>
<t tx="vitalije.20180822170827.2">[![image](https://img.shields.io/pypi/v/mini_leo.svg)](https://pypi.python.org/pypi/mini_leo)
[![image](https://img.shields.io/travis/vitalije/mini_leo.svg)](https://travis-ci.org/vitalije/mini_leo)
[![Documentation Status](https://readthedocs.org/projects/mini-leo/badge/?version=latest)](https://mini-leo.readthedocs.io/en/latest/?badge=latest)
[ ~ Dependencies scanned by PyUp.io ~ ]
A minimal version of Leo editor.
- Free software: MIT license
- Documentation: <https://mini-leo.readthedocs.io>.
</t>
<t tx="vitalije.20180822170827.3">- TODO
</t>
<t tx="vitalije.20180822170827.4">This package was created with
[Cookiecutter](https://github.com/audreyr/cookiecutter) and the
[audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage)
project template.
</t>
<t tx="vitalije.20180822170856.1"></t>
<t tx="vitalije.20180822170856.2"></t>
<t tx="vitalije.20180822170856.3">- Vitalije Milosevic _`<vitalije (at) kviziracija.net>`_
</t>
<t tx="vitalije.20180822170856.4">None yet. Why not be the first?
</t>
<t tx="vitalije.20180822170901.1"></t>
<t tx="vitalije.20180822170949.1"></t>
<t tx="vitalije.20180822170949.2"></t>
<t tx="vitalije.20180822170949.3">- First release on PyPI.
</t>
<t tx="vitalije.20180822171037.1"></t>
<t tx="vitalije.20180822171037.2">- [Instalation](installation.md)
- [Usage](usage.md)
- [Contributing](contributing.md)
- [Authors](authors.md)
- [History](history.md)
</t>
<t tx="vitalije.20180822171107.1"></t>
<t tx="vitalije.20180822171107.2"></t>
<t tx="vitalije.20180822171107.3">To install Mini Leo, run this command in your terminal:
```shell
$ pip install mini_leo
```
This is the preferred method to install Mini Leo, as it will always
install the most recent stable release.
If you don't have [pip](https://pip.pypa.io) installed, this [Python
installation
guide](http://docs.python-guide.org/en/latest/starting/installation/)
can guide you through the process.
</t>
<t tx="vitalije.20180822171107.4">The sources for Mini Leo can be downloaded from the [Github
repo](https://github.com/vitalije/mini_leo).
You can either clone the public repository:
```shell
$ git clone git://github.com/vitalije/mini_leo
```
Or download the
[tarball](https://github.com/vitalije/mini_leo/tarball/master):
```shell
$ curl -OL https://github.com/vitalije/mini_leo/tarball/master
```
Once you have a copy of the source, you can install it with:
```shell
$ python setup.py install
```
</t>
<t tx="vitalije.20180822171113.1"></t>
<t tx="vitalije.20180822171129.1">To use Mini Leo in a project:
import mini_leo</t>
<t tx="vitalije.20180822171159.1"></t>
<t tx="vitalije.20180822171411.1"></t>
<t tx="vitalije.20180822171411.10">Before you submit a pull request, check that it meets these guidelines:
1. The pull request should include tests.
2. If the pull request adds functionality, the docs should be updated.
Put your new functionality into a function with a docstring, and add
the feature to the list in README.rst.
3. The pull request should work for Python 2.7, 3.4, 3.5 and 3.6, and
for PyPy. Check
<https://travis-ci.org/vitalije/mini_leo/pull_requests> and make
sure that the tests pass for all supported Python versions.
</t>
<t tx="vitalije.20180822171411.11">To run a subset of tests:
$ py.test tests.test_mini_leo
</t>
<t tx="vitalije.20180822171411.12">A reminder for the maintainers on how to deploy. Make sure all your
changes are committed (including an entry in HISTORY.rst). Then run:
$ bumpversion patch # possible: major / minor / patch
$ git push
$ git push --tags
Travis will then deploy to PyPI if tests pass.
</t>
<t tx="vitalije.20180822171411.2">Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
</t>
<t tx="vitalije.20180822171411.3"></t>
<t tx="vitalije.20180822171411.4">Report bugs at <https://github.com/vitalije/mini_leo/issues>.
If you are reporting a bug, please include:
- Your operating system name and version.
- Any details about your local setup that might be helpful in
troubleshooting.
- Detailed steps to reproduce the bug.
</t>
<t tx="vitalije.20180822171411.5">Look through the GitHub issues for bugs. Anything tagged with "bug"
and "help wanted" is open to whoever wants to implement it.
</t>
<t tx="vitalije.20180822171411.6">Look through the GitHub issues for features. Anything tagged with
"enhancement" and "help wanted" is open to whoever wants to
implement it.
</t>
<t tx="vitalije.20180822171411.7">Mini Leo could always use more documentation, whether as part of the
official Mini Leo docs, in docstrings, or even on the web in blog posts,
articles, and such.
</t>
<t tx="vitalije.20180822171411.8">The best way to send feedback is to file an issue at
<https://github.com/vitalije/mini_leo/issues>.
If you are proposing a feature:
- Explain in detail how it would work.
- Keep the scope as narrow as possible, to make it easier to
implement.
- Remember that this is a volunteer-driven project, and that
contributions are welcome :)
</t>
<t tx="vitalije.20180822171411.9">Ready to contribute? Here's how to set up mini_leo for local
development.
1. Fork the mini_leo repo on GitHub.
2. Clone your fork locally:
$ git clone [email protected]:your_name_here/mini_leo.git
3. Install your local copy into a virtualenv. Assuming you have
virtualenvwrapper installed, this is how you set up your fork for
local development:
$ mkvirtualenv mini_leo
$ cd mini_leo/
$ python setup.py develop
4. Create a branch for local development:
$ git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
5. When you're done making changes, check that your changes pass
flake8 and the tests, including testing other Python versions with
tox:
$ flake8 mini_leo tests
$ python setup.py test or py.test
$ tox
To get flake8 and tox, just pip install them into your virtualenv.
6. Commit your changes and push your branch to GitHub:
$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin name-of-your-bugfix-or-feature
7. Submit a pull request through the GitHub website.
</t>
<t tx="vitalije.20180822171443.1"></t>
<t tx="vitalije.20180822171822.1">import subprocess
import re
import shutil
import os
pat = re.compile(r'^(\s*)LEOGNX:(.+)$')
c.frame.log.selectTab('Log')
c.frame.log.clearLog()
@others
px = c.rootPosition()
seen = set()
while px:
if px.gnx in seen:
px.moveToNodeAfterTree()
continue
seen.add(px.gnx)
if px.h.startswith('md:'):
obradi(px)
px.moveToNodeAfterTree()
else:
px.moveToThreadNext()
c.save()
c.fileCommands.save_ref()
</t>
<t tx="vitalije.20180822171822.2">def hl(p, lev):
return '#' * (lev) + ' ' + p.h + '\n'</t>
<t tx="vitalije.20180822171822.3">def mdlines(p, lev=0):
if lev > 0 and not p.b.startswith('#'):
yield hl(p, lev)
yield ''
for line in p.b.splitlines(False):
m = pat.match(line)
if m:
v = c.fileCommands.gnxDict.get(m.group(2))
if not v:
g.es('gnx not found:[%s]'%m.group(2))
else:
for x in v.b.splitlines(False):
yield m.group(1) + x
continue
yield line
yield ''
for p1 in p.children():
yield from mdlines(p1, lev + 1)
yield ''</t>
<t tx="vitalije.20180822171822.4">_CACHE_ = {}
def getf(fname):
if fname in _CACHE_:
return _CACHE_[fname]
if not g.os_path_exists(fname): return ''
with open(fname, 'rt') as inpt:
s = inpt.read()
_CACHE_[fname] = s
return s
</t>
<t tx="vitalije.20180822171822.5">def putf(fname, cnt):
if cnt == getf(fname):
return False
with open(fname, 'wb') as out:
out.write(cnt.encode('utf-8'))
_CACHE_[fname] = cnt
return True</t>
<t tx="vitalije.20180822171822.6">def obradi(p):
fname = g.os_path_join(c.openDirectory, p.h[3:].strip())
s = '\n'.join(mdlines(p))
putf(fname, s)
g.es('wrote', fname, len(s), 'bytes')
</t>
<t tx="vitalije.20180822173307.1"></t>
<t tx="vitalije.20180822182319.1"></t>
<t tx="vitalije.20180822183813.1">#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
import os
cargobin = os.path.expanduser('~/.cargo/bin/cargo')
with open('README.md') as readme_file:
readme = readme_file.read()
with open('HISTORY.md') as history_file:
history = history_file.read()
requirements = ['Click>=6.0', 'milksnake']
setup_requirements = ['pytest-runner', 'milksnake']
test_requirements = ['pytest', ]
@others
setup(
author="Vitalije Milosevic",
author_email='[email protected]',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
description="A minimal version of Leo editor.",
entry_points={
'console_scripts': [
'mini_leo=mini_leo.cli:main',
],
},
install_requires=requirements,
license="MIT license",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='mini_leo',
name='mini_leo',
packages=find_packages(include=['mini_leo']),
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/vitalije/mini_leo',
version='0.1.0',
zip_safe=False,
platforms='any',
milksnake_tasks = [build_native]
)
</t>
<t tx="vitalije.20180822200124.1"># -*- coding: utf-8 -*-
"""Top-level package for Mini Leo."""
from ._minileo import *
__author__ = """Vitalije Milosevic"""
__email__ = '[email protected]'
__version__ = '0.1.0'
</t>
<t tx="vitalije.20180822200508.1"># -*- coding: utf-8 -*-
"""Console script for mini_leo."""
import sys
import click
from mini_leo import test
@others
if __name__ == "__main__":
sys.exit(main()) # pragma: no cover
</t>
<t tx="vitalije.20180822200526.1"># -*- coding: utf-8 -*-
"""Main module."""
</t>
<t tx="vitalije.20180822200550.2">@click.command()
def main(args=None):
"""Console script for mini_leo."""
#click.echo("See click documentation at http://click.pocoo.org/")
if test() != 42:
return 1
return 0
</t>
<t tx="vitalije.20180822200821.1">for v in c.all_unique_nodes():
if v.h.startswith('@file '):
v.h = v.h.replace('@file ', '@clean ')
</t>
<t tx="vitalije.20180822204714.1">@path rust</t>
<t tx="vitalije.20180822204724.1">@language rust
@tabwidth -2
#[path="model.rs"]
mod model;
#[path="utils.rs"]
mod utils;
#[path="parsing.rs"]
mod parsing;
#[path="atclean.rs"]
mod atclean;
use std::collections::HashMap;
use std::sync::{Mutex};
pub use parsing::{ldf_parse,from_derived_file_content, from_derived_file,
from_leo_file, from_leo_content, load_with_external_files,
/*from_zip_archive,*/
};
pub use atclean::{atclean_to_string, update_atclean_tree};
pub use utils::{b64int, b64str, b64write, partition};
pub use model::{VData, Outline, OutlineOps, LevGnx, LevGnxOps, gnx_index,
find_derived_files, find_edit_files,
find_auto_files, find_clean_files,
check_levels, check_clones, check_labels,
create_link, undo_insert_parts, redo_insert_parts,
break_link, undo_delete_blocks, redo_delete_blocks,
undo_shift_blocks, redo_shift_blocks,
undo_set_nodes, redo_set_nodes,
insert_new_node, redo_insert_new_node,
undo_update_node, redo_update_node,
move_node_right, move_node_left, move_node_up, move_node_down,
clone_node, delete_node,
valid_operations,
extract_subtree, INDENT};
use pyo3::prelude::*;
use pyo3::PyIterProtocol;
use pyo3::exceptions::{PyValueError, PyIOError};
//use pyo3::{wrap_pyfunction};
//use pyo3::type_object::PyTypeObject;
//use xml::reader::{ParserConfig, XmlEvent};
use std::path::{Path};
#[macro_use]
extern crate lazy_static;
#[pyfunction]
pub fn a_function_from_rust() -> PyResult<i32> {
Ok(42)
}
@others
</t>
<t tx="vitalije.20180822204947.1">[package]
name = "mini_leo"
version = "0.1.0"
build = "build.rs"
edition = "2018"
[lib]
name = "mini_leo"
crate-type = ["cdylib"]
[build-dependencies]
cbindgen = "0.19.0"
[dependencies]
lazy_static = "1.4.0"
quick-xml = "0.22.0"
# zip = "0.5.13"
[dependencies.pyo3]
version = "0.14.1"
features = ["extension-module", "abi3"]
[dev-dependencies]
proptest = "1.0.0"
</t>
<t tx="vitalije.20180822205209.1">extern crate cbindgen;
use std::env;
fn main() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
let mut config: cbindgen::Config = Default::default();
config.language = cbindgen::Language::C;
match cbindgen::generate_with_config(&crate_dir, config) {
Ok(x) => x.write_to_file("target/mini_leo.h"),
Err(e) => {println!("Greska: {}", e);false}
};
}
</t>
<t tx="vitalije.20180823001012.1">#!/bin/bash
curl https://sh.rustup.rs -sSf -o /tmp/rustup.sh
sh /tmp/rustup.sh --default-toolchain nightly -y
</t>
<t tx="vitalije.20190622133345.1">#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `mini_leo` package."""
import pytest
from click.testing import CliRunner
from mini_leo import cli
@pytest.fixture
def response():
"""Sample pytest fixture.
See more at: http://doc.pytest.org/en/latest/fixture.html
"""
# import requests
# return requests.get('https://github.com/audreyr/cookiecutter-pypackage')
def test_content(response):
"""Sample pytest test function with the pytest fixture as an argument."""
# from bs4 import BeautifulSoup
# assert 'GitHub' in BeautifulSoup(response.content).title.string
def test_command_line_interface():
"""Test the CLI."""
runner = CliRunner()
result = runner.invoke(cli.main)
assert result.exit_code == 0
help_result = runner.invoke(cli.main, ['--help'])
assert help_result.exit_code == 0
assert '--help Show this message and exit.' in help_result.output
</t>
<t tx="vitalije.20190625073241.1">we need:
- list of known gnxes
- stack of parent gnxes
- list of pairs (level, gnx)
- map gnx -> list of direct child gnxes
- map gnx -> (h, b)
type
struct LeoXmlTracker {
index: Vec<String>,
ancestors: Vec<String>,
outline: Vec<u32>
}
Known facts:
1. when we receive Characters(t) event and last started element is vh,
then we have h for the last gnx in the outline
2. when we receive StartElement(v) we should:
2.1 add its t attribute and level
to the list of pairs (level, gnx)
2.2 add its t attribute to children of its parent gnx
2.3 if it is clone, we should add all its subtree to the outline list
3. when we receive StartElement(t) clear bodybuf and set bodygnx to be tx attribute
4. when we receive EndElement(t) update h_b map bodygnx -> b=bodybuf
</t>
<t tx="vitalije.20190625101104.1">/// converts integer to String in base 64
pub fn b64str(n:u64) -> String {
if n == 0 {
String::from("0")
} else {
let mut res = String::new();
let mut _n = n;
while _n > 0 {
res.insert(0, B64DIGITS[(_n & 63) as usize]);
_n = _n >> 6;
}
res
}
}
#[allow(dead_code)]
/// appends textual representation of u64 number to
/// the given string buffer
pub fn b64write(n:u64, buf:&mut String) {
if n == 0 {
buf.push('0');
} else {
let mut _n = n;
let i = buf.len();
while _n > 0 {
buf.insert(i, B64DIGITS[(_n & 63) as usize]);
_n = _n >> 6;
}
}
}
/// converts base 64 str to u64
pub fn b64int(a:&str) -> u64 {
let mut res = 0_u64;
for i in a.bytes() {
let k = B64VALUES[(i & 127) as usize];
if k == 255 { break }
res = (res << 6) + (k as u64);
}
res
}</t>
<t tx="vitalije.20190625101129.1">pub type LevGnx = u64;
pub trait LevGnxOps {
/// returns level of this node
fn level(&self) -> u8;
/// returns ignx of this node
fn ignx(&self) -> u32;
/// returns label of this node
fn label(&self) -> u32;
/// returns true if this node should be expanded
fn is_expanded(&self) -> bool;
/// increments level of this node
fn inc(&mut self);
/// decrements level of this node
fn dec(&mut self);
/// changes the level of this node for given delta d
fn shift(&mut self, d: i8);
/// sets level of this node to given value
fn set_level(&mut self, lev: u8);
/// sets ignx of this node to given value
fn set_ignx(&mut self, ignx:u32);
/// sets label for this node to given value
fn set_label(&mut self, label:u32);
/// expands this node
fn expand(&mut self);
/// collapses this node
fn collapse(&mut self);
/// converts this object into ascii representation (11 ascii letters)
fn to_str(&self) -> String;
/// creates object from its String representation
fn from_str(a:&str) -> LevGnx;
/// creates object from level and ignx values
fn make(lev:u8, ignx:u32, label:u32) -> Self;