/// <summary>
        /// Initializes a new instance of the <see cref="T:DotNetAsm.SymbolManager"/> class.
        /// </summary>
        /// <param name="controller">The <see cref="DotNetAsm.IAssemblyController"/> for
        /// this symbol manager.</param>
        public SymbolManager(IAssemblyController controller)
        {
            _controller = controller;

            Variables = new VariableCollection(controller.Options.StringComparar, controller.Evaluator);

            Labels = new LabelCollection(controller.Options.StringComparar);

            Labels.AddCrossCheck(Variables);
            Variables.AddCrossCheck(Labels);

            _anonLines = new Dictionary <int, SourceLine>();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:DotNetAsm.SymbolManager"/> class.
        /// </summary>
        public SymbolManager()
        {
            Variables = new VariableCollection(Assembler.Options.StringComparar, Assembler.Evaluator);

            Labels = new LabelCollection(Assembler.Options.StringComparar);

            Labels.AddCrossCheck(Variables);
            Variables.AddCrossCheck(Labels);

            Labels.SetSymbol("MATH_PI", 3, true);
            Labels.SetSymbol("MATH_E", 2, true);

            _anonPlusLines  = new Dictionary <int, SourceLine>();
            _anonMinusLines = new Dictionary <int, SourceLine>();
        }