Exemplo n.º 1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string path = (value as FileInfo).FullName;
            string code = File.ReadAllText(path);

            return(new List <IParseTree>()
            {
                ParserHelpers.GetRootContext(code)
            });
        }
Exemplo n.º 2
0
        public void RootContextTest()
        {
            var code = File.ReadAllText(@"DataBiTemporal\Parser\simple.sql");

            Assert.IsNotNull(ParserHelpers.GetRootContext(code) as BiTempDefParser.CompileUnitContext);
        }