public override int VisitCompileUnit(firstParser.CompileUnitContext context) { CASTCompileUnit newnode = new CASTCompileUnit(context.GetText(), nodeType.NT_COMPILEUNIT, null, 1); m_root = newnode; m_parents.Push(newnode); this.VisitElementsInContext(context.expr(), m_parentContext, contextType.CT_COMPILEUNIT_EXPRESSIONS); m_parents.Pop(); return(0); }