Re: [助教] compiler hw5

楼主: sophialiege (with friends)   2007-06-04 03:24:35
※ 引述《cic1033 ()》之铭言:
: 请问几个问题:
: 1.这次有要做procedure吗?spec 1.6(d)有写到procedure call.
只需做 procedure 的宣告与呼叫, 不包括 procedure 的实作
procedure 的宣告只会出现在 included file
procedure 的呼叫只会出现在 BEGIN...END
: 2.BEGIN...END里面还会不会有BEGIN...END?
可能会有, 但没什么用处
: 3.是否要做nest loop?
要, 把 loop 当做 statement 来看
: 4.可否生一些例子看这种语言的写法?

: 5.generate出来的code要丢到哪里?
./pascal- -S xxx.s
^^^^^
放intermediate code
: 谢谢~~~
作者: cic1033   2007-06-04 07:37:00
谢谢爆肝的助教XD~~~

Links booklink

Contact Us: admin [ a t ] ucptt.com