src/services/Follow.java
BeforeProposed
+1−1
1313 String symbol=rule.get(index); if (!follow.containsKey(symbol)) continue;
1414 var suffix=rule.subList(index+1,rule.size());
1515 if (follow.get(symbol).addAll(First.sequence(suffix,grammar,nullable,first))) changed=true;
16 if (suffix.isEmpty() && follow.get(symbol).addAll(follow.get(entry.getKey()))) changed=true;
16 if (suffix.stream().allMatch(nullable::contains) && follow.get(symbol).addAll(follow.get(entry.getKey()))) changed=true;
1717 }
1818 }
1919 }