click below
click below
Normal Size Small Size show me how
Stack #4658966
| Question | Answer |
|---|---|
| FIRST set | Terminals that can appear at the start of strings derived from a non-terminal |
| FOLLOW set | Terminals that can appear immediately after a non-terminal |
| Syntax analysis | Compiler phase where parsing happens |
| Semantic analysis | Compiler phase that checks meaning (types, scope, etc.) |
| LL(1) parsing | Top-down parsing using FIRST and FOLLOW sets |
| ε (epsilon) | Represents the empty string |
| $ | End-of-input marker added to FOLLOW of start symbol |
| Control Flow Graph (CFG) | Graph representing flow of execution in a program |
| Basic block | Straight-line code with one entry and one exit |
| Node (CFG) | Represents a basic block |
| Edge (CFG) | Represents flow of control between blocks |
| Label | Marker for a position in code |
| Pointer (label reference) | Reference to a specific instruction or block |
| Infix expression | Operator between operands (A + B) |
| Postfix expression | Operator after operands (AB+) |
| Prefix expression | Operator before operands (+AB) |
| Stack | Data structure used in parsing and expression conversion |
| Operator precedence | Priority of operators (e.g., * before +) |
| Associativity | Direction of evaluation (left-to-right or right-to-left) |
| Infix to postfix rule | Use stack to reorder operators |
| "(" handling | Push to stack |
| ")" handling | Pop until "(" is found |
| Postfix evaluation | Use stack to compute values |
| FIRST(A) with ε | A can derive empty string |
| FOLLOW usage | Used when production can derive ε |
| Parsing table | Table used to decide production rules in LL(1) |
| Grammar | Set of production rules for a language |
| Non-terminal | Symbol that can be expanded |
| Terminal | Symbol that appears in final strings |
| Derivation | Process of generating strings from grammar |
| Leftmost derivation | Expand leftmost non-terminal first |
| Rightmost derivation | Expand rightmost non-terminal first |
| Ambiguous grammar | Grammar with more than one parse tree for a string |
| Parse tree | Tree representation of derivation |