Clarifications

These clarifications are meant to add more information to the specification without cluttering it.

  1. empty-input:

    Empty input should result in empty output. This is in keeping with all of the output rules defined. There are no print statements so there would be no numbers, newlines or output of any kind.

  2. empty-vector:

    Empty vectors print only brackets. This is in keeping with all of the output rules defined. There are no integers to print between the brackets, so there is no values nor spaces to print. For example:

    []
    
  3. single-value-vector:

    A vector with one value is only the brackets and the value. This is in keeping with all of the output rules defined. There is only one integer. There is no space between the first bracket and the integer and no space between the integer and the second bracket. For example:

    [1]
    
  4. int-div:

    Division is integer division. This means that any decimal portion of a division operation result is truncated (not rounded). No extra work is required: this is the default in C++, RISC-V, ARM, and X86. For example:

    print(5 / 3);
    print((0 - 5) / 3);
    

    produces the following output:

    1
    -1