Beispiel #1
0
 public string Parse(ParserType type)
 {
     var tmp = string.Empty;
     switch (type)
     {
         case ParserType.XCODER:
             var scope = new ScopeParser(Options);
             scope.OnParse += (scope_OnParse);
             var output = scope.Parse();
             var param = new ParamParser(Options);
             output = param.Parse(new StringBuilder(output));
             tmp = output;
             scope.Release();
             param.Release();
             break;
         default:
             throw new ArgumentOutOfRangeException("type");
     }
     Options.Code = null;
     return tmp;
 }