Re: [作业] compiler homework5

楼主: sophialiege (with friends)   2007-06-04 10:17:26
补充
判断是不是dup-declared procedure: 只要procedure name一样, 就算dup-declared
判断是不是undeclared procedure: 需要判断procedure, parameter list,
return type是否一致
in sysio.h:
READ (id1: INTEGER) : INTEGER ;
=> real_number : REAL;
READ(real_number); <- undeclared procedure
btw, parameter list中的ids不要到symbol table上register

Links booklink

Contact Us: admin [ a t ] ucptt.com