Exemplo n.º 1
0
        private Token?head;             //TODO: Make this make sense

        public EAParser(Dictionary <string, IList <Raw> > raws, Log log, DirectiveHandler directiveHandler)
        {
            GlobalScope           = new ImmutableStack <Closure>(new BaseClosure(this), ImmutableStack <Closure> .Nil);
            pastOffsets           = new Stack <Tuple <int, bool> >();
            protectedRegions      = new List <Tuple <int, int, Location> >();
            this.log              = log;
            Raws                  = raws;
            CurrentOffset         = 0;
            validOffset           = true;
            offsetInitialized     = false;
            Macros                = new MacroCollection(this);
            Definitions           = new Dictionary <string, Definition>();
            Inclusion             = ImmutableStack <bool> .Nil;
            this.directiveHandler = directiveHandler;

            Pool = new Pool();
        }
Exemplo n.º 2
0
 public MacroFolder(string Name)
 {
     this.Name_    = Name;
       this.Folders_ = new MacroFolderCollection();
       this.Macros_  = new MacroCollection();
 }