Example #1
0
 public UserStringBuilder(
     GlobalSymbolContext globalSymbols)
 {
     Debug.Assert(globalSymbols != null);
     fHadUndisplayableStringInError = false;
     m_buildingInProgress = false;
     m_globalSymbols = globalSymbols;
 }
Example #2
0
        ////////////////////////////////////////////////////////////////////////////////
        // Construct a compiler. All the real work is done in the Init() routine. This 
        // primary initializes all the sub-components.

        public LangCompiler(CController pCtrl, NameManager pNameMgr)
        {
            Debug.Assert(pCtrl != null);

            _pController = pCtrl;
            GlobalSymbolContext globalSymbolContext = new GlobalSymbolContext(pNameMgr);
            _errorContext = new ErrorHandling(new UserStringBuilder(globalSymbolContext), this, pCtrl.GetErrorFactory());
            _symbolLoader = new SymbolLoader(globalSymbolContext, null, _errorContext);
        }
Example #3
0
 public SymbolLoader(
     GlobalSymbolContext globalSymbols,
     UserStringBuilder userStringBuilder,
     ErrorHandling errorContext
 )
 {
     _nameManager = globalSymbols.GetNameManager();
     PredefinedMembers = new PredefinedMembers(this);
     ErrorContext = errorContext;
     GlobalSymbolContext = globalSymbols;
     Debug.Assert(GlobalSymbolContext != null);
 }
Example #4
0
 public ExprFactory(GlobalSymbolContext globalSymbolContext)
 {
     Debug.Assert(globalSymbolContext != null);
     _globalSymbolContext = globalSymbolContext;
     _constants = new ConstValFactory();
 }
Example #5
0
 public PredefinedTypes getPredefTypes()
 {
     return(GlobalSymbolContext.GetPredefTypes());
 }
Example #6
0
 public MiscSymFactory GetGlobalMiscSymFactory()
 {
     return(GlobalSymbolContext.GetGlobalMiscSymFactory());
 }
 public ExprFactory(GlobalSymbolContext globalSymbolContext)
 {
     Debug.Assert(globalSymbolContext != null);
     _globalSymbolContext = globalSymbolContext;
 }
Example #8
0
 public BSYMMGR getBSymmgr()
 {
     return(GlobalSymbolContext.GetGlobalSymbols());
 }
Example #9
0
 public ExprFactory(GlobalSymbolContext globalSymbolContext)
 {
     Debug.Assert(globalSymbolContext != null);
     _globalSymbolContext = globalSymbolContext;
     _constants           = new ConstValFactory();
 }