SNL语言_吉大计算机编译原理课程设计.docVIP

  • 107
  • 0
  • 约6.94万字
  • 约 43页
  • 2018-05-14 发布于天津
  • 举报

SNL语言_吉大计算机编译原理课程设计.doc

/* analyze.h */ #ifndef _ANALYZE_H_ #define _ANALYZE_H_ #define ScopeMaxLevel 20 #include TreeNode.h enum IdKind { typeKind , varKind , procKind }; enum TypeKind { intType , charType , arrayType , recordType , boolType}; enum AccessKind { dir , indir }; struct TypeIR; struct SymbolChain; struct ParamChain { SymbolChain * entry; ParamChain * next; }; struct FieldChain { char idName[10]; TypeIR * unitType; int offset; FieldChain * next; }; struct TypeIR { int size; TypeKind kind; union { struct { TypeIR * indexType;

文档评论(0)

1亿VIP精品文档

相关文档