Пример #1
0
 public virtual void Init(LexSettings settings)
 {
     this._reader    = new TokenReader();
     this._errors    = new List <string>();
     this._tokenList = new List <string>();
     this._settings  = settings;
 }
Пример #2
0
 public override void Init(LexSettings settings)
 {
     base.Init(settings);
     this._separatorMap      = new Dictionary <string, string>();
     this._separatorMap[","] = ",";
     if (settings is LexListSettings)
     {
         LexListSettings lexListSettings = (LexListSettings)settings;
         this._separatorMap.Clear();
         this._separatorMap[lexListSettings.Delimeter] = lexListSettings.Delimeter;
     }
 }
Пример #3
0
 public LexArgs(LexSettings settings)
 {
     this.Init(settings);
 }
Пример #4
0
        public static List <string> Parse(string line, LexSettings settings)
        {
            LexArgs lexArgs = new LexArgs(settings);

            return(lexArgs.ParseText(line));
        }