/// <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 }
/// <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 }