Beispiel #1
0
        public XElement Compile()
        {
            IList<Pair<string, string>> tokens = null;

            using (Tokenizer tokenizer = new Tokenizer(this.inputPath))
            {
                tokens = tokenizer.GetTokens();
            }

            tokens=  tokens.Where(t => t.Value1 != "Comment").ToList();

            CompilationEngine compilationEngine = new CompilationEngine(tokens);
            XElement xmlCompiledClass = compilationEngine.CompileClass();

            return xmlCompiledClass;
        }
Beispiel #2
0
        public XElement Compile()
        {
            IList <Pair <string, string> > tokens = null;

            using (Tokenizer tokenizer = new Tokenizer(this.inputPath))
            {
                tokens = tokenizer.GetTokens();
            }

            tokens = tokens.Where(t => t.Value1 != "Comment").ToList();

            CompilationEngine compilationEngine = new CompilationEngine(tokens);
            XElement          xmlCompiledClass  = compilationEngine.CompileClass();

            return(xmlCompiledClass);
        }