한양대 컴파일러 2020 2021 중간고사 기말고사 기출문제 족보
- 최초 등록일
- 2022.03.31
- 최종 저작일
- 2021.06
- 12페이지/ 어도비 PDF
- 가격 3,000원
소개글
한양대 컴파일러 2020 2021 중간고사 기말고사 기출문제 족보입니다.
목차
1. 컴파일러 20 중간
2. 컴파일러 21 중간
3. 컴파일러 21 기말
본문내용
1. (10) Please construct a symbol table of your own program with “NAME, KIND, TYPE, ATTRIBUTES” to meet following constraints: 1) two functions exist, 2) one of the function contains two inner scopes, where the scopes are independent from each other, 3) three variables with same name in different scopes exist, 4) at least one extern variable, const variable, float variable, int variable, char variable are required. You also need to provide the program in C language.
2. (10) (a) Please construct a type derivation to show “if (iszero(succ(pred(0)))) then pred(succ(0)) else succ(pred(0)): int” under the following situation.
(b) Please change “if (iszero(succ(pred(0)))) then pred(succ(0)) else succ(pred(0)): int” to have a type error under the following situation.
참고 자료
없음