Ejemplo n.º 1
0
        public JadeLexerTest() //throws Exception
        {
            FileTemplateLoader loader1 = new FileTemplateLoader(TestFileHelper.getLexerResourcePath(""), "UTF-8");

            lexer1 = new JadeLexer("test_file1.jade", loader1);

            FileTemplateLoader loader2 = new FileTemplateLoader(TestFileHelper.getLexerResourcePath(""), "UTF-8");

            lexer2 = new JadeLexer("empty_file.jade", loader2);
        }
Ejemplo n.º 2
0
        protected JadeLexer initLexer(String fileName)
        {
            FileTemplateLoader loader;

            try
            {
                loader = new FileTemplateLoader(TestFileHelper.getLexerResourcePath(""), "UTF-8");
                return(new JadeLexer(fileName, loader));
            }
            catch (Exception e)
            {
                Trace.WriteLine(e);
                return(null);
            }
        }