Discussion
Parsing expression grammars differ from context free grammars in that their choice operator is
Answer: A
Correct answer: ordered, so the first successful alternative is taken
In a parsing expression grammar the choice operator is ordered: alternatives are tried in sequence and the first that succeeds is committed to. This makes every PEG unambiguous by construction, since there is exactly one parse - but it also means a rule can silently shadow a later alternative if the order is wrong.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development