swissparser 0.11.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,137 @@
1
+ =begin
2
+ Copyright (C) 2009-2010 Paradigmatic
3
+
4
+ This file is part of SwissParser.
5
+
6
+ SwissParser is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ SwissParser is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with SwissParser. If not, see <http://www.gnu.org/licenses/>.
18
+ =end
19
+
20
+ module Swiss
21
+
22
+ # Represent all the entries
23
+ class Entries
24
+
25
+ def initialize( rules, input, opt )
26
+ @rules = rules
27
+ @input = input
28
+ @opt = opt
29
+ end
30
+
31
+ def size()
32
+ unless @size
33
+ size = 0
34
+ @input.each_line do |line|
35
+ if separator?( line )
36
+ size += 1
37
+ end
38
+ end
39
+ @size = size
40
+ end
41
+ @size
42
+ end
43
+
44
+ def each()
45
+ entry = new_entry
46
+ last_key = nil
47
+ @input.each_line do |line|
48
+ line.chomp!
49
+ if separator?( line )
50
+ yield entry
51
+ last_key = nil
52
+ entry = new_entry
53
+ elsif line =~ /^(\S+)\s+(.*)$/
54
+ key,content = $1,$2
55
+ last_key = key
56
+ if @rules.rules[key]
57
+ entry.instance_exec( content, &@rules.rules[key] )
58
+ end
59
+ else
60
+ if @rules.rules[:text][last_key]
61
+ entry.instance_exec(
62
+ line.chomp.strip,
63
+ &@rules.rules[:text][last_key]
64
+ )
65
+ end
66
+ end
67
+ end
68
+ end
69
+
70
+ private
71
+
72
+ def new_entry()
73
+ entry = Entry.new( @opt )
74
+ @rules.get_helpers.each do |helper|
75
+ entry.add_helpers( helper )
76
+ end
77
+ entry
78
+ end
79
+
80
+ def separator?( line )
81
+ line.strip == @rules.separator
82
+ end
83
+
84
+ end
85
+
86
+ # Parsed entry
87
+ class Entry
88
+
89
+ def initialize( opt )
90
+ @opt__ = opt
91
+ end
92
+
93
+ def option(key)
94
+ @opt__[key]
95
+ end
96
+
97
+ def add_helpers( block )
98
+ instance_eval( &block )
99
+ end
100
+
101
+ def method_missing(name, *args, &block)
102
+ #TODO better fail
103
+ fail if args.size > 0
104
+ iv = "@#{name}".to_sym
105
+ instance_variable_get( iv )
106
+ end
107
+
108
+ module InstanceExecHelper #:nodoc:
109
+ end
110
+
111
+ include InstanceExecHelper
112
+
113
+ #Method instance_exec exists since version 1.9
114
+ if RUBY_VERSION < "1.9"
115
+ #Used to execuxte rules and action using the ParsingContext as context
116
+ #Stolen from http://eigenclass.org/hiki/bounded+space+instance_exec
117
+ def instance_exec(*args, &block)
118
+ begin
119
+ old_critical, Thread.critical = Thread.critical, true
120
+ n = 0
121
+ n += 1 while respond_to?(mname="__instance_exec#{n}")
122
+ InstanceExecHelper.module_eval{ define_method(mname, &block) }
123
+ ensure
124
+ Thread.critical = old_critical
125
+ end
126
+ begin
127
+ ret = send(mname, *args)
128
+ ensure
129
+ InstanceExecHelper.module_eval{ remove_method(mname) } rescue nil
130
+ end
131
+ ret
132
+ end
133
+ end
134
+
135
+ end
136
+
137
+ end
@@ -0,0 +1,2360 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 31
13
+ 45
14
+ 0
15
+ 1
16
+ 7
17
+ 2
18
+ 65
19
+ 49
20
+ 3
21
+ 2
22
+ 13
23
+ 45
24
+ 0
25
+ 4
26
+ 12
27
+ 7
28
+ 5
29
+ 12
30
+ 7
31
+ 6
32
+ 12
33
+ 65
34
+ 12
35
+ 49
36
+ 7
37
+ 4
38
+ 15
39
+ 48
40
+ 5
41
+ 15
42
+ 2
43
+ 11
44
+ I
45
+ 6
46
+ I
47
+ 0
48
+ I
49
+ 0
50
+ I
51
+ 0
52
+ n
53
+ p
54
+ 8
55
+ x
56
+ 8
57
+ Rubinius
58
+ n
59
+ x
60
+ 5
61
+ Swiss
62
+ x
63
+ 11
64
+ open_module
65
+ n
66
+ x
67
+ 15
68
+ __module_init__
69
+ M
70
+ 1
71
+ n
72
+ n
73
+ x
74
+ 5
75
+ Swiss
76
+ i
77
+ 62
78
+ 5
79
+ 66
80
+ 45
81
+ 0
82
+ 1
83
+ 7
84
+ 2
85
+ 1
86
+ 65
87
+ 49
88
+ 3
89
+ 3
90
+ 13
91
+ 45
92
+ 0
93
+ 4
94
+ 12
95
+ 7
96
+ 5
97
+ 12
98
+ 7
99
+ 6
100
+ 12
101
+ 65
102
+ 12
103
+ 49
104
+ 7
105
+ 4
106
+ 15
107
+ 48
108
+ 5
109
+ 15
110
+ 45
111
+ 0
112
+ 8
113
+ 7
114
+ 9
115
+ 1
116
+ 65
117
+ 49
118
+ 3
119
+ 3
120
+ 13
121
+ 45
122
+ 0
123
+ 10
124
+ 12
125
+ 7
126
+ 5
127
+ 12
128
+ 7
129
+ 11
130
+ 12
131
+ 65
132
+ 12
133
+ 49
134
+ 7
135
+ 4
136
+ 15
137
+ 48
138
+ 5
139
+ 11
140
+ I
141
+ 6
142
+ I
143
+ 0
144
+ I
145
+ 0
146
+ I
147
+ 0
148
+ n
149
+ p
150
+ 12
151
+ x
152
+ 8
153
+ Rubinius
154
+ n
155
+ x
156
+ 7
157
+ Entries
158
+ x
159
+ 10
160
+ open_class
161
+ n
162
+ x
163
+ 14
164
+ __class_init__
165
+ M
166
+ 1
167
+ n
168
+ n
169
+ x
170
+ 7
171
+ Entries
172
+ i
173
+ 82
174
+ 5
175
+ 66
176
+ 45
177
+ 0
178
+ 1
179
+ 7
180
+ 2
181
+ 7
182
+ 3
183
+ 65
184
+ 67
185
+ 48
186
+ 4
187
+ 49
188
+ 5
189
+ 4
190
+ 15
191
+ 45
192
+ 0
193
+ 6
194
+ 7
195
+ 7
196
+ 7
197
+ 8
198
+ 65
199
+ 67
200
+ 48
201
+ 4
202
+ 49
203
+ 5
204
+ 4
205
+ 15
206
+ 45
207
+ 0
208
+ 9
209
+ 7
210
+ 10
211
+ 7
212
+ 11
213
+ 65
214
+ 67
215
+ 48
216
+ 4
217
+ 49
218
+ 5
219
+ 4
220
+ 15
221
+ 5
222
+ 47
223
+ 48
224
+ 12
225
+ 15
226
+ 45
227
+ 0
228
+ 13
229
+ 7
230
+ 14
231
+ 7
232
+ 15
233
+ 65
234
+ 67
235
+ 48
236
+ 4
237
+ 49
238
+ 5
239
+ 4
240
+ 15
241
+ 45
242
+ 0
243
+ 16
244
+ 7
245
+ 17
246
+ 7
247
+ 18
248
+ 65
249
+ 67
250
+ 48
251
+ 4
252
+ 49
253
+ 5
254
+ 4
255
+ 11
256
+ I
257
+ 5
258
+ I
259
+ 0
260
+ I
261
+ 0
262
+ I
263
+ 0
264
+ n
265
+ p
266
+ 19
267
+ x
268
+ 8
269
+ Rubinius
270
+ n
271
+ x
272
+ 10
273
+ initialize
274
+ M
275
+ 1
276
+ n
277
+ n
278
+ x
279
+ 10
280
+ initialize
281
+ i
282
+ 15
283
+ 20
284
+ 0
285
+ 38
286
+ 0
287
+ 15
288
+ 20
289
+ 1
290
+ 38
291
+ 1
292
+ 15
293
+ 20
294
+ 2
295
+ 38
296
+ 2
297
+ 11
298
+ I
299
+ 4
300
+ I
301
+ 3
302
+ I
303
+ 3
304
+ I
305
+ 3
306
+ n
307
+ p
308
+ 3
309
+ x
310
+ 6
311
+ @rules
312
+ x
313
+ 6
314
+ @input
315
+ x
316
+ 4
317
+ @opt
318
+ p
319
+ 9
320
+ I
321
+ 0
322
+ I
323
+ 19
324
+ I
325
+ 0
326
+ I
327
+ 1a
328
+ I
329
+ 5
330
+ I
331
+ 1b
332
+ I
333
+ a
334
+ I
335
+ 1c
336
+ I
337
+ f
338
+ x
339
+ 56
340
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
341
+ p
342
+ 3
343
+ x
344
+ 5
345
+ rules
346
+ x
347
+ 5
348
+ input
349
+ x
350
+ 3
351
+ opt
352
+ x
353
+ 17
354
+ method_visibility
355
+ x
356
+ 15
357
+ add_defn_method
358
+ n
359
+ x
360
+ 4
361
+ size
362
+ M
363
+ 1
364
+ n
365
+ n
366
+ x
367
+ 4
368
+ size
369
+ i
370
+ 27
371
+ 39
372
+ 0
373
+ 9
374
+ 7
375
+ 1
376
+ 8
377
+ 23
378
+ 78
379
+ 19
380
+ 0
381
+ 15
382
+ 39
383
+ 1
384
+ 56
385
+ 2
386
+ 50
387
+ 3
388
+ 0
389
+ 15
390
+ 20
391
+ 0
392
+ 38
393
+ 0
394
+ 15
395
+ 39
396
+ 0
397
+ 11
398
+ I
399
+ 3
400
+ I
401
+ 1
402
+ I
403
+ 0
404
+ I
405
+ 0
406
+ n
407
+ p
408
+ 4
409
+ x
410
+ 5
411
+ @size
412
+ x
413
+ 6
414
+ @input
415
+ M
416
+ 1
417
+ p
418
+ 2
419
+ x
420
+ 9
421
+ for_block
422
+ t
423
+ n
424
+ x
425
+ 4
426
+ size
427
+ i
428
+ 26
429
+ 57
430
+ 19
431
+ 0
432
+ 15
433
+ 5
434
+ 20
435
+ 0
436
+ 47
437
+ 49
438
+ 0
439
+ 1
440
+ 9
441
+ 24
442
+ 21
443
+ 1
444
+ 0
445
+ 79
446
+ 81
447
+ 1
448
+ 22
449
+ 1
450
+ 0
451
+ 8
452
+ 25
453
+ 1
454
+ 11
455
+ I
456
+ 4
457
+ I
458
+ 1
459
+ I
460
+ 1
461
+ I
462
+ 1
463
+ n
464
+ p
465
+ 2
466
+ x
467
+ 10
468
+ separator?
469
+ x
470
+ 1
471
+ +
472
+ p
473
+ 9
474
+ I
475
+ 0
476
+ I
477
+ 22
478
+ I
479
+ 4
480
+ I
481
+ 23
482
+ I
483
+ d
484
+ I
485
+ 24
486
+ I
487
+ 18
488
+ I
489
+ 23
490
+ I
491
+ 1a
492
+ x
493
+ 56
494
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
495
+ p
496
+ 1
497
+ x
498
+ 4
499
+ line
500
+ x
501
+ 9
502
+ each_line
503
+ p
504
+ 13
505
+ I
506
+ 0
507
+ I
508
+ 1f
509
+ I
510
+ 0
511
+ I
512
+ 20
513
+ I
514
+ 7
515
+ I
516
+ 21
517
+ I
518
+ b
519
+ I
520
+ 22
521
+ I
522
+ 13
523
+ I
524
+ 27
525
+ I
526
+ 18
527
+ I
528
+ 29
529
+ I
530
+ 1b
531
+ x
532
+ 56
533
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
534
+ p
535
+ 1
536
+ x
537
+ 4
538
+ size
539
+ n
540
+ x
541
+ 4
542
+ each
543
+ M
544
+ 1
545
+ n
546
+ n
547
+ x
548
+ 4
549
+ each
550
+ i
551
+ 19
552
+ 5
553
+ 47
554
+ 48
555
+ 0
556
+ 19
557
+ 0
558
+ 15
559
+ 1
560
+ 19
561
+ 1
562
+ 15
563
+ 39
564
+ 1
565
+ 56
566
+ 2
567
+ 50
568
+ 3
569
+ 0
570
+ 11
571
+ I
572
+ 4
573
+ I
574
+ 2
575
+ I
576
+ 0
577
+ I
578
+ 0
579
+ n
580
+ p
581
+ 4
582
+ x
583
+ 9
584
+ new_entry
585
+ x
586
+ 6
587
+ @input
588
+ M
589
+ 1
590
+ p
591
+ 2
592
+ x
593
+ 9
594
+ for_block
595
+ t
596
+ n
597
+ x
598
+ 4
599
+ each
600
+ i
601
+ 194
602
+ 57
603
+ 19
604
+ 0
605
+ 15
606
+ 20
607
+ 0
608
+ 48
609
+ 0
610
+ 15
611
+ 5
612
+ 20
613
+ 0
614
+ 47
615
+ 49
616
+ 1
617
+ 1
618
+ 9
619
+ 38
620
+ 21
621
+ 1
622
+ 0
623
+ 60
624
+ 1
625
+ 15
626
+ 1
627
+ 22
628
+ 1
629
+ 1
630
+ 15
631
+ 5
632
+ 47
633
+ 48
634
+ 2
635
+ 22
636
+ 1
637
+ 0
638
+ 8
639
+ 193
640
+ 20
641
+ 0
642
+ 7
643
+ 3
644
+ 13
645
+ 70
646
+ 9
647
+ 58
648
+ 15
649
+ 45
650
+ 4
651
+ 5
652
+ 7
653
+ 6
654
+ 78
655
+ 49
656
+ 7
657
+ 2
658
+ 6
659
+ 3
660
+ 49
661
+ 8
662
+ 1
663
+ 9
664
+ 135
665
+ 4
666
+ 5
667
+ 78
668
+ 98
669
+ 9
670
+ 2
671
+ 4
672
+ 5
673
+ 79
674
+ 98
675
+ 9
676
+ 2
677
+ 17
678
+ 2
679
+ 19
680
+ 1
681
+ 15
682
+ 19
683
+ 2
684
+ 15
685
+ 2
686
+ 15
687
+ 20
688
+ 1
689
+ 22
690
+ 1
691
+ 1
692
+ 15
693
+ 39
694
+ 10
695
+ 48
696
+ 11
697
+ 20
698
+ 1
699
+ 49
700
+ 12
701
+ 1
702
+ 9
703
+ 132
704
+ 21
705
+ 1
706
+ 0
707
+ 20
708
+ 2
709
+ 39
710
+ 10
711
+ 48
712
+ 11
713
+ 20
714
+ 1
715
+ 49
716
+ 12
717
+ 1
718
+ 13
719
+ 70
720
+ 10
721
+ 127
722
+ 44
723
+ 43
724
+ 13
725
+ 12
726
+ 49
727
+ 14
728
+ 1
729
+ 50
730
+ 15
731
+ 1
732
+ 8
733
+ 133
734
+ 1
735
+ 8
736
+ 193
737
+ 39
738
+ 10
739
+ 48
740
+ 11
741
+ 7
742
+ 16
743
+ 49
744
+ 12
745
+ 1
746
+ 21
747
+ 1
748
+ 1
749
+ 49
750
+ 12
751
+ 1
752
+ 9
753
+ 192
754
+ 21
755
+ 1
756
+ 0
757
+ 20
758
+ 0
759
+ 48
760
+ 17
761
+ 48
762
+ 18
763
+ 39
764
+ 10
765
+ 48
766
+ 11
767
+ 7
768
+ 16
769
+ 49
770
+ 12
771
+ 1
772
+ 21
773
+ 1
774
+ 1
775
+ 49
776
+ 12
777
+ 1
778
+ 13
779
+ 70
780
+ 10
781
+ 187
782
+ 44
783
+ 43
784
+ 13
785
+ 12
786
+ 49
787
+ 14
788
+ 1
789
+ 50
790
+ 15
791
+ 1
792
+ 8
793
+ 193
794
+ 1
795
+ 11
796
+ I
797
+ 8
798
+ I
799
+ 3
800
+ I
801
+ 1
802
+ I
803
+ 1
804
+ n
805
+ p
806
+ 19
807
+ x
808
+ 6
809
+ chomp!
810
+ x
811
+ 10
812
+ separator?
813
+ x
814
+ 9
815
+ new_entry
816
+ n
817
+ x
818
+ 6
819
+ Regexp
820
+ n
821
+ s
822
+ 14
823
+ ^(\S+)\s+(.*)$
824
+ x
825
+ 3
826
+ new
827
+ x
828
+ 2
829
+ =~
830
+ x
831
+ 24
832
+ regexp_last_match_result
833
+ x
834
+ 6
835
+ @rules
836
+ x
837
+ 5
838
+ rules
839
+ x
840
+ 2
841
+ []
842
+ x
843
+ 4
844
+ Proc
845
+ x
846
+ 14
847
+ __from_block__
848
+ x
849
+ 13
850
+ instance_exec
851
+ x
852
+ 4
853
+ text
854
+ x
855
+ 5
856
+ chomp
857
+ x
858
+ 5
859
+ strip
860
+ p
861
+ 35
862
+ I
863
+ 0
864
+ I
865
+ 2f
866
+ I
867
+ 4
868
+ I
869
+ 30
870
+ I
871
+ 9
872
+ I
873
+ 31
874
+ I
875
+ 12
876
+ I
877
+ 32
878
+ I
879
+ 18
880
+ I
881
+ 33
882
+ I
883
+ 1d
884
+ I
885
+ 34
886
+ I
887
+ 26
888
+ I
889
+ 35
890
+ I
891
+ 3f
892
+ I
893
+ 36
894
+ I
895
+ 55
896
+ I
897
+ 37
898
+ I
899
+ 5b
900
+ I
901
+ 38
902
+ I
903
+ 66
904
+ I
905
+ 39
906
+ I
907
+ 84
908
+ I
909
+ 38
910
+ I
911
+ 87
912
+ I
913
+ 3c
914
+ I
915
+ 98
916
+ I
917
+ 3d
918
+ I
919
+ 9b
920
+ I
921
+ 3e
922
+ I
923
+ a1
924
+ I
925
+ 3f
926
+ I
927
+ c0
928
+ I
929
+ 3c
930
+ I
931
+ c2
932
+ x
933
+ 56
934
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
935
+ p
936
+ 3
937
+ x
938
+ 4
939
+ line
940
+ x
941
+ 3
942
+ key
943
+ x
944
+ 7
945
+ content
946
+ x
947
+ 9
948
+ each_line
949
+ p
950
+ 9
951
+ I
952
+ 0
953
+ I
954
+ 2c
955
+ I
956
+ 0
957
+ I
958
+ 2d
959
+ I
960
+ 7
961
+ I
962
+ 2e
963
+ I
964
+ b
965
+ I
966
+ 2f
967
+ I
968
+ 13
969
+ x
970
+ 56
971
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
972
+ p
973
+ 2
974
+ x
975
+ 5
976
+ entry
977
+ x
978
+ 8
979
+ last_key
980
+ x
981
+ 7
982
+ private
983
+ n
984
+ x
985
+ 9
986
+ new_entry
987
+ M
988
+ 1
989
+ n
990
+ n
991
+ x
992
+ 9
993
+ new_entry
994
+ i
995
+ 43
996
+ 45
997
+ 0
998
+ 1
999
+ 13
1000
+ 71
1001
+ 2
1002
+ 47
1003
+ 9
1004
+ 22
1005
+ 47
1006
+ 48
1007
+ 3
1008
+ 13
1009
+ 39
1010
+ 4
1011
+ 47
1012
+ 49
1013
+ 5
1014
+ 1
1015
+ 15
1016
+ 8
1017
+ 27
1018
+ 39
1019
+ 4
1020
+ 49
1021
+ 2
1022
+ 1
1023
+ 19
1024
+ 0
1025
+ 15
1026
+ 39
1027
+ 6
1028
+ 48
1029
+ 7
1030
+ 56
1031
+ 8
1032
+ 50
1033
+ 9
1034
+ 0
1035
+ 15
1036
+ 20
1037
+ 0
1038
+ 11
1039
+ I
1040
+ 4
1041
+ I
1042
+ 1
1043
+ I
1044
+ 0
1045
+ I
1046
+ 0
1047
+ n
1048
+ p
1049
+ 10
1050
+ x
1051
+ 5
1052
+ Entry
1053
+ n
1054
+ x
1055
+ 3
1056
+ new
1057
+ x
1058
+ 8
1059
+ allocate
1060
+ x
1061
+ 4
1062
+ @opt
1063
+ x
1064
+ 10
1065
+ initialize
1066
+ x
1067
+ 6
1068
+ @rules
1069
+ x
1070
+ 11
1071
+ get_helpers
1072
+ M
1073
+ 1
1074
+ p
1075
+ 2
1076
+ x
1077
+ 9
1078
+ for_block
1079
+ t
1080
+ n
1081
+ x
1082
+ 9
1083
+ new_entry
1084
+ i
1085
+ 13
1086
+ 57
1087
+ 19
1088
+ 0
1089
+ 15
1090
+ 21
1091
+ 1
1092
+ 0
1093
+ 20
1094
+ 0
1095
+ 49
1096
+ 0
1097
+ 1
1098
+ 11
1099
+ I
1100
+ 4
1101
+ I
1102
+ 1
1103
+ I
1104
+ 1
1105
+ I
1106
+ 1
1107
+ n
1108
+ p
1109
+ 1
1110
+ x
1111
+ 11
1112
+ add_helpers
1113
+ p
1114
+ 5
1115
+ I
1116
+ 0
1117
+ I
1118
+ 4a
1119
+ I
1120
+ 4
1121
+ I
1122
+ 4b
1123
+ I
1124
+ d
1125
+ x
1126
+ 56
1127
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
1128
+ p
1129
+ 1
1130
+ x
1131
+ 6
1132
+ helper
1133
+ x
1134
+ 4
1135
+ each
1136
+ p
1137
+ 9
1138
+ I
1139
+ 0
1140
+ I
1141
+ 48
1142
+ I
1143
+ 0
1144
+ I
1145
+ 49
1146
+ I
1147
+ 1e
1148
+ I
1149
+ 4a
1150
+ I
1151
+ 28
1152
+ I
1153
+ 4d
1154
+ I
1155
+ 2b
1156
+ x
1157
+ 56
1158
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
1159
+ p
1160
+ 1
1161
+ x
1162
+ 5
1163
+ entry
1164
+ n
1165
+ x
1166
+ 10
1167
+ separator?
1168
+ M
1169
+ 1
1170
+ n
1171
+ n
1172
+ x
1173
+ 10
1174
+ separator?
1175
+ i
1176
+ 11
1177
+ 20
1178
+ 0
1179
+ 48
1180
+ 0
1181
+ 39
1182
+ 1
1183
+ 48
1184
+ 2
1185
+ 83
1186
+ 3
1187
+ 11
1188
+ I
1189
+ 3
1190
+ I
1191
+ 1
1192
+ I
1193
+ 1
1194
+ I
1195
+ 1
1196
+ n
1197
+ p
1198
+ 4
1199
+ x
1200
+ 5
1201
+ strip
1202
+ x
1203
+ 6
1204
+ @rules
1205
+ x
1206
+ 9
1207
+ separator
1208
+ x
1209
+ 2
1210
+ ==
1211
+ p
1212
+ 5
1213
+ I
1214
+ 0
1215
+ I
1216
+ 50
1217
+ I
1218
+ 0
1219
+ I
1220
+ 51
1221
+ I
1222
+ b
1223
+ x
1224
+ 56
1225
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
1226
+ p
1227
+ 1
1228
+ x
1229
+ 4
1230
+ line
1231
+ p
1232
+ 13
1233
+ I
1234
+ 2
1235
+ I
1236
+ 19
1237
+ I
1238
+ 11
1239
+ I
1240
+ 1f
1241
+ I
1242
+ 20
1243
+ I
1244
+ 2c
1245
+ I
1246
+ 2f
1247
+ I
1248
+ 46
1249
+ I
1250
+ 34
1251
+ I
1252
+ 48
1253
+ I
1254
+ 43
1255
+ I
1256
+ 50
1257
+ I
1258
+ 52
1259
+ x
1260
+ 56
1261
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
1262
+ p
1263
+ 0
1264
+ x
1265
+ 13
1266
+ attach_method
1267
+ n
1268
+ x
1269
+ 5
1270
+ Entry
1271
+ n
1272
+ M
1273
+ 1
1274
+ n
1275
+ n
1276
+ x
1277
+ 5
1278
+ Entry
1279
+ i
1280
+ 111
1281
+ 5
1282
+ 66
1283
+ 45
1284
+ 0
1285
+ 1
1286
+ 7
1287
+ 2
1288
+ 7
1289
+ 3
1290
+ 65
1291
+ 67
1292
+ 48
1293
+ 4
1294
+ 49
1295
+ 5
1296
+ 4
1297
+ 15
1298
+ 45
1299
+ 0
1300
+ 6
1301
+ 7
1302
+ 7
1303
+ 7
1304
+ 8
1305
+ 65
1306
+ 67
1307
+ 48
1308
+ 4
1309
+ 49
1310
+ 5
1311
+ 4
1312
+ 15
1313
+ 45
1314
+ 0
1315
+ 9
1316
+ 7
1317
+ 10
1318
+ 7
1319
+ 11
1320
+ 65
1321
+ 67
1322
+ 48
1323
+ 4
1324
+ 49
1325
+ 5
1326
+ 4
1327
+ 15
1328
+ 45
1329
+ 0
1330
+ 12
1331
+ 7
1332
+ 13
1333
+ 7
1334
+ 14
1335
+ 65
1336
+ 67
1337
+ 48
1338
+ 4
1339
+ 49
1340
+ 5
1341
+ 4
1342
+ 15
1343
+ 45
1344
+ 0
1345
+ 15
1346
+ 7
1347
+ 16
1348
+ 65
1349
+ 49
1350
+ 17
1351
+ 2
1352
+ 15
1353
+ 1
1354
+ 15
1355
+ 5
1356
+ 45
1357
+ 16
1358
+ 18
1359
+ 47
1360
+ 49
1361
+ 19
1362
+ 1
1363
+ 15
1364
+ 45
1365
+ 20
1366
+ 21
1367
+ 7
1368
+ 22
1369
+ 64
1370
+ 84
1371
+ 23
1372
+ 9
1373
+ 109
1374
+ 45
1375
+ 0
1376
+ 24
1377
+ 7
1378
+ 25
1379
+ 7
1380
+ 26
1381
+ 65
1382
+ 67
1383
+ 48
1384
+ 4
1385
+ 49
1386
+ 5
1387
+ 4
1388
+ 8
1389
+ 110
1390
+ 1
1391
+ 11
1392
+ I
1393
+ 5
1394
+ I
1395
+ 0
1396
+ I
1397
+ 0
1398
+ I
1399
+ 0
1400
+ n
1401
+ p
1402
+ 27
1403
+ x
1404
+ 8
1405
+ Rubinius
1406
+ n
1407
+ x
1408
+ 10
1409
+ initialize
1410
+ M
1411
+ 1
1412
+ n
1413
+ n
1414
+ x
1415
+ 10
1416
+ initialize
1417
+ i
1418
+ 5
1419
+ 20
1420
+ 0
1421
+ 38
1422
+ 0
1423
+ 11
1424
+ I
1425
+ 2
1426
+ I
1427
+ 1
1428
+ I
1429
+ 1
1430
+ I
1431
+ 1
1432
+ n
1433
+ p
1434
+ 1
1435
+ x
1436
+ 6
1437
+ @opt__
1438
+ p
1439
+ 5
1440
+ I
1441
+ 0
1442
+ I
1443
+ 59
1444
+ I
1445
+ 0
1446
+ I
1447
+ 5a
1448
+ I
1449
+ 5
1450
+ x
1451
+ 56
1452
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
1453
+ p
1454
+ 1
1455
+ x
1456
+ 3
1457
+ opt
1458
+ x
1459
+ 17
1460
+ method_visibility
1461
+ x
1462
+ 15
1463
+ add_defn_method
1464
+ n
1465
+ x
1466
+ 6
1467
+ option
1468
+ M
1469
+ 1
1470
+ n
1471
+ n
1472
+ x
1473
+ 6
1474
+ option
1475
+ i
1476
+ 8
1477
+ 39
1478
+ 0
1479
+ 20
1480
+ 0
1481
+ 49
1482
+ 1
1483
+ 1
1484
+ 11
1485
+ I
1486
+ 3
1487
+ I
1488
+ 1
1489
+ I
1490
+ 1
1491
+ I
1492
+ 1
1493
+ n
1494
+ p
1495
+ 2
1496
+ x
1497
+ 6
1498
+ @opt__
1499
+ x
1500
+ 2
1501
+ []
1502
+ p
1503
+ 5
1504
+ I
1505
+ 0
1506
+ I
1507
+ 5d
1508
+ I
1509
+ 0
1510
+ I
1511
+ 5e
1512
+ I
1513
+ 8
1514
+ x
1515
+ 56
1516
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
1517
+ p
1518
+ 1
1519
+ x
1520
+ 3
1521
+ key
1522
+ n
1523
+ x
1524
+ 11
1525
+ add_helpers
1526
+ M
1527
+ 1
1528
+ n
1529
+ n
1530
+ x
1531
+ 11
1532
+ add_helpers
1533
+ i
1534
+ 19
1535
+ 5
1536
+ 20
1537
+ 0
1538
+ 13
1539
+ 70
1540
+ 10
1541
+ 14
1542
+ 44
1543
+ 43
1544
+ 0
1545
+ 12
1546
+ 49
1547
+ 1
1548
+ 1
1549
+ 47
1550
+ 50
1551
+ 2
1552
+ 0
1553
+ 11
1554
+ I
1555
+ 4
1556
+ I
1557
+ 1
1558
+ I
1559
+ 1
1560
+ I
1561
+ 1
1562
+ n
1563
+ p
1564
+ 3
1565
+ x
1566
+ 4
1567
+ Proc
1568
+ x
1569
+ 14
1570
+ __from_block__
1571
+ x
1572
+ 13
1573
+ instance_eval
1574
+ p
1575
+ 5
1576
+ I
1577
+ 0
1578
+ I
1579
+ 61
1580
+ I
1581
+ 0
1582
+ I
1583
+ 62
1584
+ I
1585
+ 13
1586
+ x
1587
+ 56
1588
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
1589
+ p
1590
+ 1
1591
+ x
1592
+ 5
1593
+ block
1594
+ n
1595
+ x
1596
+ 14
1597
+ method_missing
1598
+ M
1599
+ 1
1600
+ n
1601
+ n
1602
+ x
1603
+ 14
1604
+ method_missing
1605
+ i
1606
+ 43
1607
+ 95
1608
+ 19
1609
+ 2
1610
+ 15
1611
+ 20
1612
+ 1
1613
+ 48
1614
+ 0
1615
+ 78
1616
+ 85
1617
+ 1
1618
+ 9
1619
+ 19
1620
+ 5
1621
+ 47
1622
+ 48
1623
+ 2
1624
+ 8
1625
+ 20
1626
+ 1
1627
+ 15
1628
+ 7
1629
+ 3
1630
+ 20
1631
+ 0
1632
+ 47
1633
+ 48
1634
+ 4
1635
+ 63
1636
+ 2
1637
+ 48
1638
+ 5
1639
+ 19
1640
+ 3
1641
+ 15
1642
+ 5
1643
+ 20
1644
+ 3
1645
+ 47
1646
+ 49
1647
+ 6
1648
+ 1
1649
+ 11
1650
+ I
1651
+ 6
1652
+ I
1653
+ 4
1654
+ I
1655
+ 1
1656
+ I
1657
+ 1
1658
+ I
1659
+ 1
1660
+ p
1661
+ 7
1662
+ x
1663
+ 4
1664
+ size
1665
+ x
1666
+ 1
1667
+ >
1668
+ x
1669
+ 4
1670
+ fail
1671
+ s
1672
+ 1
1673
+ @
1674
+ x
1675
+ 4
1676
+ to_s
1677
+ x
1678
+ 6
1679
+ to_sym
1680
+ x
1681
+ 21
1682
+ instance_variable_get
1683
+ p
1684
+ 9
1685
+ I
1686
+ 0
1687
+ I
1688
+ 65
1689
+ I
1690
+ 4
1691
+ I
1692
+ 67
1693
+ I
1694
+ 15
1695
+ I
1696
+ 68
1697
+ I
1698
+ 23
1699
+ I
1700
+ 69
1701
+ I
1702
+ 2b
1703
+ x
1704
+ 56
1705
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
1706
+ p
1707
+ 4
1708
+ x
1709
+ 4
1710
+ name
1711
+ x
1712
+ 4
1713
+ args
1714
+ x
1715
+ 5
1716
+ block
1717
+ x
1718
+ 2
1719
+ iv
1720
+ n
1721
+ x
1722
+ 18
1723
+ InstanceExecHelper
1724
+ x
1725
+ 11
1726
+ open_module
1727
+ n
1728
+ x
1729
+ 7
1730
+ include
1731
+ x
1732
+ 12
1733
+ RUBY_VERSION
1734
+ n
1735
+ s
1736
+ 3
1737
+ 1.9
1738
+ x
1739
+ 1
1740
+ <
1741
+ n
1742
+ x
1743
+ 13
1744
+ instance_exec
1745
+ M
1746
+ 1
1747
+ n
1748
+ n
1749
+ x
1750
+ 13
1751
+ instance_exec
1752
+ i
1753
+ 236
1754
+ 95
1755
+ 19
1756
+ 1
1757
+ 15
1758
+ 29
1759
+ 78
1760
+ 1
1761
+ 26
1762
+ 93
1763
+ 0
1764
+ 15
1765
+ 45
1766
+ 0
1767
+ 1
1768
+ 48
1769
+ 2
1770
+ 2
1771
+ 17
1772
+ 2
1773
+ 19
1774
+ 2
1775
+ 15
1776
+ 45
1777
+ 0
1778
+ 3
1779
+ 12
1780
+ 49
1781
+ 4
1782
+ 1
1783
+ 15
1784
+ 2
1785
+ 15
1786
+ 78
1787
+ 19
1788
+ 3
1789
+ 15
1790
+ 5
1791
+ 7
1792
+ 5
1793
+ 20
1794
+ 3
1795
+ 47
1796
+ 48
1797
+ 6
1798
+ 63
1799
+ 2
1800
+ 19
1801
+ 4
1802
+ 47
1803
+ 49
1804
+ 7
1805
+ 1
1806
+ 9
1807
+ 65
1808
+ 20
1809
+ 3
1810
+ 79
1811
+ 81
1812
+ 8
1813
+ 19
1814
+ 3
1815
+ 15
1816
+ 68
1817
+ 8
1818
+ 36
1819
+ 1
1820
+ 15
1821
+ 45
1822
+ 9
1823
+ 10
1824
+ 56
1825
+ 11
1826
+ 50
1827
+ 12
1828
+ 0
1829
+ 30
1830
+ 8
1831
+ 94
1832
+ 26
1833
+ 45
1834
+ 0
1835
+ 13
1836
+ 20
1837
+ 2
1838
+ 13
1839
+ 18
1840
+ 2
1841
+ 49
1842
+ 4
1843
+ 1
1844
+ 15
1845
+ 15
1846
+ 27
1847
+ 34
1848
+ 45
1849
+ 0
1850
+ 14
1851
+ 20
1852
+ 2
1853
+ 13
1854
+ 18
1855
+ 2
1856
+ 49
1857
+ 4
1858
+ 1
1859
+ 15
1860
+ 15
1861
+ 15
1862
+ 29
1863
+ 131
1864
+ 1
1865
+ 26
1866
+ 93
1867
+ 1
1868
+ 15
1869
+ 5
1870
+ 20
1871
+ 4
1872
+ 20
1873
+ 0
1874
+ 36
1875
+ 1
1876
+ 47
1877
+ 51
1878
+ 15
1879
+ 1
1880
+ 19
1881
+ 5
1882
+ 30
1883
+ 8
1884
+ 183
1885
+ 26
1886
+ 26
1887
+ 93
1888
+ 2
1889
+ 15
1890
+ 29
1891
+ 150
1892
+ 0
1893
+ 45
1894
+ 9
1895
+ 16
1896
+ 56
1897
+ 17
1898
+ 50
1899
+ 12
1900
+ 0
1901
+ 30
1902
+ 8
1903
+ 177
1904
+ 26
1905
+ 93
1906
+ 3
1907
+ 15
1908
+ 24
1909
+ 13
1910
+ 45
1911
+ 18
1912
+ 19
1913
+ 12
1914
+ 49
1915
+ 20
1916
+ 1
1917
+ 10
1918
+ 167
1919
+ 8
1920
+ 172
1921
+ 15
1922
+ 1
1923
+ 25
1924
+ 8
1925
+ 177
1926
+ 15
1927
+ 92
1928
+ 3
1929
+ 27
1930
+ 34
1931
+ 92
1932
+ 2
1933
+ 27
1934
+ 15
1935
+ 27
1936
+ 34
1937
+ 26
1938
+ 93
1939
+ 4
1940
+ 15
1941
+ 29
1942
+ 201
1943
+ 0
1944
+ 45
1945
+ 9
1946
+ 21
1947
+ 56
1948
+ 22
1949
+ 50
1950
+ 12
1951
+ 0
1952
+ 30
1953
+ 8
1954
+ 228
1955
+ 26
1956
+ 93
1957
+ 5
1958
+ 15
1959
+ 24
1960
+ 13
1961
+ 45
1962
+ 18
1963
+ 23
1964
+ 12
1965
+ 49
1966
+ 20
1967
+ 1
1968
+ 10
1969
+ 218
1970
+ 8
1971
+ 223
1972
+ 15
1973
+ 1
1974
+ 25
1975
+ 8
1976
+ 228
1977
+ 15
1978
+ 92
1979
+ 5
1980
+ 27
1981
+ 34
1982
+ 92
1983
+ 4
1984
+ 27
1985
+ 15
1986
+ 15
1987
+ 20
1988
+ 5
1989
+ 11
1990
+ I
1991
+ 10
1992
+ I
1993
+ 6
1994
+ I
1995
+ 0
1996
+ I
1997
+ 0
1998
+ I
1999
+ 0
2000
+ p
2001
+ 24
2002
+ x
2003
+ 6
2004
+ Thread
2005
+ n
2006
+ x
2007
+ 8
2008
+ critical
2009
+ n
2010
+ x
2011
+ 9
2012
+ critical=
2013
+ s
2014
+ 15
2015
+ __instance_exec
2016
+ x
2017
+ 4
2018
+ to_s
2019
+ x
2020
+ 11
2021
+ respond_to?
2022
+ x
2023
+ 1
2024
+ +
2025
+ x
2026
+ 18
2027
+ InstanceExecHelper
2028
+ n
2029
+ M
2030
+ 1
2031
+ p
2032
+ 2
2033
+ x
2034
+ 9
2035
+ for_block
2036
+ t
2037
+ n
2038
+ x
2039
+ 13
2040
+ instance_exec
2041
+ i
2042
+ 23
2043
+ 5
2044
+ 21
2045
+ 1
2046
+ 4
2047
+ 21
2048
+ 1
2049
+ 1
2050
+ 13
2051
+ 70
2052
+ 10
2053
+ 18
2054
+ 44
2055
+ 43
2056
+ 0
2057
+ 12
2058
+ 49
2059
+ 1
2060
+ 1
2061
+ 47
2062
+ 50
2063
+ 2
2064
+ 1
2065
+ 11
2066
+ I
2067
+ 5
2068
+ I
2069
+ 0
2070
+ I
2071
+ 0
2072
+ I
2073
+ 0
2074
+ I
2075
+ -2
2076
+ p
2077
+ 3
2078
+ x
2079
+ 4
2080
+ Proc
2081
+ x
2082
+ 14
2083
+ __from_block__
2084
+ x
2085
+ 13
2086
+ define_method
2087
+ p
2088
+ 3
2089
+ I
2090
+ 0
2091
+ I
2092
+ 7a
2093
+ I
2094
+ 17
2095
+ x
2096
+ 56
2097
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
2098
+ p
2099
+ 0
2100
+ x
2101
+ 11
2102
+ module_eval
2103
+ n
2104
+ n
2105
+ x
2106
+ 4
2107
+ send
2108
+ n
2109
+ M
2110
+ 1
2111
+ p
2112
+ 2
2113
+ x
2114
+ 9
2115
+ for_block
2116
+ t
2117
+ n
2118
+ x
2119
+ 13
2120
+ instance_exec
2121
+ i
2122
+ 9
2123
+ 5
2124
+ 21
2125
+ 1
2126
+ 4
2127
+ 47
2128
+ 49
2129
+ 0
2130
+ 1
2131
+ 11
2132
+ I
2133
+ 3
2134
+ I
2135
+ 0
2136
+ I
2137
+ 0
2138
+ I
2139
+ 0
2140
+ I
2141
+ -2
2142
+ p
2143
+ 1
2144
+ x
2145
+ 13
2146
+ remove_method
2147
+ p
2148
+ 3
2149
+ I
2150
+ 0
2151
+ I
2152
+ 81
2153
+ I
2154
+ 9
2155
+ x
2156
+ 56
2157
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
2158
+ p
2159
+ 0
2160
+ x
2161
+ 13
2162
+ StandardError
2163
+ n
2164
+ x
2165
+ 3
2166
+ ===
2167
+ n
2168
+ M
2169
+ 1
2170
+ p
2171
+ 2
2172
+ x
2173
+ 9
2174
+ for_block
2175
+ t
2176
+ n
2177
+ x
2178
+ 13
2179
+ instance_exec
2180
+ i
2181
+ 9
2182
+ 5
2183
+ 21
2184
+ 1
2185
+ 4
2186
+ 47
2187
+ 49
2188
+ 0
2189
+ 1
2190
+ 11
2191
+ I
2192
+ 3
2193
+ I
2194
+ 0
2195
+ I
2196
+ 0
2197
+ I
2198
+ 0
2199
+ I
2200
+ -2
2201
+ p
2202
+ 1
2203
+ x
2204
+ 13
2205
+ remove_method
2206
+ p
2207
+ 3
2208
+ I
2209
+ 0
2210
+ I
2211
+ 81
2212
+ I
2213
+ 9
2214
+ x
2215
+ 56
2216
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
2217
+ p
2218
+ 0
2219
+ n
2220
+ p
2221
+ 19
2222
+ I
2223
+ 0
2224
+ I
2225
+ 75
2226
+ I
2227
+ 4
2228
+ I
2229
+ 77
2230
+ I
2231
+ 20
2232
+ I
2233
+ 78
2234
+ I
2235
+ 24
2236
+ I
2237
+ 79
2238
+ I
2239
+ 43
2240
+ I
2241
+ 7a
2242
+ I
2243
+ 4f
2244
+ I
2245
+ 7c
2246
+ I
2247
+ 6c
2248
+ I
2249
+ 7f
2250
+ I
2251
+ 84
2252
+ I
2253
+ 81
2254
+ I
2255
+ e9
2256
+ I
2257
+ 83
2258
+ I
2259
+ ec
2260
+ x
2261
+ 56
2262
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
2263
+ p
2264
+ 6
2265
+ x
2266
+ 4
2267
+ args
2268
+ x
2269
+ 5
2270
+ block
2271
+ x
2272
+ 12
2273
+ old_critical
2274
+ x
2275
+ 1
2276
+ n
2277
+ x
2278
+ 5
2279
+ mname
2280
+ x
2281
+ 3
2282
+ ret
2283
+ p
2284
+ 19
2285
+ I
2286
+ 2
2287
+ I
2288
+ 59
2289
+ I
2290
+ 11
2291
+ I
2292
+ 5d
2293
+ I
2294
+ 20
2295
+ I
2296
+ 61
2297
+ I
2298
+ 2f
2299
+ I
2300
+ 65
2301
+ I
2302
+ 3e
2303
+ I
2304
+ 6c
2305
+ I
2306
+ 4a
2307
+ I
2308
+ 6f
2309
+ I
2310
+ 53
2311
+ I
2312
+ 72
2313
+ I
2314
+ 5d
2315
+ I
2316
+ 75
2317
+ I
2318
+ 6d
2319
+ I
2320
+ 72
2321
+ I
2322
+ 6f
2323
+ x
2324
+ 56
2325
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
2326
+ p
2327
+ 0
2328
+ p
2329
+ 5
2330
+ I
2331
+ 2
2332
+ I
2333
+ 17
2334
+ I
2335
+ 20
2336
+ I
2337
+ 57
2338
+ I
2339
+ 3e
2340
+ x
2341
+ 56
2342
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
2343
+ p
2344
+ 0
2345
+ x
2346
+ 13
2347
+ attach_method
2348
+ p
2349
+ 3
2350
+ I
2351
+ 0
2352
+ I
2353
+ 14
2354
+ I
2355
+ 1f
2356
+ x
2357
+ 56
2358
+ /home/falcone/prg/SwissParser/lib/swissparser/entries.rb
2359
+ p
2360
+ 0