0
$\begingroup$

How is the following grammar ambiguous

stmt -> if expr then stmt | matched_stmt

matched_stmt -> if expr then matched_stmt else stmt | terminal

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.