Final answer:
A leftmost derivation is a process of rewriting the given sentence starting from the leftmost non-terminal symbol.
Step-by-step explanation:
A leftmost derivation is a process of rewriting the given sentence starting from the leftmost non-terminal symbol. Here is the leftmost derivation of the sentence "A := A + B * - C" using the given grammar:
- assign → id := expr
- id := expr → A := expr
- expr → expr + term → A := A + term
- term → term * factor → A := A + B * factor
- factor → - id → A := A + B * - C
Now, the sentence has been derived using the leftmost derivation. Each step in the derivation applies a production rule from the grammar and replaces a non-terminal symbol with its corresponding expansion.