Package cfml.parsing.cfscript

Examples of cfml.parsing.cfscript.CFScriptParser


      poundSignFilterStream psfstream = new poundSignFilterStream(new CharArrayReader(scriptWithEndTag));
      ANTLRNoCaseReaderStream input = new ANTLRNoCaseReaderStream(psfstream); // +
      //ANTLRNoCaseReaderStream input = new ANTLRNoCaseReaderStream(new CharArrayReader(scriptWithEndTag)); // +
      CFScriptLexer lexer = new CFScriptLexer(input);
      tokenStream = new CommonTokenStream(lexer);
      CFScriptParser parser = new CFScriptParser(tokenStream);
      StdErrReporter errorReporter = new StdErrReporter();
      lexer.setErrorReporter(errorReporter);
      parser.setErrorReporter(errorReporter);
      try {
        // "</CFSCRIPT>")
        // )
        // );
        ParserRuleReturnScope r = parser.scriptBlock();
        CommonTree tree = (CommonTree) r.getTree();
        // first item is EOF, so get kids to get kids
        if (tree == null) {
          ScriptItem errorNode = new ScriptItem(0, 0, 0, "error");
          errorNode.setItemData("Error creating outline: " + parserState.getMessages().toString());
View Full Code Here

TOP

Related Classes of cfml.parsing.cfscript.CFScriptParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.