VibraXX
Live Quiz Arena
🎁 1 Free Round Daily
⚡ Enter Arena
HomeCategoriesLanguage & CommunicationQuestion
Question
Language & Communication

Why does a recursive descent parser, designed for a context-free grammar, sometimes fail to produce a correct parse tree for sentences exhibiting center-embedding in natural language syntax?

A)Insufficient lexicon size is reached
B)Stack overflow during recursive calls
C)Ambiguous grammar definitions exist
D)Excessive tokenization preprocessing occurred

💡 Explanation

The recursive descent parser fails because center-embedding leads to deeply nested recursive calls that consume excessive stack space, causing a stack overflow. Therefore, parsing fails because of stack overflow, rather than insufficient lexicon, grammar ambiguity, or preprocessing issues.

🏆 Up to £1,000 monthly prize pool

Ready for the live challenge? Join the next global round now.
*Terms apply. Skill-based competition.

⚡ Enter Arena

Related Questions

Browse Language & Communication