Derivation of a string from a Context-Free Grammar
What is a parse tree in the context of context-free grammars?
In a grammar for balanced parentheses, what does the production rule S → (S) represent?
What is the difference between terminal and nonterminal symbols in a CFG?
For the grammar S → aSb | ab, what string would be generated after applying the derivation S → aSb → aaSbb → aaabbb?
In the grammar E → E + T | T; T → T * F | F; F → (E) | id, what precedence relationship does the grammar enforce?
When building a parse tree interactively, what determines which production rule to choose for a selected node?
For the balanced parentheses grammar S → (S) | SS | ε, to generate the string '(())()', which rule should be applied first to the start symbol?
In the string generation grammar S → aSb | ab, what is the relationship between the number of 'a's and 'b's in any generated string?
What happens if you try to build a parse tree for a string that is not in the language generated by the grammar?