Contents (hide)

Homework Assignment 2

  • Published 11/11/2013, 23:00.
  • Due 02/12/2013, 13:00. Extension2: 08/12/2013 23:55

Files


IMPORTANT: In Exercise 3, the name of the token GTE is defined as "=". It should be ">=".

F.A.Q for Exercise 3:

  1. Q: What do you mean by "tests"? A: Text files you used as inputs to test the scanner.
  2. Q: What should the scanner return for an input like 003? A: INT(0) INT(0) INT(3).
  3. Q: What errors do you expect us to detect? A: Illegal characters and illegal escape sequences in strings. Unterminated comments/strings, inputs like 003 and -0 are optional (no extra points though).
  4. Q: Which escape sequences are we supposed to handle? A: \ for a double quote, t for tab, n and r for newline,
    for backslash.

Tests

The graders used the following script. Feel free to download it and test your own code yourself. (rename to .py file).

Forum

Use the forum below to discuss this assignment.

Note: Please start the subject of your post by stating the exercise you refer to.

10 last forum topics

ZIP hierarchy
2 replies
by arielhal - Friday, 6 December 2013 22:18:45
last update: 8 Dec 2013 17:14:58 by eladitz

by itag - Sunday, 8 December 2013 10:52:30

by eranyo - Sunday, 8 December 2013 02:45:42

EX3: Quoted Strings
12 replies
by razboy - Friday, 29 November 2013 16:14:34
last update: 7 Dec 2013 20:41:37 by omermor

Submisson of EX3
4 replies
by omershe - Friday, 6 December 2013 13:16:29
last update: 6 Dec 2013 19:48:21 by romanm

by aton - Sunday, 1 December 2013 15:31:00
last update: 6 Dec 2013 18:34:30 by barhay

by eranyo - Friday, 6 December 2013 14:09:20
last update: 6 Dec 2013 17:07:55 by gmayer

by razboy - Friday, 6 December 2013 14:51:57
last update: 6 Dec 2013 17:06:59 by gmayer

by abuya - Thursday, 5 December 2013 22:05:16
last update: 6 Dec 2013 12:39:27 by zatulovs

by razboy - Friday, 6 December 2013 01:32:03
last update: 6 Dec 2013 12:37:04 by zatulovs

Show all 94 forum topics



Add new topic