In the context of computer science, particularly in compiler design and formal language theory, "First" and "Follow" sets are concepts used in the analysis of context-free grammars. The **First set** of a symbol (which can be a terminal or non-terminal) is a set of terminals that begin the strings derivable from that symbol. More formally: - For a terminal symbol, the First set is simply the terminal itself.
New to topics? Read the docs here!