regexp_parser 0.4.12 → 0.4.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +5 -0
- data/lib/regexp_parser/scanner.rb +124 -124
- data/lib/regexp_parser/syntax/ruby/2.2.10.rb +13 -0
- data/lib/regexp_parser/syntax/ruby/2.2.rb +2 -2
- data/lib/regexp_parser/syntax/ruby/2.3.7.rb +13 -0
- data/lib/regexp_parser/syntax/ruby/2.3.rb +2 -2
- data/lib/regexp_parser/version.rb +1 -1
- data/test/syntax/ruby/test_files.rb +16 -2
- metadata +54 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b99c449ebf12572a7d538da6339b77d12a10523af0cc9f48f224254e363343ad
|
4
|
+
data.tar.gz: ce40298434963eb5cd1246938eda7f88a2d4482a4494e98e1df1a517d10ce8bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2dd61664c530476a4bfa36f80736b5f77569afb209210be844972ba7fe3af9f7556c864501fb76dcf0c8b5f26b99a18a5abcf3d96ac7a35c4de134f268c525d
|
7
|
+
data.tar.gz: 10f2704069cb9a16b3c366fea576e14371f9588e5d4b134c4f47f06641a4dcb0c6779a0b260589408f114361b5d30cbed7963db2c72912f3097f60cfaaf16e1e
|
data/ChangeLog
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- warn-indent:false; -*-
|
2
2
|
|
3
|
-
# line 1 "/Users/
|
3
|
+
# line 1 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4
4
|
|
5
|
-
# line 771 "/Users/
|
5
|
+
# line 771 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
6
6
|
|
7
7
|
|
8
8
|
# THIS IS A GENERATED FILE, DO NOT EDIT DIRECTLY
|
@@ -96,7 +96,7 @@ class Regexp::Scanner
|
|
96
96
|
in_conditional, conditional_depth, conditional_stack = false, 0, []
|
97
97
|
|
98
98
|
|
99
|
-
# line 99 "/Users/
|
99
|
+
# line 99 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
|
100
100
|
class << self
|
101
101
|
attr_accessor :_re_scanner_trans_keys
|
102
102
|
private :_re_scanner_trans_keys, :_re_scanner_trans_keys=
|
@@ -1672,9 +1672,9 @@ end
|
|
1672
1672
|
self.re_scanner_en_main = 142;
|
1673
1673
|
|
1674
1674
|
|
1675
|
-
# line 864 "/Users/
|
1675
|
+
# line 864 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
1676
1676
|
|
1677
|
-
# line 1677 "/Users/
|
1677
|
+
# line 1677 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
|
1678
1678
|
begin
|
1679
1679
|
p ||= 0
|
1680
1680
|
pe ||= data.length
|
@@ -1685,9 +1685,9 @@ begin
|
|
1685
1685
|
act = 0
|
1686
1686
|
end
|
1687
1687
|
|
1688
|
-
# line 865 "/Users/
|
1688
|
+
# line 865 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
1689
1689
|
|
1690
|
-
# line 1690 "/Users/
|
1690
|
+
# line 1690 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
|
1691
1691
|
begin
|
1692
1692
|
testEof = false
|
1693
1693
|
_slen, _trans, _keys, _inds, _acts, _nacts = nil
|
@@ -1715,7 +1715,7 @@ begin
|
|
1715
1715
|
begin
|
1716
1716
|
ts = p
|
1717
1717
|
end
|
1718
|
-
# line 1718 "/Users/
|
1718
|
+
# line 1718 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
|
1719
1719
|
end
|
1720
1720
|
_keys = cs << 1
|
1721
1721
|
_inds = _re_scanner_index_offsets[cs]
|
@@ -1735,14 +1735,14 @@ ts = p
|
|
1735
1735
|
if _re_scanner_trans_actions[_trans] != 0
|
1736
1736
|
case _re_scanner_trans_actions[_trans]
|
1737
1737
|
when 14 then
|
1738
|
-
# line 134 "/Users/
|
1738
|
+
# line 134 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
1739
1739
|
begin
|
1740
1740
|
|
1741
1741
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
1742
1742
|
raise PrematureEndError.new( text )
|
1743
1743
|
end
|
1744
1744
|
when 7 then
|
1745
|
-
# line 147 "/Users/
|
1745
|
+
# line 147 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
1746
1746
|
begin
|
1747
1747
|
@group_depth -= 1; @in_group = @group_depth > 0 ? true : false end
|
1748
1748
|
when 18 then
|
@@ -1751,7 +1751,7 @@ ts = p
|
|
1751
1751
|
te = p+1
|
1752
1752
|
end
|
1753
1753
|
when 16 then
|
1754
|
-
# line 62 "/Users/
|
1754
|
+
# line 62 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/property.rl"
|
1755
1755
|
begin
|
1756
1756
|
te = p+1
|
1757
1757
|
begin
|
@@ -2528,7 +2528,7 @@ te = p+1
|
|
2528
2528
|
end
|
2529
2529
|
end
|
2530
2530
|
when 69 then
|
2531
|
-
# line 153 "/Users/
|
2531
|
+
# line 153 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2532
2532
|
begin
|
2533
2533
|
te = p+1
|
2534
2534
|
begin
|
@@ -2556,7 +2556,7 @@ te = p+1
|
|
2556
2556
|
end
|
2557
2557
|
end
|
2558
2558
|
when 73 then
|
2559
|
-
# line 166 "/Users/
|
2559
|
+
# line 166 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2560
2560
|
begin
|
2561
2561
|
te = p+1
|
2562
2562
|
begin # special case, emits two tokens
|
@@ -2585,7 +2585,7 @@ te = p+1
|
|
2585
2585
|
end
|
2586
2586
|
end
|
2587
2587
|
when 70 then
|
2588
|
-
# line 180 "/Users/
|
2588
|
+
# line 180 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2589
2589
|
begin
|
2590
2590
|
te = p+1
|
2591
2591
|
begin
|
@@ -2598,7 +2598,7 @@ te = p+1
|
|
2598
2598
|
end
|
2599
2599
|
end
|
2600
2600
|
when 19 then
|
2601
|
-
# line 189 "/Users/
|
2601
|
+
# line 189 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2602
2602
|
begin
|
2603
2603
|
te = p+1
|
2604
2604
|
begin
|
@@ -2606,7 +2606,7 @@ te = p+1
|
|
2606
2606
|
end
|
2607
2607
|
end
|
2608
2608
|
when 72 then
|
2609
|
-
# line 193 "/Users/
|
2609
|
+
# line 193 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2610
2610
|
begin
|
2611
2611
|
te = p+1
|
2612
2612
|
begin
|
@@ -2614,7 +2614,7 @@ te = p+1
|
|
2614
2614
|
end
|
2615
2615
|
end
|
2616
2616
|
when 68 then
|
2617
|
-
# line 197 "/Users/
|
2617
|
+
# line 197 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2618
2618
|
begin
|
2619
2619
|
te = p+1
|
2620
2620
|
begin
|
@@ -2629,7 +2629,7 @@ te = p+1
|
|
2629
2629
|
end
|
2630
2630
|
end
|
2631
2631
|
when 23 then
|
2632
|
-
# line 209 "/Users/
|
2632
|
+
# line 209 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2633
2633
|
begin
|
2634
2634
|
te = p+1
|
2635
2635
|
begin
|
@@ -2645,7 +2645,7 @@ te = p+1
|
|
2645
2645
|
end
|
2646
2646
|
end
|
2647
2647
|
when 22 then
|
2648
|
-
# line 221 "/Users/
|
2648
|
+
# line 221 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2649
2649
|
begin
|
2650
2650
|
te = p+1
|
2651
2651
|
begin
|
@@ -2653,7 +2653,7 @@ te = p+1
|
|
2653
2653
|
end
|
2654
2654
|
end
|
2655
2655
|
when 24 then
|
2656
|
-
# line 225 "/Users/
|
2656
|
+
# line 225 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2657
2657
|
begin
|
2658
2658
|
te = p+1
|
2659
2659
|
begin
|
@@ -2661,7 +2661,7 @@ te = p+1
|
|
2661
2661
|
end
|
2662
2662
|
end
|
2663
2663
|
when 67 then
|
2664
|
-
# line 231 "/Users/
|
2664
|
+
# line 231 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2665
2665
|
begin
|
2666
2666
|
te = p+1
|
2667
2667
|
begin
|
@@ -2669,7 +2669,7 @@ te = p+1
|
|
2669
2669
|
end
|
2670
2670
|
end
|
2671
2671
|
when 66 then
|
2672
|
-
# line 239 "/Users/
|
2672
|
+
# line 239 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2673
2673
|
begin
|
2674
2674
|
te = p+1
|
2675
2675
|
begin
|
@@ -2677,7 +2677,7 @@ te = p+1
|
|
2677
2677
|
end
|
2678
2678
|
end
|
2679
2679
|
when 75 then
|
2680
|
-
# line 201 "/Users/
|
2680
|
+
# line 201 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2681
2681
|
begin
|
2682
2682
|
te = p
|
2683
2683
|
p = p - 1; begin
|
@@ -2696,7 +2696,7 @@ p = p - 1; begin
|
|
2696
2696
|
end
|
2697
2697
|
end
|
2698
2698
|
when 71 then
|
2699
|
-
# line 239 "/Users/
|
2699
|
+
# line 239 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2700
2700
|
begin
|
2701
2701
|
te = p
|
2702
2702
|
p = p - 1; begin
|
@@ -2704,7 +2704,7 @@ p = p - 1; begin
|
|
2704
2704
|
end
|
2705
2705
|
end
|
2706
2706
|
when 21 then
|
2707
|
-
# line 201 "/Users/
|
2707
|
+
# line 201 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2708
2708
|
begin
|
2709
2709
|
begin p = ((te))-1; end
|
2710
2710
|
begin
|
@@ -2723,7 +2723,7 @@ p = p - 1; begin
|
|
2723
2723
|
end
|
2724
2724
|
end
|
2725
2725
|
when 17 then
|
2726
|
-
# line 239 "/Users/
|
2726
|
+
# line 239 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2727
2727
|
begin
|
2728
2728
|
begin p = ((te))-1; end
|
2729
2729
|
begin
|
@@ -2731,7 +2731,7 @@ p = p - 1; begin
|
|
2731
2731
|
end
|
2732
2732
|
end
|
2733
2733
|
when 80 then
|
2734
|
-
# line 247 "/Users/
|
2734
|
+
# line 247 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2735
2735
|
begin
|
2736
2736
|
te = p+1
|
2737
2737
|
begin
|
@@ -2746,7 +2746,7 @@ te = p+1
|
|
2746
2746
|
end
|
2747
2747
|
end
|
2748
2748
|
when 78 then
|
2749
|
-
# line 252 "/Users/
|
2749
|
+
# line 252 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2750
2750
|
begin
|
2751
2751
|
te = p+1
|
2752
2752
|
begin
|
@@ -2772,7 +2772,7 @@ te = p+1
|
|
2772
2772
|
end
|
2773
2773
|
end
|
2774
2774
|
when 84 then
|
2775
|
-
# line 268 "/Users/
|
2775
|
+
# line 268 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2776
2776
|
begin
|
2777
2777
|
te = p+1
|
2778
2778
|
begin
|
@@ -2787,7 +2787,7 @@ te = p+1
|
|
2787
2787
|
end
|
2788
2788
|
end
|
2789
2789
|
when 76 then
|
2790
|
-
# line 278 "/Users/
|
2790
|
+
# line 278 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2791
2791
|
begin
|
2792
2792
|
te = p+1
|
2793
2793
|
begin
|
@@ -2802,7 +2802,7 @@ te = p+1
|
|
2802
2802
|
end
|
2803
2803
|
end
|
2804
2804
|
when 79 then
|
2805
|
-
# line 283 "/Users/
|
2805
|
+
# line 283 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2806
2806
|
begin
|
2807
2807
|
te = p+1
|
2808
2808
|
begin
|
@@ -2819,7 +2819,7 @@ te = p+1
|
|
2819
2819
|
end
|
2820
2820
|
end
|
2821
2821
|
when 83 then
|
2822
|
-
# line 268 "/Users/
|
2822
|
+
# line 268 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2823
2823
|
begin
|
2824
2824
|
te = p
|
2825
2825
|
p = p - 1; begin
|
@@ -2834,7 +2834,7 @@ p = p - 1; begin
|
|
2834
2834
|
end
|
2835
2835
|
end
|
2836
2836
|
when 82 then
|
2837
|
-
# line 273 "/Users/
|
2837
|
+
# line 273 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2838
2838
|
begin
|
2839
2839
|
te = p
|
2840
2840
|
p = p - 1; begin
|
@@ -2849,7 +2849,7 @@ p = p - 1; begin
|
|
2849
2849
|
end
|
2850
2850
|
end
|
2851
2851
|
when 81 then
|
2852
|
-
# line 294 "/Users/
|
2852
|
+
# line 294 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2853
2853
|
begin
|
2854
2854
|
te = p
|
2855
2855
|
p = p - 1; begin
|
@@ -2864,7 +2864,7 @@ p = p - 1; begin
|
|
2864
2864
|
end
|
2865
2865
|
end
|
2866
2866
|
when 27 then
|
2867
|
-
# line 273 "/Users/
|
2867
|
+
# line 273 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2868
2868
|
begin
|
2869
2869
|
begin p = ((te))-1; end
|
2870
2870
|
begin
|
@@ -2916,7 +2916,7 @@ end
|
|
2916
2916
|
end
|
2917
2917
|
end
|
2918
2918
|
when 89 then
|
2919
|
-
# line 304 "/Users/
|
2919
|
+
# line 304 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2920
2920
|
begin
|
2921
2921
|
te = p+1
|
2922
2922
|
begin
|
@@ -2932,7 +2932,7 @@ te = p+1
|
|
2932
2932
|
end
|
2933
2933
|
end
|
2934
2934
|
when 94 then
|
2935
|
-
# line 310 "/Users/
|
2935
|
+
# line 310 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2936
2936
|
begin
|
2937
2937
|
te = p+1
|
2938
2938
|
begin
|
@@ -2947,7 +2947,7 @@ te = p+1
|
|
2947
2947
|
end
|
2948
2948
|
end
|
2949
2949
|
when 86 then
|
2950
|
-
# line 315 "/Users/
|
2950
|
+
# line 315 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2951
2951
|
begin
|
2952
2952
|
te = p+1
|
2953
2953
|
begin
|
@@ -2978,7 +2978,7 @@ te = p+1
|
|
2978
2978
|
end
|
2979
2979
|
end
|
2980
2980
|
when 91 then
|
2981
|
-
# line 336 "/Users/
|
2981
|
+
# line 336 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
2982
2982
|
begin
|
2983
2983
|
te = p+1
|
2984
2984
|
begin
|
@@ -3004,7 +3004,7 @@ te = p+1
|
|
3004
3004
|
end
|
3005
3005
|
end
|
3006
3006
|
when 34 then
|
3007
|
-
# line 352 "/Users/
|
3007
|
+
# line 352 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3008
3008
|
begin
|
3009
3009
|
te = p+1
|
3010
3010
|
begin
|
@@ -3024,7 +3024,7 @@ te = p+1
|
|
3024
3024
|
end
|
3025
3025
|
end
|
3026
3026
|
when 101 then
|
3027
|
-
# line 362 "/Users/
|
3027
|
+
# line 362 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3028
3028
|
begin
|
3029
3029
|
te = p+1
|
3030
3030
|
begin
|
@@ -3039,7 +3039,7 @@ te = p+1
|
|
3039
3039
|
end
|
3040
3040
|
end
|
3041
3041
|
when 104 then
|
3042
|
-
# line 367 "/Users/
|
3042
|
+
# line 367 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3043
3043
|
begin
|
3044
3044
|
te = p+1
|
3045
3045
|
begin
|
@@ -3054,7 +3054,7 @@ te = p+1
|
|
3054
3054
|
end
|
3055
3055
|
end
|
3056
3056
|
when 36 then
|
3057
|
-
# line 376 "/Users/
|
3057
|
+
# line 376 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3058
3058
|
begin
|
3059
3059
|
te = p+1
|
3060
3060
|
begin
|
@@ -3069,7 +3069,7 @@ te = p+1
|
|
3069
3069
|
end
|
3070
3070
|
end
|
3071
3071
|
when 30 then
|
3072
|
-
# line 381 "/Users/
|
3072
|
+
# line 381 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3073
3073
|
begin
|
3074
3074
|
te = p+1
|
3075
3075
|
begin
|
@@ -3094,7 +3094,7 @@ te = p+1
|
|
3094
3094
|
end
|
3095
3095
|
end
|
3096
3096
|
when 33 then
|
3097
|
-
# line 396 "/Users/
|
3097
|
+
# line 396 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3098
3098
|
begin
|
3099
3099
|
te = p+1
|
3100
3100
|
begin
|
@@ -3119,7 +3119,7 @@ te = p+1
|
|
3119
3119
|
end
|
3120
3120
|
end
|
3121
3121
|
when 90 then
|
3122
|
-
# line 411 "/Users/
|
3122
|
+
# line 411 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3123
3123
|
begin
|
3124
3124
|
te = p+1
|
3125
3125
|
begin
|
@@ -3136,7 +3136,7 @@ te = p+1
|
|
3136
3136
|
end
|
3137
3137
|
end
|
3138
3138
|
when 85 then
|
3139
|
-
# line 417 "/Users/
|
3139
|
+
# line 417 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3140
3140
|
begin
|
3141
3141
|
te = p+1
|
3142
3142
|
begin
|
@@ -3151,7 +3151,7 @@ te = p+1
|
|
3151
3151
|
end
|
3152
3152
|
end
|
3153
3153
|
when 93 then
|
3154
|
-
# line 310 "/Users/
|
3154
|
+
# line 310 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3155
3155
|
begin
|
3156
3156
|
te = p
|
3157
3157
|
p = p - 1; begin
|
@@ -3166,7 +3166,7 @@ p = p - 1; begin
|
|
3166
3166
|
end
|
3167
3167
|
end
|
3168
3168
|
when 100 then
|
3169
|
-
# line 362 "/Users/
|
3169
|
+
# line 362 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3170
3170
|
begin
|
3171
3171
|
te = p
|
3172
3172
|
p = p - 1; begin
|
@@ -3181,7 +3181,7 @@ p = p - 1; begin
|
|
3181
3181
|
end
|
3182
3182
|
end
|
3183
3183
|
when 102 then
|
3184
|
-
# line 376 "/Users/
|
3184
|
+
# line 376 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3185
3185
|
begin
|
3186
3186
|
te = p
|
3187
3187
|
p = p - 1; begin
|
@@ -3196,7 +3196,7 @@ p = p - 1; begin
|
|
3196
3196
|
end
|
3197
3197
|
end
|
3198
3198
|
when 96 then
|
3199
|
-
# line 381 "/Users/
|
3199
|
+
# line 381 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3200
3200
|
begin
|
3201
3201
|
te = p
|
3202
3202
|
p = p - 1; begin
|
@@ -3221,7 +3221,7 @@ p = p - 1; begin
|
|
3221
3221
|
end
|
3222
3222
|
end
|
3223
3223
|
when 98 then
|
3224
|
-
# line 396 "/Users/
|
3224
|
+
# line 396 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3225
3225
|
begin
|
3226
3226
|
te = p
|
3227
3227
|
p = p - 1; begin
|
@@ -3246,7 +3246,7 @@ p = p - 1; begin
|
|
3246
3246
|
end
|
3247
3247
|
end
|
3248
3248
|
when 37 then
|
3249
|
-
# line 376 "/Users/
|
3249
|
+
# line 376 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3250
3250
|
begin
|
3251
3251
|
begin p = ((te))-1; end
|
3252
3252
|
begin
|
@@ -3261,7 +3261,7 @@ p = p - 1; begin
|
|
3261
3261
|
end
|
3262
3262
|
end
|
3263
3263
|
when 29 then
|
3264
|
-
# line 381 "/Users/
|
3264
|
+
# line 381 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3265
3265
|
begin
|
3266
3266
|
begin p = ((te))-1; end
|
3267
3267
|
begin
|
@@ -3286,7 +3286,7 @@ p = p - 1; begin
|
|
3286
3286
|
end
|
3287
3287
|
end
|
3288
3288
|
when 32 then
|
3289
|
-
# line 396 "/Users/
|
3289
|
+
# line 396 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3290
3290
|
begin
|
3291
3291
|
begin p = ((te))-1; end
|
3292
3292
|
begin
|
@@ -3342,7 +3342,7 @@ p = p - 1; begin
|
|
3342
3342
|
end
|
3343
3343
|
end
|
3344
3344
|
when 39 then
|
3345
|
-
# line 427 "/Users/
|
3345
|
+
# line 427 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3346
3346
|
begin
|
3347
3347
|
te = p+1
|
3348
3348
|
begin
|
@@ -3352,7 +3352,7 @@ te = p+1
|
|
3352
3352
|
end
|
3353
3353
|
end
|
3354
3354
|
when 105 then
|
3355
|
-
# line 433 "/Users/
|
3355
|
+
# line 433 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3356
3356
|
begin
|
3357
3357
|
te = p+1
|
3358
3358
|
begin
|
@@ -3368,7 +3368,7 @@ te = p+1
|
|
3368
3368
|
end
|
3369
3369
|
end
|
3370
3370
|
when 106 then
|
3371
|
-
# line 433 "/Users/
|
3371
|
+
# line 433 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3372
3372
|
begin
|
3373
3373
|
te = p
|
3374
3374
|
p = p - 1; begin
|
@@ -3384,7 +3384,7 @@ p = p - 1; begin
|
|
3384
3384
|
end
|
3385
3385
|
end
|
3386
3386
|
when 38 then
|
3387
|
-
# line 433 "/Users/
|
3387
|
+
# line 433 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3388
3388
|
begin
|
3389
3389
|
begin p = ((te))-1; end
|
3390
3390
|
begin
|
@@ -3400,7 +3400,7 @@ p = p - 1; begin
|
|
3400
3400
|
end
|
3401
3401
|
end
|
3402
3402
|
when 45 then
|
3403
|
-
# line 446 "/Users/
|
3403
|
+
# line 446 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3404
3404
|
begin
|
3405
3405
|
te = p+1
|
3406
3406
|
begin
|
@@ -3408,7 +3408,7 @@ te = p+1
|
|
3408
3408
|
end
|
3409
3409
|
end
|
3410
3410
|
when 48 then
|
3411
|
-
# line 450 "/Users/
|
3411
|
+
# line 450 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3412
3412
|
begin
|
3413
3413
|
te = p+1
|
3414
3414
|
begin
|
@@ -3421,7 +3421,7 @@ te = p+1
|
|
3421
3421
|
end
|
3422
3422
|
end
|
3423
3423
|
when 47 then
|
3424
|
-
# line 461 "/Users/
|
3424
|
+
# line 461 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3425
3425
|
begin
|
3426
3426
|
te = p+1
|
3427
3427
|
begin
|
@@ -3429,7 +3429,7 @@ te = p+1
|
|
3429
3429
|
end
|
3430
3430
|
end
|
3431
3431
|
when 42 then
|
3432
|
-
# line 465 "/Users/
|
3432
|
+
# line 465 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3433
3433
|
begin
|
3434
3434
|
te = p+1
|
3435
3435
|
begin
|
@@ -3437,7 +3437,7 @@ te = p+1
|
|
3437
3437
|
end
|
3438
3438
|
end
|
3439
3439
|
when 62 then
|
3440
|
-
# line 469 "/Users/
|
3440
|
+
# line 469 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3441
3441
|
begin
|
3442
3442
|
te = p+1
|
3443
3443
|
begin
|
@@ -3445,7 +3445,7 @@ te = p+1
|
|
3445
3445
|
end
|
3446
3446
|
end
|
3447
3447
|
when 60 then
|
3448
|
-
# line 473 "/Users/
|
3448
|
+
# line 473 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3449
3449
|
begin
|
3450
3450
|
te = p+1
|
3451
3451
|
begin
|
@@ -3463,7 +3463,7 @@ te = p+1
|
|
3463
3463
|
end
|
3464
3464
|
end
|
3465
3465
|
when 61 then
|
3466
|
-
# line 493 "/Users/
|
3466
|
+
# line 493 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3467
3467
|
begin
|
3468
3468
|
te = p+1
|
3469
3469
|
begin
|
@@ -3485,7 +3485,7 @@ te = p+1
|
|
3485
3485
|
end
|
3486
3486
|
end
|
3487
3487
|
when 46 then
|
3488
|
-
# line 514 "/Users/
|
3488
|
+
# line 514 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3489
3489
|
begin
|
3490
3490
|
te = p+1
|
3491
3491
|
begin
|
@@ -3504,7 +3504,7 @@ te = p+1
|
|
3504
3504
|
end
|
3505
3505
|
end
|
3506
3506
|
when 8 then
|
3507
|
-
# line 526 "/Users/
|
3507
|
+
# line 526 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3508
3508
|
begin
|
3509
3509
|
te = p+1
|
3510
3510
|
begin
|
@@ -3527,7 +3527,7 @@ te = p+1
|
|
3527
3527
|
end
|
3528
3528
|
end
|
3529
3529
|
when 9 then
|
3530
|
-
# line 559 "/Users/
|
3530
|
+
# line 559 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3531
3531
|
begin
|
3532
3532
|
te = p+1
|
3533
3533
|
begin
|
@@ -3535,7 +3535,7 @@ te = p+1
|
|
3535
3535
|
end
|
3536
3536
|
end
|
3537
3537
|
when 6 then
|
3538
|
-
# line 569 "/Users/
|
3538
|
+
# line 569 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3539
3539
|
begin
|
3540
3540
|
te = p+1
|
3541
3541
|
begin
|
@@ -3548,7 +3548,7 @@ te = p+1
|
|
3548
3548
|
end
|
3549
3549
|
end
|
3550
3550
|
when 10 then
|
3551
|
-
# line 586 "/Users/
|
3551
|
+
# line 586 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3552
3552
|
begin
|
3553
3553
|
te = p+1
|
3554
3554
|
begin
|
@@ -3574,7 +3574,7 @@ te = p+1
|
|
3574
3574
|
end
|
3575
3575
|
end
|
3576
3576
|
when 13 then
|
3577
|
-
# line 638 "/Users/
|
3577
|
+
# line 638 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3578
3578
|
begin
|
3579
3579
|
te = p+1
|
3580
3580
|
begin
|
@@ -3646,7 +3646,7 @@ te = p+1
|
|
3646
3646
|
end
|
3647
3647
|
end
|
3648
3648
|
when 58 then
|
3649
|
-
# line 709 "/Users/
|
3649
|
+
# line 709 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3650
3650
|
begin
|
3651
3651
|
te = p+1
|
3652
3652
|
begin
|
@@ -3658,7 +3658,7 @@ te = p+1
|
|
3658
3658
|
end
|
3659
3659
|
end
|
3660
3660
|
when 54 then
|
3661
|
-
# line 717 "/Users/
|
3661
|
+
# line 717 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3662
3662
|
begin
|
3663
3663
|
te = p+1
|
3664
3664
|
begin
|
@@ -3670,7 +3670,7 @@ te = p+1
|
|
3670
3670
|
end
|
3671
3671
|
end
|
3672
3672
|
when 56 then
|
3673
|
-
# line 725 "/Users/
|
3673
|
+
# line 725 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3674
3674
|
begin
|
3675
3675
|
te = p+1
|
3676
3676
|
begin
|
@@ -3682,7 +3682,7 @@ te = p+1
|
|
3682
3682
|
end
|
3683
3683
|
end
|
3684
3684
|
when 64 then
|
3685
|
-
# line 733 "/Users/
|
3685
|
+
# line 733 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3686
3686
|
begin
|
3687
3687
|
te = p+1
|
3688
3688
|
begin
|
@@ -3690,7 +3690,7 @@ te = p+1
|
|
3690
3690
|
end
|
3691
3691
|
end
|
3692
3692
|
when 4 then
|
3693
|
-
# line 743 "/Users/
|
3693
|
+
# line 743 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3694
3694
|
begin
|
3695
3695
|
te = p+1
|
3696
3696
|
begin
|
@@ -3702,7 +3702,7 @@ te = p+1
|
|
3702
3702
|
end
|
3703
3703
|
end
|
3704
3704
|
when 51 then
|
3705
|
-
# line 608 "/Users/
|
3705
|
+
# line 608 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3706
3706
|
begin
|
3707
3707
|
te = p
|
3708
3708
|
p = p - 1; begin
|
@@ -3711,7 +3711,7 @@ p = p - 1; begin
|
|
3711
3711
|
end
|
3712
3712
|
end
|
3713
3713
|
when 57 then
|
3714
|
-
# line 709 "/Users/
|
3714
|
+
# line 709 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3715
3715
|
begin
|
3716
3716
|
te = p
|
3717
3717
|
p = p - 1; begin
|
@@ -3723,7 +3723,7 @@ p = p - 1; begin
|
|
3723
3723
|
end
|
3724
3724
|
end
|
3725
3725
|
when 53 then
|
3726
|
-
# line 717 "/Users/
|
3726
|
+
# line 717 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3727
3727
|
begin
|
3728
3728
|
te = p
|
3729
3729
|
p = p - 1; begin
|
@@ -3735,7 +3735,7 @@ p = p - 1; begin
|
|
3735
3735
|
end
|
3736
3736
|
end
|
3737
3737
|
when 55 then
|
3738
|
-
# line 725 "/Users/
|
3738
|
+
# line 725 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3739
3739
|
begin
|
3740
3740
|
te = p
|
3741
3741
|
p = p - 1; begin
|
@@ -3747,7 +3747,7 @@ p = p - 1; begin
|
|
3747
3747
|
end
|
3748
3748
|
end
|
3749
3749
|
when 63 then
|
3750
|
-
# line 733 "/Users/
|
3750
|
+
# line 733 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3751
3751
|
begin
|
3752
3752
|
te = p
|
3753
3753
|
p = p - 1; begin
|
@@ -3755,7 +3755,7 @@ p = p - 1; begin
|
|
3755
3755
|
end
|
3756
3756
|
end
|
3757
3757
|
when 59 then
|
3758
|
-
# line 739 "/Users/
|
3758
|
+
# line 739 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3759
3759
|
begin
|
3760
3760
|
te = p
|
3761
3761
|
p = p - 1; begin
|
@@ -3770,7 +3770,7 @@ p = p - 1; begin
|
|
3770
3770
|
end
|
3771
3771
|
end
|
3772
3772
|
when 50 then
|
3773
|
-
# line 751 "/Users/
|
3773
|
+
# line 751 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3774
3774
|
begin
|
3775
3775
|
te = p
|
3776
3776
|
p = p - 1; begin
|
@@ -3782,7 +3782,7 @@ p = p - 1; begin
|
|
3782
3782
|
end
|
3783
3783
|
end
|
3784
3784
|
when 49 then
|
3785
|
-
# line 766 "/Users/
|
3785
|
+
# line 766 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3786
3786
|
begin
|
3787
3787
|
te = p
|
3788
3788
|
p = p - 1; begin
|
@@ -3790,7 +3790,7 @@ p = p - 1; begin
|
|
3790
3790
|
end
|
3791
3791
|
end
|
3792
3792
|
when 5 then
|
3793
|
-
# line 608 "/Users/
|
3793
|
+
# line 608 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3794
3794
|
begin
|
3795
3795
|
begin p = ((te))-1; end
|
3796
3796
|
begin
|
@@ -3799,7 +3799,7 @@ p = p - 1; begin
|
|
3799
3799
|
end
|
3800
3800
|
end
|
3801
3801
|
when 12 then
|
3802
|
-
# line 739 "/Users/
|
3802
|
+
# line 739 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3803
3803
|
begin
|
3804
3804
|
begin p = ((te))-1; end
|
3805
3805
|
begin
|
@@ -3814,7 +3814,7 @@ p = p - 1; begin
|
|
3814
3814
|
end
|
3815
3815
|
end
|
3816
3816
|
when 3 then
|
3817
|
-
# line 766 "/Users/
|
3817
|
+
# line 766 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3818
3818
|
begin
|
3819
3819
|
begin p = ((te))-1; end
|
3820
3820
|
begin
|
@@ -3840,13 +3840,13 @@ end
|
|
3840
3840
|
end
|
3841
3841
|
end
|
3842
3842
|
when 74 then
|
3843
|
-
# line 134 "/Users/
|
3843
|
+
# line 134 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3844
3844
|
begin
|
3845
3845
|
|
3846
3846
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
3847
3847
|
raise PrematureEndError.new( text )
|
3848
3848
|
end
|
3849
|
-
# line 201 "/Users/
|
3849
|
+
# line 201 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3850
3850
|
begin
|
3851
3851
|
te = p
|
3852
3852
|
p = p - 1; begin
|
@@ -3865,13 +3865,13 @@ p = p - 1; begin
|
|
3865
3865
|
end
|
3866
3866
|
end
|
3867
3867
|
when 20 then
|
3868
|
-
# line 134 "/Users/
|
3868
|
+
# line 134 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3869
3869
|
begin
|
3870
3870
|
|
3871
3871
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
3872
3872
|
raise PrematureEndError.new( text )
|
3873
3873
|
end
|
3874
|
-
# line 201 "/Users/
|
3874
|
+
# line 201 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3875
3875
|
begin
|
3876
3876
|
begin p = ((te))-1; end
|
3877
3877
|
begin
|
@@ -3890,13 +3890,13 @@ p = p - 1; begin
|
|
3890
3890
|
end
|
3891
3891
|
end
|
3892
3892
|
when 99 then
|
3893
|
-
# line 134 "/Users/
|
3893
|
+
# line 134 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3894
3894
|
begin
|
3895
3895
|
|
3896
3896
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
3897
3897
|
raise PrematureEndError.new( text )
|
3898
3898
|
end
|
3899
|
-
# line 362 "/Users/
|
3899
|
+
# line 362 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3900
3900
|
begin
|
3901
3901
|
te = p
|
3902
3902
|
p = p - 1; begin
|
@@ -3911,13 +3911,13 @@ p = p - 1; begin
|
|
3911
3911
|
end
|
3912
3912
|
end
|
3913
3913
|
when 103 then
|
3914
|
-
# line 134 "/Users/
|
3914
|
+
# line 134 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3915
3915
|
begin
|
3916
3916
|
|
3917
3917
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
3918
3918
|
raise PrematureEndError.new( text )
|
3919
3919
|
end
|
3920
|
-
# line 376 "/Users/
|
3920
|
+
# line 376 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3921
3921
|
begin
|
3922
3922
|
te = p
|
3923
3923
|
p = p - 1; begin
|
@@ -3932,13 +3932,13 @@ p = p - 1; begin
|
|
3932
3932
|
end
|
3933
3933
|
end
|
3934
3934
|
when 95 then
|
3935
|
-
# line 134 "/Users/
|
3935
|
+
# line 134 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3936
3936
|
begin
|
3937
3937
|
|
3938
3938
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
3939
3939
|
raise PrematureEndError.new( text )
|
3940
3940
|
end
|
3941
|
-
# line 381 "/Users/
|
3941
|
+
# line 381 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3942
3942
|
begin
|
3943
3943
|
te = p
|
3944
3944
|
p = p - 1; begin
|
@@ -3963,13 +3963,13 @@ p = p - 1; begin
|
|
3963
3963
|
end
|
3964
3964
|
end
|
3965
3965
|
when 97 then
|
3966
|
-
# line 134 "/Users/
|
3966
|
+
# line 134 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3967
3967
|
begin
|
3968
3968
|
|
3969
3969
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
3970
3970
|
raise PrematureEndError.new( text )
|
3971
3971
|
end
|
3972
|
-
# line 396 "/Users/
|
3972
|
+
# line 396 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3973
3973
|
begin
|
3974
3974
|
te = p
|
3975
3975
|
p = p - 1; begin
|
@@ -3994,13 +3994,13 @@ p = p - 1; begin
|
|
3994
3994
|
end
|
3995
3995
|
end
|
3996
3996
|
when 28 then
|
3997
|
-
# line 134 "/Users/
|
3997
|
+
# line 134 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
3998
3998
|
begin
|
3999
3999
|
|
4000
4000
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
4001
4001
|
raise PrematureEndError.new( text )
|
4002
4002
|
end
|
4003
|
-
# line 381 "/Users/
|
4003
|
+
# line 381 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4004
4004
|
begin
|
4005
4005
|
begin p = ((te))-1; end
|
4006
4006
|
begin
|
@@ -4025,13 +4025,13 @@ p = p - 1; begin
|
|
4025
4025
|
end
|
4026
4026
|
end
|
4027
4027
|
when 31 then
|
4028
|
-
# line 134 "/Users/
|
4028
|
+
# line 134 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4029
4029
|
begin
|
4030
4030
|
|
4031
4031
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
4032
4032
|
raise PrematureEndError.new( text )
|
4033
4033
|
end
|
4034
|
-
# line 396 "/Users/
|
4034
|
+
# line 396 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4035
4035
|
begin
|
4036
4036
|
begin p = ((te))-1; end
|
4037
4037
|
begin
|
@@ -4056,13 +4056,13 @@ p = p - 1; begin
|
|
4056
4056
|
end
|
4057
4057
|
end
|
4058
4058
|
when 35 then
|
4059
|
-
# line 140 "/Users/
|
4059
|
+
# line 140 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4060
4060
|
begin
|
4061
4061
|
|
4062
4062
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
4063
4063
|
raise InvalidSequenceError.new('sequence', text)
|
4064
4064
|
end
|
4065
|
-
# line 372 "/Users/
|
4065
|
+
# line 372 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4066
4066
|
begin
|
4067
4067
|
te = p+1
|
4068
4068
|
begin
|
@@ -4076,17 +4076,17 @@ te = p+1
|
|
4076
4076
|
end
|
4077
4077
|
end
|
4078
4078
|
when 52 then
|
4079
|
-
# line 147 "/Users/
|
4079
|
+
# line 147 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4080
4080
|
begin
|
4081
4081
|
@group_depth -= 1; @in_group = @group_depth > 0 ? true : false end
|
4082
|
-
# line 146 "/Users/
|
4082
|
+
# line 146 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4083
4083
|
begin
|
4084
4084
|
@group_depth += 1; @in_group = true end
|
4085
4085
|
when 11 then
|
4086
|
-
# line 147 "/Users/
|
4086
|
+
# line 147 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4087
4087
|
begin
|
4088
4088
|
@group_depth -= 1; @in_group = @group_depth > 0 ? true : false end
|
4089
|
-
# line 544 "/Users/
|
4089
|
+
# line 544 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4090
4090
|
begin
|
4091
4091
|
te = p+1
|
4092
4092
|
begin
|
@@ -4094,10 +4094,10 @@ te = p+1
|
|
4094
4094
|
end
|
4095
4095
|
end
|
4096
4096
|
when 44 then
|
4097
|
-
# line 147 "/Users/
|
4097
|
+
# line 147 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4098
4098
|
begin
|
4099
4099
|
@group_depth -= 1; @in_group = @group_depth > 0 ? true : false end
|
4100
|
-
# line 613 "/Users/
|
4100
|
+
# line 613 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4101
4101
|
begin
|
4102
4102
|
te = p+1
|
4103
4103
|
begin
|
@@ -4127,7 +4127,7 @@ te = p+1
|
|
4127
4127
|
begin
|
4128
4128
|
te = p+1
|
4129
4129
|
end
|
4130
|
-
# line 146 "/Users/
|
4130
|
+
# line 146 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4131
4131
|
begin
|
4132
4132
|
@group_depth += 1; @in_group = true end
|
4133
4133
|
when 77 then
|
@@ -4135,7 +4135,7 @@ te = p+1
|
|
4135
4135
|
begin
|
4136
4136
|
te = p+1
|
4137
4137
|
end
|
4138
|
-
# line 278 "/Users/
|
4138
|
+
# line 278 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4139
4139
|
begin
|
4140
4140
|
act = 18; end
|
4141
4141
|
when 26 then
|
@@ -4143,7 +4143,7 @@ act = 18; end
|
|
4143
4143
|
begin
|
4144
4144
|
te = p+1
|
4145
4145
|
end
|
4146
|
-
# line 294 "/Users/
|
4146
|
+
# line 294 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4147
4147
|
begin
|
4148
4148
|
act = 20; end
|
4149
4149
|
when 88 then
|
@@ -4151,7 +4151,7 @@ act = 20; end
|
|
4151
4151
|
begin
|
4152
4152
|
te = p+1
|
4153
4153
|
end
|
4154
|
-
# line 304 "/Users/
|
4154
|
+
# line 304 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4155
4155
|
begin
|
4156
4156
|
act = 21; end
|
4157
4157
|
when 87 then
|
@@ -4159,7 +4159,7 @@ act = 21; end
|
|
4159
4159
|
begin
|
4160
4160
|
te = p+1
|
4161
4161
|
end
|
4162
|
-
# line 310 "/Users/
|
4162
|
+
# line 310 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4163
4163
|
begin
|
4164
4164
|
act = 22; end
|
4165
4165
|
when 2 then
|
@@ -4167,10 +4167,10 @@ act = 22; end
|
|
4167
4167
|
begin
|
4168
4168
|
te = p+1
|
4169
4169
|
end
|
4170
|
-
# line 766 "/Users/
|
4170
|
+
# line 766 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4171
4171
|
begin
|
4172
4172
|
act = 59; end
|
4173
|
-
# line 4173 "/Users/
|
4173
|
+
# line 4173 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
|
4174
4174
|
end
|
4175
4175
|
end
|
4176
4176
|
end
|
@@ -4188,7 +4188,7 @@ ts = nil; end
|
|
4188
4188
|
begin
|
4189
4189
|
act = 0
|
4190
4190
|
end
|
4191
|
-
# line 4191 "/Users/
|
4191
|
+
# line 4191 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
|
4192
4192
|
end
|
4193
4193
|
|
4194
4194
|
if cs == 0
|
@@ -4210,19 +4210,19 @@ act = 0
|
|
4210
4210
|
end
|
4211
4211
|
case _re_scanner_eof_actions[cs]
|
4212
4212
|
when 15 then
|
4213
|
-
# line 54 "/Users/
|
4213
|
+
# line 54 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/property.rl"
|
4214
4214
|
begin
|
4215
4215
|
|
4216
4216
|
raise PrematureEndError.new('unicode property')
|
4217
4217
|
end
|
4218
4218
|
when 14 then
|
4219
|
-
# line 134 "/Users/
|
4219
|
+
# line 134 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4220
4220
|
begin
|
4221
4221
|
|
4222
4222
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
4223
4223
|
raise PrematureEndError.new( text )
|
4224
4224
|
end
|
4225
|
-
# line 4225 "/Users/
|
4225
|
+
# line 4225 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
|
4226
4226
|
end
|
4227
4227
|
end
|
4228
4228
|
|
@@ -4233,7 +4233,7 @@ act = 0
|
|
4233
4233
|
end
|
4234
4234
|
end
|
4235
4235
|
|
4236
|
-
# line 866 "/Users/
|
4236
|
+
# line 866 "/Users/ammar/src/code/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
|
4237
4237
|
|
4238
4238
|
if cs == re_scanner_error
|
4239
4239
|
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require File.expand_path('../2.2.
|
1
|
+
require File.expand_path('../2.2.10', __FILE__)
|
2
2
|
|
3
3
|
module Regexp::Syntax
|
4
4
|
module Ruby
|
5
5
|
# uses the latest 2.2 release
|
6
|
-
class V22 < Regexp::Syntax::Ruby::
|
6
|
+
class V22 < Regexp::Syntax::Ruby::V2210; end
|
7
7
|
end
|
8
8
|
end
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require File.expand_path('../2.3.
|
1
|
+
require File.expand_path('../2.3.7', __FILE__)
|
2
2
|
|
3
3
|
module Regexp::Syntax
|
4
4
|
module Ruby
|
5
5
|
# uses the latest 2.3 release
|
6
|
-
class V23 < Regexp::Syntax::Ruby::
|
6
|
+
class V23 < Regexp::Syntax::Ruby::V237; end
|
7
7
|
end
|
8
8
|
end
|
@@ -198,10 +198,17 @@ class TestSyntaxFiles < Test::Unit::TestCase
|
|
198
198
|
assert syntax.kind_of?(Regexp::Syntax::Ruby::V229)
|
199
199
|
end
|
200
200
|
|
201
|
+
def test_syntax_file_2_2_10
|
202
|
+
syntax = Regexp::Syntax.new 'ruby/2.2.10'
|
203
|
+
|
204
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V229)
|
205
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V2210)
|
206
|
+
end
|
207
|
+
|
201
208
|
def test_syntax_file_2_2_alias
|
202
209
|
syntax = Regexp::Syntax.new 'ruby/2.2'
|
203
210
|
|
204
|
-
assert syntax.kind_of?(Regexp::Syntax::Ruby::
|
211
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V2210)
|
205
212
|
end
|
206
213
|
|
207
214
|
# 2.3 syntax files
|
@@ -254,10 +261,17 @@ class TestSyntaxFiles < Test::Unit::TestCase
|
|
254
261
|
assert syntax.kind_of?(Regexp::Syntax::Ruby::V236)
|
255
262
|
end
|
256
263
|
|
264
|
+
def test_syntax_file_2_3_7
|
265
|
+
syntax = Regexp::Syntax.new 'ruby/2.3.7'
|
266
|
+
|
267
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V236)
|
268
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V237)
|
269
|
+
end
|
270
|
+
|
257
271
|
def test_syntax_file_2_3_alias
|
258
272
|
syntax = Regexp::Syntax.new 'ruby/2.3'
|
259
273
|
|
260
|
-
assert syntax.kind_of?(Regexp::Syntax::Ruby::
|
274
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V237)
|
261
275
|
end
|
262
276
|
|
263
277
|
# 2.4 syntax files
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regexp_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ammar Ali
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A library for tokenizing, lexing, and parsing Ruby regular expressions.
|
14
14
|
email:
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- lib/regexp_parser/syntax/ruby/2.1.rb
|
74
74
|
- lib/regexp_parser/syntax/ruby/2.2.0.rb
|
75
75
|
- lib/regexp_parser/syntax/ruby/2.2.1.rb
|
76
|
+
- lib/regexp_parser/syntax/ruby/2.2.10.rb
|
76
77
|
- lib/regexp_parser/syntax/ruby/2.2.2.rb
|
77
78
|
- lib/regexp_parser/syntax/ruby/2.2.3.rb
|
78
79
|
- lib/regexp_parser/syntax/ruby/2.2.4.rb
|
@@ -89,6 +90,7 @@ files:
|
|
89
90
|
- lib/regexp_parser/syntax/ruby/2.3.4.rb
|
90
91
|
- lib/regexp_parser/syntax/ruby/2.3.5.rb
|
91
92
|
- lib/regexp_parser/syntax/ruby/2.3.6.rb
|
93
|
+
- lib/regexp_parser/syntax/ruby/2.3.7.rb
|
92
94
|
- lib/regexp_parser/syntax/ruby/2.3.rb
|
93
95
|
- lib/regexp_parser/syntax/ruby/2.4.0.rb
|
94
96
|
- lib/regexp_parser/syntax/ruby/2.4.1.rb
|
@@ -212,69 +214,69 @@ signing_key:
|
|
212
214
|
specification_version: 4
|
213
215
|
summary: Scanner, lexer, parser for ruby's regular expressions
|
214
216
|
test_files:
|
215
|
-
- test/
|
216
|
-
- test/
|
217
|
+
- test/expression/test_all.rb
|
218
|
+
- test/expression/test_base.rb
|
219
|
+
- test/expression/test_clone.rb
|
220
|
+
- test/expression/test_conditionals.rb
|
221
|
+
- test/expression/test_free_space.rb
|
222
|
+
- test/expression/test_set.rb
|
223
|
+
- test/expression/test_strfregexp.rb
|
224
|
+
- test/expression/test_subexpression.rb
|
225
|
+
- test/expression/test_tests.rb
|
226
|
+
- test/expression/test_to_h.rb
|
227
|
+
- test/expression/test_to_s.rb
|
228
|
+
- test/expression/test_traverse.rb
|
217
229
|
- test/helpers.rb
|
218
|
-
- test/lexer/
|
230
|
+
- test/lexer/test_all.rb
|
219
231
|
- test/lexer/test_conditionals.rb
|
220
|
-
- test/lexer/
|
232
|
+
- test/lexer/test_keep.rb
|
221
233
|
- test/lexer/test_literals.rb
|
222
|
-
- test/lexer/test_all.rb
|
223
234
|
- test/lexer/test_nesting.rb
|
224
|
-
- test/
|
225
|
-
- test/parser/
|
226
|
-
- test/parser/test_types.rb
|
227
|
-
- test/parser/test_groups.rb
|
235
|
+
- test/lexer/test_refcalls.rb
|
236
|
+
- test/parser/test_all.rb
|
228
237
|
- test/parser/test_alternation.rb
|
229
|
-
- test/parser/test_free_space.rb
|
230
238
|
- test/parser/test_anchors.rb
|
231
|
-
- test/parser/test_escapes.rb
|
232
|
-
- test/parser/test_quantifiers.rb
|
233
|
-
- test/parser/test_keep.rb
|
234
239
|
- test/parser/test_conditionals.rb
|
235
240
|
- test/parser/test_errors.rb
|
241
|
+
- test/parser/test_escapes.rb
|
242
|
+
- test/parser/test_free_space.rb
|
243
|
+
- test/parser/test_groups.rb
|
244
|
+
- test/parser/test_keep.rb
|
245
|
+
- test/parser/test_properties.rb
|
246
|
+
- test/parser/test_quantifiers.rb
|
236
247
|
- test/parser/test_refcalls.rb
|
237
|
-
- test/parser/
|
248
|
+
- test/parser/test_sets.rb
|
249
|
+
- test/parser/test_types.rb
|
250
|
+
- test/scanner/test_all.rb
|
251
|
+
- test/scanner/test_anchors.rb
|
252
|
+
- test/scanner/test_conditionals.rb
|
253
|
+
- test/scanner/test_emojis.rb
|
254
|
+
- test/scanner/test_errors.rb
|
255
|
+
- test/scanner/test_escapes.rb
|
256
|
+
- test/scanner/test_free_space.rb
|
257
|
+
- test/scanner/test_groups.rb
|
258
|
+
- test/scanner/test_keep.rb
|
259
|
+
- test/scanner/test_literals.rb
|
260
|
+
- test/scanner/test_meta.rb
|
261
|
+
- test/scanner/test_properties.rb
|
262
|
+
- test/scanner/test_quantifiers.rb
|
263
|
+
- test/scanner/test_refcalls.rb
|
264
|
+
- test/scanner/test_scripts.rb
|
265
|
+
- test/scanner/test_sets.rb
|
266
|
+
- test/scanner/test_types.rb
|
267
|
+
- test/scanner/test_unicode_blocks.rb
|
238
268
|
- test/support/disable_autotest.rb
|
239
|
-
- test/support/warning_extractor.rb
|
240
269
|
- test/support/runner.rb
|
241
|
-
- test/
|
242
|
-
- test/expression/test_base.rb
|
243
|
-
- test/expression/test_free_space.rb
|
244
|
-
- test/expression/test_to_h.rb
|
245
|
-
- test/expression/test_set.rb
|
246
|
-
- test/expression/test_conditionals.rb
|
247
|
-
- test/expression/test_clone.rb
|
248
|
-
- test/expression/test_tests.rb
|
249
|
-
- test/expression/test_to_s.rb
|
250
|
-
- test/expression/test_traverse.rb
|
251
|
-
- test/expression/test_all.rb
|
252
|
-
- test/expression/test_strfregexp.rb
|
253
|
-
- test/syntax/test_syntax.rb
|
254
|
-
- test/syntax/test_all.rb
|
255
|
-
- test/syntax/ruby/test_2.0.0.rb
|
270
|
+
- test/support/warning_extractor.rb
|
256
271
|
- test/syntax/ruby/test_1.8.rb
|
257
272
|
- test/syntax/ruby/test_1.9.1.rb
|
258
|
-
- test/syntax/ruby/test_files.rb
|
259
|
-
- test/syntax/ruby/test_2.2.0.rb
|
260
273
|
- test/syntax/ruby/test_1.9.3.rb
|
274
|
+
- test/syntax/ruby/test_2.0.0.rb
|
275
|
+
- test/syntax/ruby/test_2.2.0.rb
|
261
276
|
- test/syntax/ruby/test_all.rb
|
277
|
+
- test/syntax/ruby/test_files.rb
|
278
|
+
- test/syntax/test_all.rb
|
279
|
+
- test/syntax/test_syntax.rb
|
262
280
|
- test/test_all.rb
|
263
|
-
- test/
|
264
|
-
- test/
|
265
|
-
- test/scanner/test_scripts.rb
|
266
|
-
- test/scanner/test_emojis.rb
|
267
|
-
- test/scanner/test_types.rb
|
268
|
-
- test/scanner/test_groups.rb
|
269
|
-
- test/scanner/test_meta.rb
|
270
|
-
- test/scanner/test_free_space.rb
|
271
|
-
- test/scanner/test_anchors.rb
|
272
|
-
- test/scanner/test_escapes.rb
|
273
|
-
- test/scanner/test_unicode_blocks.rb
|
274
|
-
- test/scanner/test_quantifiers.rb
|
275
|
-
- test/scanner/test_keep.rb
|
276
|
-
- test/scanner/test_conditionals.rb
|
277
|
-
- test/scanner/test_errors.rb
|
278
|
-
- test/scanner/test_refcalls.rb
|
279
|
-
- test/scanner/test_literals.rb
|
280
|
-
- test/scanner/test_all.rb
|
281
|
+
- test/token/test_all.rb
|
282
|
+
- test/token/test_token.rb
|