public void EnterEnterCompilerStatement(Token enterToken, Token languageName, Token routineName)
        {
            EnterDirective enterDirective = (EnterDirective)CompilerDirective;

            enterDirective.LanguageName = languageName.Text;
            if (routineName != null)
            {
                enterDirective.RoutineName = routineName.Text;
            }
        }
Beispiel #2
0
        public override void EnterEnterCompilerStatement(CobolCompilerDirectivesParser.EnterCompilerStatementContext context)
        {
            EnterDirective enterDirective = new EnterDirective();

            CompilerDirective = enterDirective;

            if (context.languageName() != null)
            {
                string languageName = null;
                TryGetUserDefinedWord(context.languageName().UserDefinedWord(), ref languageName);
                enterDirective.LanguageName = languageName;
            }
            if (context.routineName() != null)
            {
                string routineName = null;
                TryGetUserDefinedWord(context.routineName().UserDefinedWord(), ref routineName);
                enterDirective.RoutineName = routineName;
            }
        }
        public virtual void StartEnterCompilerStatement()
        {
            EnterDirective enterDirective = new EnterDirective();

            CompilerDirective = enterDirective;
        }