예제 #1
0
 /// <summary>parent: DATA DIVISION</summary>
 /// <param name="context">FILE SECTION</param>
 public override void EnterFileSection(ProgramClassParser.FileSectionContext context)
 {
     var terminal = context.FileSectionHeader();
     var header = terminal != null? (FileSectionHeader)terminal.Symbol : null;
     Enter(new FileSection(header), context);
     //TODO: ( 1 FILE DESCRIPTION ENTRY + N DATA DESCRIPTION ENTRY ) N TIMES
 }
예제 #2
0
        /// <summary>parent: DATA DIVISION</summary>
        /// <param name="context">FILE SECTION</param>
        public override void EnterFileSection(ProgramClassParser.FileSectionContext context)
        {
            var terminal = context.FileSectionHeader();
            var header = terminal != null? (FileSectionHeader)terminal.Symbol : null;
            Enter(new FileSection(header), context);

            //FileDescriptionEntry and DataDescriptionEntry are set with their own methods:
            //EnterFileDescriptionEntry and EnterDataDescriptionEntry
        }