Пример #1
0
        public static ParsingContext CreateInitialContext()
        {
            var initialContext = new ParsingContext
            {
                ErrorHandler     = ErrorHandlerFields.Default,
                TemplateRegistry = new BasicTemplateRegistry(),
                TypeMap          = FastType.RegisteredTypeMap,
                FieldParsers     = new List <IFieldParser>()
            };

            initialContext.AddFieldParser(new ScalarParser());
            initialContext.AddFieldParser(new GroupParser());
            initialContext.AddFieldParser(new SequenceParser());
            initialContext.AddFieldParser(new ComposedDecimalParser());
            initialContext.AddFieldParser(new StringParser());
            initialContext.AddFieldParser(new ByteVectorParser());
            initialContext.AddFieldParser(new TemplateRefParser());
            return(initialContext);
        }
Пример #2
0
        public static ParsingContext CreateInitialContext()
        {
            var initialContext = new ParsingContext
            {
                ErrorHandler     = Error.ErrorHandler_Fields.DEFAULT,
                TemplateRegistry = new BasicTemplateRegistry(),
                TypeMap          = FASTType.RegisteredTypeMap,
                FieldParsers     = new System.Collections.ArrayList()
            };

            initialContext.AddFieldParser(new ScalarParser());
            initialContext.AddFieldParser(new GroupParser());
            initialContext.AddFieldParser(new SequenceParser());
            initialContext.AddFieldParser(new ComposedDecimalParser());
            initialContext.AddFieldParser(new StringParser());
            initialContext.AddFieldParser(new ByteVectorParser());
            initialContext.AddFieldParser(new TemplateRefParser());
            return(initialContext);
        }
 public static ParsingContext CreateInitialContext()
 {
     var initialContext = new ParsingContext
                              {
                                  ErrorHandler = ErrorHandlerFields.Default,
                                  TemplateRegistry = new BasicTemplateRegistry(),
                                  TypeMap = FastType.RegisteredTypeMap,
                                  FieldParsers = new List<IFieldParser>()
                              };
     initialContext.AddFieldParser(new ScalarParser());
     initialContext.AddFieldParser(new GroupParser());
     initialContext.AddFieldParser(new SequenceParser());
     initialContext.AddFieldParser(new ComposedDecimalParser());
     initialContext.AddFieldParser(new StringParser());
     initialContext.AddFieldParser(new ByteVectorParser());
     initialContext.AddFieldParser(new TemplateRefParser());
     return initialContext;
 }
 public static ParsingContext CreateInitialContext()
 {
     var initialContext = new ParsingContext
                              {
                                  ErrorHandler = Error.ErrorHandler_Fields.DEFAULT,
                                  TemplateRegistry = new BasicTemplateRegistry(),
                                  TypeMap = FASTType.RegisteredTypeMap,
                                  FieldParsers = new System.Collections.ArrayList()
                              };
     initialContext.AddFieldParser(new ScalarParser());
     initialContext.AddFieldParser(new GroupParser());
     initialContext.AddFieldParser(new SequenceParser());
     initialContext.AddFieldParser(new ComposedDecimalParser());
     initialContext.AddFieldParser(new StringParser());
     initialContext.AddFieldParser(new ByteVectorParser());
     initialContext.AddFieldParser(new TemplateRefParser());
     return initialContext;
 }