コード例 #1
0
ファイル: AstBuilder.cs プロジェクト: vikinka1233/endless-ql
 public AstBuilder(
     IAstFactory astFactory,
     IDomainItemLocator domainItemLocator)
 {
     m_astFactory        = astFactory;
     m_domainItemLocator = domainItemLocator;
 }
コード例 #2
0
 public BuildAstVisitor(
     IAstFactory astFactory,
     IDomainItemLocator domainItemLocator)
 {
     m_astFactory        = astFactory;
     m_domainItemLocator = domainItemLocator;
 }
コード例 #3
0
ファイル: MacroSession.cs プロジェクト: SealedSun/prx
        /// <summary>
        ///     Creates a new macro expansion session for the specified compiler target.
        /// </summary>
        /// <param name = "target">The target to expand macros in.</param>
        public MacroSession([NotNull] CompilerTarget target)
        {
            if(target == null)
                throw new ArgumentNullException("target");

            _target = target;
            _astFactory = _target.Factory;
            
            _globalSymbols = SymbolStore.Create(_target.Loader.TopLevelSymbols);
            _outerVariables = new ReadOnlyCollectionView<string>(_target.OuterVariables);

            _buildCommandToken = target.Loader.RequestBuildCommands();
        }
コード例 #4
0
ファイル: Parser.cs プロジェクト: matroberts/Compiler
 public Parser(ParsingTable parsingTable, IAstFactory astFactory)
 {
     this.parsingTable = parsingTable;
     this.astFactory   = astFactory;
 }