2011-03-02 4 views
1

문법이 주어 졌다고 가정하면 코드 생성 프로세스를 어떻게 설계 할 수 있습니까?yacc을 사용한 코드 생성

start(res)  ::= template. { **how to write stuff here?? Is it true there will only be 

one correct way to write this? And Let's suppose the programming language is also given** } 

답변

2

이것은 많은 책에 기사가 쓰여있는 꽤 광범위한 질문입니다. 찾고있는 일반적인 제목은 Syntax directed translation이며 기본 참조는 Dragon Book

입니다.