iregexp 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b48ffdc37779e3d0a862960ac7fcfd685de4cf59ef24dbc7556557372c5058c5
4
- data.tar.gz: 074b33ad95b11cef1dc154f90eeee325432172d1721da222b08ab178791ae504
3
+ metadata.gz: 5202a3cb240a8a7849884fb8687bde6f35ff10fe4922557a10755c7f056934d3
4
+ data.tar.gz: e3b28251af5dadeecbf3f38ab8f331bdfebb2fe7dd6ee9c8be4ff53188a16c6e
5
5
  SHA512:
6
- metadata.gz: 423cf8699b215e8aa87d6480a15be10d4964e1b51ebe736e721369c0d5a7d499786af1ab600b42d478f1ece5363557cd94c9d7bdc631a28ae7d7d935631eb102
7
- data.tar.gz: aa366d615c0e246d50653a41efa1f852caf596db29952c0864c5fa63a3a9f69e545fc3242ff712726555fff97c5cfaa7e46a52de0420dfb302365563e15066a2
6
+ metadata.gz: e605b8e6d21851018b876857581ebf45ec8e1f4c46b886bf30eb69ea82f15afeb861df545f172f4f154d4d1a5dd4d0f27a73c2f3548c67f85f2cf92cde3363d7
7
+ data.tar.gz: 47b142bfe32057951c99e5f9ee1b311c2dbf88e1e05ee43607754e25e6a8684dd191dc22c41ed7b0e28f004a7ecaef70a70c1ea1481314d99aa5087ba7c8a462
data/iregexp.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "iregexp"
3
- s.version = "0.0.3"
3
+ s.version = "0.1.0"
4
4
  s.summary = "I-Regexp Tools"
5
5
  s.description = %q{iregexp implements converters and miscellaneous tools for I-Regexp}
6
6
  s.author = "Carsten Bormann"
@@ -603,11 +603,11 @@ module IREGEXPGRAMMAR
603
603
  r0.extend(NormalChar0)
604
604
  r0.extend(NormalChar0)
605
605
  else
606
- if has_terminal?(@regexps[gr = '\A[~-􏿿]'] ||= Regexp.new(gr), :regexp, index)
606
+ if has_terminal?(@regexps[gr = '\A[~-퟿]'] ||= Regexp.new(gr), :regexp, index)
607
607
  r7 = true
608
608
  @index += 1
609
609
  else
610
- terminal_parse_failure('[~-􏿿]')
610
+ terminal_parse_failure('[~-퟿]')
611
611
  r7 = nil
612
612
  end
613
613
  if r7
@@ -616,8 +616,22 @@ module IREGEXPGRAMMAR
616
616
  r0.extend(NormalChar0)
617
617
  r0.extend(NormalChar0)
618
618
  else
619
- @index = i0
620
- r0 = nil
619
+ if has_terminal?(@regexps[gr = '\A[-􏿿]'] ||= Regexp.new(gr), :regexp, index)
620
+ r8 = true
621
+ @index += 1
622
+ else
623
+ terminal_parse_failure('[-􏿿]')
624
+ r8 = nil
625
+ end
626
+ if r8
627
+ r8 = SyntaxNode.new(input, (index-1)...index) if r8 == true
628
+ r0 = r8
629
+ r0.extend(NormalChar0)
630
+ r0.extend(NormalChar0)
631
+ else
632
+ @index = i0
633
+ r0 = nil
634
+ end
621
635
  end
622
636
  end
623
637
  end
@@ -1147,11 +1161,11 @@ module IREGEXPGRAMMAR
1147
1161
  r1.extend(CCchar0)
1148
1162
  r1.extend(CCchar0)
1149
1163
  else
1150
- if has_terminal?(@regexps[gr = '\A[\\^-􏿿]'] ||= Regexp.new(gr), :regexp, index)
1164
+ if has_terminal?(@regexps[gr = '\A[\\^-퟿]'] ||= Regexp.new(gr), :regexp, index)
1151
1165
  r4 = true
1152
1166
  @index += 1
1153
1167
  else
1154
- terminal_parse_failure('[\\^-􏿿]')
1168
+ terminal_parse_failure('[\\^-퟿]')
1155
1169
  r4 = nil
1156
1170
  end
1157
1171
  if r4
@@ -1160,8 +1174,22 @@ module IREGEXPGRAMMAR
1160
1174
  r1.extend(CCchar0)
1161
1175
  r1.extend(CCchar0)
1162
1176
  else
1163
- @index = i1
1164
- r1 = nil
1177
+ if has_terminal?(@regexps[gr = '\A[-􏿿]'] ||= Regexp.new(gr), :regexp, index)
1178
+ r5 = true
1179
+ @index += 1
1180
+ else
1181
+ terminal_parse_failure('[-􏿿]')
1182
+ r5 = nil
1183
+ end
1184
+ if r5
1185
+ r5 = SyntaxNode.new(input, (index-1)...index) if r5 == true
1186
+ r1 = r5
1187
+ r1.extend(CCchar0)
1188
+ r1.extend(CCchar0)
1189
+ else
1190
+ @index = i1
1191
+ r1 = nil
1192
+ end
1165
1193
  end
1166
1194
  end
1167
1195
  end
@@ -1169,10 +1197,10 @@ module IREGEXPGRAMMAR
1169
1197
  r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
1170
1198
  r0 = r1
1171
1199
  else
1172
- r5 = _nt_SingleCharEsc
1173
- if r5
1174
- r5 = SyntaxNode.new(input, (index-1)...index) if r5 == true
1175
- r0 = r5
1200
+ r6 = _nt_SingleCharEsc
1201
+ if r6
1202
+ r6 = SyntaxNode.new(input, (index-1)...index) if r6 == true
1203
+ r0 = r6
1176
1204
  else
1177
1205
  @index = i0
1178
1206
  r0 = nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iregexp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-22 00:00:00.000000000 Z
11
+ date: 2023-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubygems_version: 3.4.6
103
+ rubygems_version: 3.4.10
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: I-Regexp Tools