Exemple #1
0
        protected override void InitializeTranslatorContext()
        {
            TranslatorContext = GMacSymbolTranslatorContext.Create(this);

            Context.PushState(RootGMacAst.RootScope);

            Context.CompilationLog.ReportNormal("AST and compilation context Initialized");
        }
        protected override void InitializeTranslatorContext(LanguageScope parentScope, IEnumerable <LanguageScope> openedScopes)
        {
            Context = GMacSymbolTranslatorContext.Create(this);

            Context.PushState(parentScope, RootParseNode);

            foreach (var scope in openedScopes)
            {
                Context.OpenScope(scope);
            }
        }
        protected override void InitializeTranslatorContext(LanguageScope parentScope)
        {
            Context = GMacSymbolTranslatorContext.Create(this);

            Context.PushState(parentScope, RootParseNode);
        }