Ejemplo n.º 1
0
/* Production 69, chapter 3.4, corba 2.3.1 */
  public void struct_type() {
 /*@bgen(jjtree) struct_type */
  ASTstruct_type jjtn000 = new ASTstruct_type(this, IDLParserTreeConstants.JJTSTRUCT_TYPE);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);String ident = "";
    try {
      jj_consume_token(61);
      ident = identifier();
    // recursive definition using a sequence is permitted --> publish symbol already here
    Scope currentScope = m_symbolTable.getCurrentScope();
    currentScope.addSymbol(ident);
    jjtn000.setIdent(ident);
    m_symbolTable.openScope(ident, true); // open a scope for type declaration inside the struct

      jj_consume_token(14);
      member_list();
      jj_consume_token(15);
                          jjtree.closeNodeScope(jjtn000, true);
                          jjtc000 = false;
    m_symbolTable.closeScope();
    } catch (Exception jjte000) {
    if (jjtc000) {
      jjtree.clearNodeScope(jjtn000);
      jjtc000 = false;
    } else {
      jjtree.popNode();
    }
  {if (true) throw ;}
    } finally {
    if (jjtc000) {
      jjtree.closeNodeScope(jjtn000, true);
    }
    }
  }