Given a context-free grammar G with S = { a, + } and S ® S + S | a The sentence a+a+a is in L(G) which has two derivations. SÞS+SÞa+SÞa+S+SÞa+a+SÞa+a+a SÞS+SÞS+S+SÞa+S+SÞa+a+SÞa+a+a This language is ambiguous.
บริบทฟรีไวยากรณ์ G ให้กับ S = { A } และ s s s | ®เป็นประโยคแบบมี L ( G ) ซึ่งมีสองแหล่งที่มาÞ . s s s s s s ÞÞÞ A S Þเป็น a s s s ÞÞ s s s s s ÞÞ A S Þเป็น a ภาษานี้ไม่ชัดเจน