public void Check(string content)
        {
            var compilationUnitSyntax = DummyParser.Parse(content);

            new SyntaxVisitorsFactory()
            .Create()
            .ToList()
            .ForEach(compilationUnitSyntax.Accept);
        }
Example #2
0
 // Initialize members
 private void init()
 {
     events = new List<Event>();
     channel_info = new List<ChannelInfo>();
     value_ranges = new List<ValueRange>();
     data_types = new List<DataType>();
     packet_info = new List<PacketInfo>();
     buffer_refs = new List<BufferRef>();
     origins = new List<long>();
     values = new List<Value>();
     column_cache = new Dictionary<int, double[]>();
     tags_ = new List<Tag>();
     opened = false;
     AVAILABLE_FIX_ITEMS = new Dictionary<string, IFix>()
     {
         {"time_offset", new fix_time_offset(this)},
         {"value_offsets", new fix_value_offsets(this)}
     };
     DummyParser dummy = new DummyParser();
     tag_parsers = new Dictionary<string, ITag>(){
         {"CF", new FileTagParser()},
         {"CV", new EventParser(this)},
         {"CK", dummy},
         {"Cv", dummy},
         {"CN", new ChannelInfoParser(this)},
         {"NO", dummy},
         {"CB", dummy},
         {"CT", dummy},
         {"CG", dummy},
         {"CD", new DataTypeParser(this)},
         {"Cb", new BufferRefParse(this)},
         {"CC", dummy},
         {"CZ", dummy},
         {"CP", new PacketInfoParser(this)},
         {"CR", new ValueRangeParser(this)},
         {"ND", dummy},
         {"CS", new OriginParser(this)},
         {"NU", dummy},
         {"CI", new ValueParser(this)},
         {"NT", new TimeParser(this)},
     };
 }
Example #3
0
 public DummyExtension(DummyParser dummyParser)
 {
     _dummyParser = dummyParser;
 }