Re: [作業] compiler homework5

作者: sophialiege (with friends)   2007-06-06 20:16:35
: 1.關於這次的error handling少了constant overflow
: 多了invalid constant...
: spec中的意思應該是不能夠有多餘的leading 0 有的話視為invalid constant
也不能有 trailling 0
: 那constant overflow還需要印error message出來嗎?
就不用了
: 2.像是 1414. 這樣子,是算哪種錯誤?
這樣 matched tokens 會是 integer_const '.' => illegal syntax
: 3.program_name + variable + procedure_name有上限嗎? 像上次的是1024個
看老師的描述, 似乎是要大家去動態allocate
不過, 這是會用到的 procedure 不會超過 10 個
variable 的數量不會多過 MAX__S 10000
procedure name 1 個

Links booklink

Contact Us: admin [ a t ] ucptt.com