XML

CO5570 Anonymous Questions and Answers Keyword Index

This page provides a keyword index to questions and answers. Clicking on a keyword will take you to a page containing all questions and answers for that keyword, grouped by year.

To submit a question, use the anonymous questions page. You may find the keyword index and/or top-level index useful for locating past questions and answers.

Keyword reference for assign

2023

Question 56 (2023):

Submission reference: IN3452

Does the fi need to be followed with a semi colen?

Answer 56:

The grammar will always tell you the answer to that, and it is the grammar you should use to code that check. A conditional is a statement and in the statements rule, every statement is followed by a semicolon. So you should not check for a semicolon in parseConditional but in parseStatements.

Keywords: assign

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
Last modified Tue Jan 23 16:52:10 2024
This document is maintained by David Barnes, to whom any comments and corrections should be addressed.