added basic grammar rule finder (one iteration)