Study resource
Context-free languages exam tips
Study Context-free languages with curriculum-aligned Exam Tips resources, practice links, and exam-focused support.
At a glance
exam tips
Resource type
Topic
Context-free languages
AqaA LevelComputer ScienceTheory of computation
Exam tips
Trace every alternative
When checking a string against BNF or a syntax diagram, follow the rules from the start symbol and consider each alternative and optional route.
A string is valid only if a complete derivation reaches the end while consuming the whole string.
Related topics
