开发者

Code generation using yacc

开发者 https://www.devze.com 2023-02-14 20:43 出处:网络
Suppose the grammar is given, how to design the code generation process? start(res)::= template. { **how to write stuff here?? Is it true there will 开发者_JS百科only be

Suppose the grammar is given, how to design the code generation process?

start(res)       ::= template. { **how to write stuff here?? Is it true there will 开发者_JS百科only be 

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


This is a pretty broad question, with many books an articles written on it. The general heading you're looking for is Syntax directed translation, and the classic reference is the Dragon Book

0

精彩评论

暂无评论...
验证码 换一张
取 消