Esempio n. 1
0
        public GramerReader(EgtManager edgManager)
        {
            this._EgtManager = edgManager;

            var topInfo = new Tuple <LALRState, GramerInfo>(edgManager.LALRStateGroup[0], null);

            _GrammerGroup.Push(topInfo);
        }
Esempio n. 2
0
        public static EgtManager CreateFromFile(string filePath)
        {
            using (Context_Old contex = new Context_Old())
            {
                var manager = new EgtManager();

                using (var stream = File.Open(filePath, FileMode.Open))
                {
                    manager.ReadInfo(stream);

                    while (stream.Position < stream.Length)
                    {
                        manager.ReadRecord(stream);
                    }
                }

                Binding.Update();

                return(manager);
            }
        }
Esempio n. 3
0
 public LangManagerBase(string egtPath)
 {
     this._EgtManager = EgtManager.CreateFromFile(egtPath);
 }
Esempio n. 4
0
 public TokenReader(EgtManager egt, string str)
 {
     _Egt = egt;
     _Str = str;
 }