first-follow

A simple tool for calculating first and follow sets of context free grammars

Features

  • Calculate the First and Follow sets of a given CFG
  • Determine if the given CFG is LL1 or not
  • If CFG is LL1 produce a predictive parser on the specified output file

Usage

Simply build the project with make and then do ./ff.out [outputfile]