Notices

  • Question 2(c) of the 2023 Exam Paper

    Posted by Jingling Xue Tuesday 23 April 2024, 11:00:09 AM.

    Dear COMP3131/9102 Students,

    The answer to this question should obviously be "false" not "true" as shown in the drafty answer sheet if you have downloaded it before 22 April.

  • Assignment 5 Marked

    Posted by Jingling Xue Saturday 20 April 2024, 08:48:45 AM.

    Dear COMP3131/9102 Students,


    Assignment 5 has been marked. Please let me know if you have any issues with your marks.

  • Past Exam Papers

    Posted by Jingling Xue Friday 12 April 2024, 02:59:40 PM.

    Dear COMP3131/9102 Students,

    You can download a few past exam papers from our course page by clicking the "Exam" button on the left.

  • A clarification for .limit stack size

    Posted by Jingling Xue Friday 12 April 2024, 01:35:36 PM, last modified Friday 12 April 2024, 01:41:07 PM.

    Dear COMP3131/9102 Students,

    When translating a method in a VC program, your compiler will be required to generate a directive:

    `.limit stack XXX`

    Here, XXX indicates the size of the operand stack allocated by the JVM during the execution of the method.

    Given that our VC compilers might produce a range of code sequences without focusing on optimisation, the stack size you calculate may differ from that determined by our reference solution.

    This implies that you may select a different stack size as long as it meets the minimum requirements for your code sequence. Specifically, if the minimum required stack size for your code sequence is 10, any value for XXX less than 10 will cause your code to crash. On the other hand, setting XXX larger than 10 means your compiler is utilizing more memory than necessary. When marking this assignment, we will be lenient and not impose any penalties if XXX exceeds 10 by, for example, 1 or 2.

  • This Thursday's tutorials changed to be online

    Posted by Jingling Xue Wednesday 10 April 2024, 07:24:50 PM.

    Dear COMP3131/9102 Students,

    The tutorials we have tomorrow (11 April) will have to be done online. See below. Thanks for your understanding. --- Jingling

    Hi Jingling,

    I'm still having difficulty walking properly. Could you please inform the students that tomorrow's tutorials will also be conducted online?

    They can use the same links as last week, which are provided below for your convenience:

    Regards,

    Samad

  • A Reference Solution for Checker

    Posted by Jingling Xue Friday 05 April 2024, 08:22:38 PM.

    Dear COMP3131/9102 Students,


    If you want to use a reference solution for the type checker in Assignment 5, you can download it according to the instructions given in the spec of Assignment 5.

  • Assignment 4 Marked

    Posted by Jingling Xue Friday 05 April 2024, 08:10:04 AM.

    Dear COMP3131/9102 Students,


    Assignment 4 has been marked. Please check your marks.

  • Assignment 5 Rleased

    Posted by Jingling Xue Thursday 04 April 2024, 08:04:21 PM.

    Dear COMP3131/9102 Students,


    The spec for Assignment 5 has just been released.

    I will introduce a simple code generation technique that allows you to write a code generator for VC in Assignment 5.

  • Zoom links for today's tutorials (4 April)

    Posted by Jingling Xue Thursday 04 April 2024, 09:22:02 AM.

    Dear COMP3131/9102 Students,


    Here are the same zoom links to be used for today's tutorials (as the tutor has twisted his ankle and won't be able to attend school today). Sorry for the late notice.

    Tutorials:

  • Today's tutorials

    Posted by Jingling Xue Thursday 04 April 2024, 09:12:54 AM.

    Dear COMP3131/9102 Students,

    I received the following message from the tutor, but I am still waiting for a zoom link.

    Hi Jingling,

    Could you please inform the students that tomorrow's tutorials (Thu 4th April) will be held online?

    I've twisted my ankle and won't be able to attend school tomorrow.

    Regards,

    Samad


  • Makeup Class for F13A

    Posted by Jingling Xue Friday 29 March 2024, 09:05:32 PM.

    Dear COMP3131/9102 Students,

    If you are not enrolled in the F13A tutorial class, you can disregard the following information.

    For students in the F13A tutorial class, a makeup session for the week 7 tutorial will be held next Tuesday. If you are unable to attend, you can access the tutorial recording, which is now available from the course page.


    Hi Jingling,

    The recording for wk7 has just been uploaded.

    Here is the Zoom link for the makeup session scheduled for Tuesday at 1pm :

    URL: https://unsw.zoom.us/j/88114755200?pwd=L00vQ1JONndwVytMZGdVQ0tLUTlLdz09

    Meeting ID: 88114755200
    Meeting Passcode: 123456

  • The Bonus Assignment

    Posted by Jingling Xue Thursday 28 March 2024, 02:33:45 PM.

    Dear 3131/9102 Students,

    The bonus assignment for this course has just been released.

  • Code Generation

    Posted by Jingling Xue Tuesday 26 March 2024, 02:21:41 PM.

    Dear COMP3131/9102 Students,

    Over the next two weeks, we will focus on code generation, aiming to assist you in developing a code generator for Assignment 5.

  • Assignment 3: a reference parser solution

    Posted by Jingling Xue Sunday 17 March 2024, 09:13:33 AM, last modified Sunday 17 March 2024, 09:14:40 AM.

    Dear COMP3131/9102 Students,


    A reference solution for the parser developed for Assignment 3 is now available. If your parser is not fully operational and you prefer to use this reference solution for completing your final two assignments, you have the option to do so. You can download it as per the spec of Assignment 4.

    The solution adheres strictly to the spec of Assignment 3, which means it lacks any extra features that might be present in your own parser solution but are not required by the spec.

  • Assignment 3 Marked

    Posted by Jingling Xue Saturday 16 March 2024, 08:04:17 AM.

    Dear COMP3131/9102 Students,

    Assignment 3 has been marked. Please check your marks and let me know if there are any issues with your marks.

  • Assignment 4's Spec Released

    Posted by Jingling Xue Friday 15 March 2024, 10:19:17 AM.

    Dear COMP3131/9102 Student,

    The spec for Assignment 4 has been released. Today's lecture will focus on explaining how to implement a type checker for VC in Assignment 4.

  • Assignment 4

    Posted by Jingling Xue Thursday 14 March 2024, 11:53:53 AM.

    Dear COMP3131/9102 Student,

    The spec for Assignment 4 will be released tomorrow, just before our Friday lecture. As I mentioned in yesterday's lecture, the entire static analyzer component for VC comprises two subphases: identification and type checking. The identification subphase, which I introduced yesterday, has already been completed for you. In Assignment 4, your focus will be solely on implementing the type checking subphase. Your type checker will be a visitor that implements the Visitor interface. Since VC is relatively simple, the process of implementing a type checker will be straightforward conceptually, as will be explained in tomorrow's lecture.

  • Assignment 2 Marked

    Posted by Jingling Xue Wednesday 06 March 2024, 09:23:26 AM.

    Dear COMP3131/9102 Student,

    Assignment 2 has been marked. Please review your marks and inform me of any discrepancies.

    No reference solution will be provided for Assignment 2, as it signifies the first of two stages in the development of a parser for VC. You are now encouraged to enhance your recogniser to ultimately obtain a parser for VC in Assignment 3, which constitutes the second stage of this overarching assignment.

    During today's lecture, we will begin delving into attribute grammars, laying the groundwork for Assignments 4 and 5.

  • Assignment 3 Spec Released

    Posted by Jingling Xue Thursday 29 February 2024, 06:54:18 PM.

    Dear COMP3131/9012 Student,

    The spec for Assignment 3 has just been released.

    As described in the course outline, Assignments 2 and 3 are components of a singular assignment. Thus, the specification for Assignment 3 will be made available prior to the deadline for Assignment 2. This arrangement enables students who complete Assignment 2 ahead of schedule to commence work on Assignment 3 without delay. Moreover, reviewing the specification for Assignment 3 before attending tomorrow's lecture on writing a parser will improve your understanding

  • The tutorials this Thursday will be online again

    Posted by Jingling Xue Tuesday 27 February 2024, 10:05:18 PM.

    Dear COMP3131/9102 Student,

    Unfortunately, the tutor has to conduct this Thursday's tutorials online again.

    > Hi Jingling,

    > I missed my BKK-SYD flight due to delays in my previous flights. > > Consequently, I'll need to conduct this Thursday's tutorials online as well. > I should be in Sydney by the weekend.

    > Could you please inform the students about this?

    > Regards,

    > Samad


    Please use the following zoom links that you used last week:

    Tutorials:




  • Checking your marks

    Posted by Jingling Xue Monday 26 February 2024, 03:48:45 PM.

    Dear COMP3131/9102 Students,
    If you still don't know how to check your marks, I have added some instructions at the beginning of our Assignment page.

  • Reference solution for Assignment 1

    Posted by Jingling Xue Monday 26 February 2024, 11:53:38 AM.

    Dear COMP3131/9102 Student,

    If you want to use our reference scanner solution (available in class files), you can download it from the class account according to the spec for Assignment 2.

  • Class account inaccessible during 12:30pm - 1:30pm

    Posted by Jingling Xue Monday 26 February 2024, 11:45:04 AM.

    Dear COMP3131/9102 Student,

    You may have already encountered the UID clash issue affecting our course account, which has unfortunately hindered our ability to submit assignments via command line. We are pleased to inform you that SS will be addressing this matter today between 12:30 PM and 1:30 PM. However, during this period, access to our class account will be temporarily unavailable.

    We apologise for any inconvenience this may cause and appreciate your understanding as we work to resolve this issue promptly.

    Thank you for your patience.

  • Assignment 1 Marked

    Posted by Jingling Xue Monday 26 February 2024, 10:17:52 AM.

    Dear COMP3131/9102 Student,

    Assignment 1 has been marked. Please review your marks and inform me if you identify any discrepancies or issues with your assessment.

    Please review the feedback provided on the course page.

  • Assignment 1: New Submission Deadline

    Posted by Jingling Xue Saturday 24 February 2024, 09:40:09 PM.

    Dear COMP3131/9102 Student,

    The CSE servers are now operational!


    In light of the CSE servers experiencing downtime shortly before 8 pm this past Friday, coinciding with the submission deadline for Assignment 1, I have decided to extend the deadline to 11 am on Sunday, February 25th. This adjustment is made to accommodate the unexpected technical difficulties and ensure all students have a fair opportunity to submit their work.

    I was unable to make this announcement earlier because WebCMS was also down.






  • Assignment 1 Submission

    Posted by Jingling Xue Friday 23 February 2024, 05:13:24 PM.

    If you have previously submitted your scanner successfully, then you obviously don't have to do anything. No need to resubmit from webcms.

    The issue with UID conflicts has been unpredictable.

  • Assignment 1 Submission

    Posted by Jingling Xue Friday 23 February 2024, 04:50:15 PM.

    Dear COMP3131/9012 Student,

    Some of you might have experienced issues when attempting to submit your scanner via the command line using the following command:

    % give cs3131 scanner Scanner.java

    This issue stems from a UID conflict associated with the class account, an issue that the System Support Staff have been actively working to resolve for the past two weeks.

    Please submit your scanner through webcms instead. Thank you.

  • Spec for Assignment 2

    Posted by Jingling Xue Friday 23 February 2024, 07:44:13 AM.

    I have just released the spec for implementing a recogniser in Assignment 2. I will discuss how to write a recogniser in today's lecture.

  • Today's tutorials

    Posted by Jingling Xue Thursday 22 February 2024, 05:29:02 PM.

    Dear COMP3131/9102 Student,


    Please see this email from the tutor. You should be able to find the zoom link for tomorrow's session (F13) from the course page. If you cannot attend this tutorial, you can watch the tutorial recording later.

    Hi Jingling,

    Today, the first three sessions (i.e., Th9, Th10, and Th11) ran smoothly, but we experienced some connection issues in the last three sessions (i.e., Th12, Th13, and Th14).
    Could you please inform the students who missed today's session that they can attend tomorrow's session at 13 (using the link for F13)?

    Regards,

    Samad

  • F2F Tutorials for Thursday (Week 2 Only) Switched to Online

    Posted by Jingling Xue Monday 19 February 2024, 07:18:46 AM.

    Dear COMP3131/9102 Students,

    If you are registered for a Thursday tutorial, please be aware that the face-to-face (F2F) tutorials for Week 2 (THIS WEEK) ONLY will now be conducted online instead.

    You can find the Zoom meeting links in the subsequent message from your tutor below. I apologise for any inconvenience this may cause.

    --- Jingling


    ============== from the tutor ==============

    Hi Jingling,

    I regret to inform you that, due to unforeseen circumstances, I need to shift this Thursday 's tutorials to online (originally scheduled to be in-person).

    I apologise for any inconvenience this may cause. Below are the Zoom links for the Thursday online sessions:


    Tutorials:


    Regards,

    Samad




  • Lecture Recording for Week 1 (Friday)

    Posted by Jingling Xue Sunday 18 February 2024, 12:28:50 PM, last modified Sunday 18 February 2024, 12:43:52 PM.

    During the lecture after the mid-lecture break this past Friday, I demonstrated how to apply Thompson's algorithm for transforming a regular expression into an NFA using Screen 1, as this is the only one recorded. Meanwhile, I used Screen 2 to display Thompson's construction algorithm. This setup ensures that, when you watch the recording, you have the convenience of referring directly to Thompson's algorithm yourself from our lecture slides (Slides 96--97).

    It is straightforward to know which of the rules (or cases) of Thompson's algorithm is used. For example, when constructing an NFA for the regular expression 0*, where r = 0 and the NFA for N(0) has already been constructed, the rule "RE r*" is applied. As another example, when constructing an NFA for the regular expression "10*", where r=1 and s=0*, and the NFAs for N(1) and N(0*) have been constructed, the rule "RE rs" is applied.

  • Slide 54 on Lookahead

    Posted by Jingling Xue Wednesday 14 February 2024, 09:02:42 PM.

    Today's lecture recording was cut off right as I was about to explain lookahead on Slide 54. I have made a previous recording available directly below today's lecture notes link. You can view those few minutes where I explain this slide.

  • Assignment 1 Spec

    Posted by Jingling Xue Tuesday 13 February 2024, 09:18:09 AM.

    Dear COMP3131/9102 Students,

    The specification for Assignment 1 is now available, including the supporting code for this first assignment. You can download it following the instructions provided in the specification.

  • Zoom links for four online tutorials

    Posted by Jingling Xue Tuesday 13 February 2024, 08:30:34 AM.

    Dear COMP3131/9102 Students,

    You can access the tutorial recordings by selecting "Tutorials" from the menu on the left.


    If you are enrolled in one of the four online tutorials, you can locate your Zoom meeting links on our course page by selecting "Tutorials" from the left-hand menu.

  • Course Web Page Access

    Posted by Jingling Xue Saturday 10 February 2024, 12:59:11 PM.

    If you previously experienced difficulties accessing our course webpage, please try to access it again. The issue should have been resolved by the school.

  • Welcome to COMP3131/9102

    Posted by Jingling Xue Sunday 04 February 2024, 10:24:53 PM.

    Dear COMP3131/9102 Student,

    Welcome aboard!

    Be sure to check out our course outline to see how you can truly make the most of this course.


Back to top

COMP3131/COMP9102 24T1 (Programming Languages and Compilers) is powered by WebCMS3
CRICOS Provider No. 00098G