juice500ml / cminus

C- Compiler Project for Sogang Univ. (17' Spring)
5 stars 1 forks source link

[Project 3] TraceAnalyze 변수 #11

Closed juice500ml closed 7 years ago

juice500ml commented 7 years ago

https://github.com/juice500ml/compiler-sogang/blob/master/src/analyze.c#L187-L190 왜 TraceAnalyze 변수가 안쓰인거?

taeguk commented 7 years ago

tiny에서는 scope가 없어서 원래 마지막에 1번만 symbol table을 출력해주면 됐었는데, C-에서는 scope마다 symbol table을 출력해주므로, 이미 insertNode 내부에서 출력되서 마지막에 출력할 필요가 없음.

taeseunglee commented 7 years ago

ㅋㅋㅋㅋㅋㅋ 이거 태국이가함ㅋㅋㅋㅋㅋㅋㅋ

juice500ml commented 7 years ago

insertNode 내부에서 출력되는 게 없는듯한데..? @taeguk

taeguk commented 7 years ago

printSymtab 있을텐데