Implement frontend of FOLLOW set calculator.