initial commit
This commit is contained in:
19
src/cgen.h
Normal file
19
src/cgen.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/****************************************************/
|
||||
/* File: cgen.h */
|
||||
/* The code generator interface to the TINY compiler*/
|
||||
/* Compiler Construction: Principles and Practice */
|
||||
/* Kenneth C. Louden */
|
||||
/****************************************************/
|
||||
|
||||
#ifndef _CGEN_H_
|
||||
#define _CGEN_H_
|
||||
|
||||
/* Procedure codeGen generates code to a code
|
||||
* file by traversal of the syntax tree. The
|
||||
* second parameter (codefile) is the file name
|
||||
* of the code file, and is used to print the
|
||||
* file name as a comment in the code file
|
||||
*/
|
||||
void codeGen(TreeNode * syntaxTree, char * codefile);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user