示例#1
0
文件: astree.cpp 项目: camargo/oc
astree* new_proto (int symbol,
                   astree* a,
                   astree* b) {
   astree* t = new_astree(symbol,
                          a->filenr,
                          a->linenr,
                          a->offset,
                          "");
   return adopt2(t, a, b);
}
示例#2
0
astree adopt2sym (astree root, astree left, astree right, int symbol) {
   root = adopt2(root, left, right);
   root->symbol = symbol;
   return root;
}