lib/biodiversity/parser/scientific_name_clean.rb in dimus-biodiversity-0.5.3 vs lib/biodiversity/parser/scientific_name_clean.rb in dimus-biodiversity-0.5.4

- old
+ new

@@ -1589,100 +1589,100 @@ if r17 r1 = r17 r1.extend(Rank0) else if input.index("α", index) == index - r18 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r18 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("α") r18 = nil end if r18 r1 = r18 r1.extend(Rank0) else if input.index("ββ", index) == index - r19 = instantiate_node(SyntaxNode,input, index...(index + 4)) - @index += 4 + r19 = instantiate_node(SyntaxNode,input, index...(index + 2)) + @index += 2 else terminal_parse_failure("ββ") r19 = nil end if r19 r1 = r19 r1.extend(Rank0) else if input.index("β", index) == index - r20 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r20 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("β") r20 = nil end if r20 r1 = r20 r1.extend(Rank0) else if input.index("γ", index) == index - r21 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r21 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("γ") r21 = nil end if r21 r1 = r21 r1.extend(Rank0) else if input.index("δ", index) == index - r22 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r22 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("δ") r22 = nil end if r22 r1 = r22 r1.extend(Rank0) else if input.index("ε", index) == index - r23 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r23 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("ε") r23 = nil end if r23 r1 = r23 r1.extend(Rank0) else if input.index("φ", index) == index - r24 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r24 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("φ") r24 = nil end if r24 r1 = r24 r1.extend(Rank0) else if input.index("θ", index) == index - r25 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r25 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("θ") r25 = nil end if r25 r1 = r25 r1.extend(Rank0) else if input.index("μ", index) == index - r26 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r26 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("μ") r26 = nil end if r26 @@ -3997,122 +3997,122 @@ r0 = r2 else i6, s6 = index, [] i7 = index if input.index("Å", index) == index - r8 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r8 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Å") r8 = nil end if r8 r7 = r8 else if input.index("Ö", index) == index - r9 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r9 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Ö") r9 = nil end if r9 r7 = r9 else if input.index("Á", index) == index - r10 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r10 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Á") r10 = nil end if r10 r7 = r10 else if input.index("Ø", index) == index - r11 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r11 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Ø") r11 = nil end if r11 r7 = r11 else if input.index("Ô", index) == index - r12 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r12 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Ô") r12 = nil end if r12 r7 = r12 else if input.index("Š", index) == index - r13 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r13 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Š") r13 = nil end if r13 r7 = r13 else if input.index("Ś", index) == index - r14 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r14 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Ś") r14 = nil end if r14 r7 = r14 else if input.index("Č", index) == index - r15 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r15 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Č") r15 = nil end if r15 r7 = r15 else if input.index("Ķ", index) == index - r16 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r16 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Ķ") r16 = nil end if r16 r7 = r16 else if input.index("Ł", index) == index - r17 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r17 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Ł") r17 = nil end if r17 r7 = r17 else if input.index("É", index) == index - r18 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r18 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("É") r18 = nil end if r18 r7 = r18 else if input.index("Ž", index) == index - r19 = instantiate_node(SyntaxNode,input, index...(index + 2)) - @index += 2 + r19 = instantiate_node(SyntaxNode,input, index...(index + 1)) + @index += 1 else terminal_parse_failure("Ž") r19 = nil end if r19 @@ -5452,24 +5452,24 @@ return cached end i0 = index if input.index("Æ", index) == index - r1 = instantiate_node(SyntaxNode,input, index...(index + 2)) + r1 = instantiate_node(SyntaxNode,input, index...(index + 1)) r1.extend(CapDigraph0) - @index += 2 + @index += 1 else terminal_parse_failure("Æ") r1 = nil end if r1 r0 = r1 else if input.index("Œ", index) == index - r2 = instantiate_node(SyntaxNode,input, index...(index + 2)) + r2 = instantiate_node(SyntaxNode,input, index...(index + 1)) r2.extend(CapDigraph1) - @index += 2 + @index += 1 else terminal_parse_failure("Œ") r2 = nil end if r2 @@ -5505,24 +5505,24 @@ return cached end i0 = index if input.index("æ", index) == index - r1 = instantiate_node(SyntaxNode,input, index...(index + 2)) + r1 = instantiate_node(SyntaxNode,input, index...(index + 1)) r1.extend(Digraph0) - @index += 2 + @index += 1 else terminal_parse_failure("æ") r1 = nil end if r1 r0 = r1 else if input.index("œ", index) == index - r2 = instantiate_node(SyntaxNode,input, index...(index + 2)) + r2 = instantiate_node(SyntaxNode,input, index...(index + 1)) r2.extend(Digraph1) - @index += 2 + @index += 1 else terminal_parse_failure("œ") r2 = nil end if r2 @@ -5906,12 +5906,12 @@ @index = cached.interval.end if cached return cached end if input.index("×", index) == index - r0 = instantiate_node(SyntaxNode,input, index...(index + 2)) + r0 = instantiate_node(SyntaxNode,input, index...(index + 1)) r0.extend(MultiplicationSign0) - @index += 2 + @index += 1 else terminal_parse_failure("×") r0 = nil end