2080 12

CSC262 · 2080 · 5 marks

What is the meaning of the term 'Context Free' in context free grammar? Justify with a suitable example. What is the need of a parse tree?

What is the meaning of the term 'Context Free' in context free grammar? Justify with a suitable example. What is the need of a parse tree? [5]

Theory of ComputationChapter 4: Context Free GrammarIntroduction to Context Free Grammar

--- The term "Context Free" means that the production rules can be applied to a non-terminal symbol regardless of the context (surrounding symbols) in which that non-terminal appears. Formally, a Context Free Grammar is defined as: G = (V, T, P, S) where the production rules are of the form: $$A ...