Examples of Parser


Examples of net.sf.antcontrib.cpptasks.parser.Parser

        //
        CommandLineCompilerConfiguration cmdLineConfig = (CommandLineCompilerConfiguration) config;
        //
        //   parse prototype file to determine last header
        //
        Parser parser = createParser(prototype);
        String[] includes;
        try {
            Reader reader = new BufferedReader(new FileReader(prototype));
            parser.parse(reader);
            includes = parser.getIncludes();
        } catch (IOException ex) {
            throw new BuildException(
                    "Error parsing precompiled header protoype: "
                            + prototype.toString() + ":" + ex.toString());
        }
View Full Code Here

Examples of net.sf.cb2xml.sablecc.parser.Parser

                lexer = new DebugLexer(pbr);
            } else {
                lexer = new Lexer(pbr);
            }
           
            Parser parser = new Parser(lexer);
            Start ast = parser.parse();
            CopybookAnalyzer copyBookAnalyzer = new CopybookAnalyzer(name, parser);
            ast.apply(copyBookAnalyzer);
            document = copyBookAnalyzer.getDocument();
        } catch (Exception e) {
            throw new RuntimeException("fatal parse error\n"
View Full Code Here

Examples of net.sf.flatpack.Parser

    }

    public Object unmarshal(Exchange exchange, InputStream stream) throws Exception {
        InputStreamReader reader = new InputStreamReader(stream);
        try {
            Parser parser = createParser(exchange, reader);
            DataSet dataSet = parser.parse();
            return new DataSetList(dataSet);
        } finally {
            reader.close();
        }
    }
View Full Code Here

Examples of net.sf.jcontracts.codeparser.Parser

        try
        {
            BufferedReader bufferedIs = new BufferedReader(is);
            try
            {
                Parser parser = new Parser(bufferedIs, getName(), new MultipleCompilationUnitState());
                MetaclassFactory metaclassFactory = new MetaclassFactory(getName());
                parser.setMetaclassFactory(metaclassFactory);
                Vector intermediate = parser.getAnnotations();
                for (int i = 0; i < options.size(); i++)
                {
                    if (((Option) options.elementAt(i)).doesProcessing())
                    {
                        Vector files = ((ProcessingOption) options.elementAt(i)).process(intermediate, options,
View Full Code Here

Examples of net.sf.jmatchparser.template.Parser

    if (ps == null) {
      ps = new MatchTemplate(PDARoundtripParser.class, "templates/" + template + ".jmt", "ISO-8859-1");
      ps.enableCoveredStatementsTracing();
      cachedScripts.put(template, ps);
    }
    Parser p = new Parser(ps);
    p.setLocal("lastupdate", lastupdate);
    for (int i = 0; i < extra.length; i += 2) {
      p.setLocal(extra[i], extra[i + 1]);
    }
    return p.parse(new FileInputStream(new File(dir, file)), "windows-1252", unmarshaller, resultClass);
  }
View Full Code Here

Examples of net.sf.kpex.parser.Parser

  {
    if (null != reader)
    {
      try
      {
        parser = new Parser(reader, builtinDb);
      }
      catch (IOException e)
      {
        IO.errmes("unable to build parser for: " + f);
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.script.Parser

        if (DEBUG) _log.fine("Parsing Script: " + script.getName());

        Node node = script.getDocument().getFirstChild();
        String parserClass = "faenor.Faenor" + node.getNodeName() + "Parser";

        Parser parser = null;
        try
        {
            parser = createParser(parserClass);
        }
        catch (ParserNotCreatedException e)
        {
            _log.warning("ERROR: No parser registered for Script: " + parserClass);
            e.printStackTrace();
        }

        if (parser == null)
        {
            _log.warning("Unknown Script Type: " + script.getName());
            return;
        }

        try
        {
            parser.parseScript(node, context);
            _log.fine(script.getName() + "Script Sucessfullty Parsed.");
        }
        catch (Exception e)
        {
            e.printStackTrace();
View Full Code Here

Examples of net.sourceforge.align.parser.Parser

      throw new UnknownParameterException("class");
    }

    filter = FilterDecorators.decorate(filter);

    Parser parser = new AlParser(getIn());
    Formatter formatter = new AlFormatter(getOut());
    List<Alignment> alignmentList = parser.parse();
    alignmentList = filter.apply(alignmentList);
    formatter.format(alignmentList);
  }
View Full Code Here

Examples of net.sourceforge.chaperon.parser.Parser

   * @throws BuildException
   */
  public void execute() throws BuildException
  {
    logger = new AntLogger(this, msgLevel);
    parser = new Parser();
    parser.enableLogging(logger)

    DirectoryScanner scanner;
    String[] list;
    String[] dirs;
View Full Code Here

Examples of net.sourceforge.htmlunit.corejs.javascript.Parser

                final HtmlElement htmlElement) {

        try {
            final CompilerEnvirons environs = new CompilerEnvirons();
            environs.initFromContext(contextFactory_.enterContext());
            final AstNode root = new Parser(environs).parse(sourceCode, sourceName, lineNo_);
            final Map<Integer, Integer> strings = new TreeMap<Integer, Integer>();
            root.visit(new NodeVisitor() {

                public boolean visit(final AstNode node) {
                    if (node instanceof StringLiteral) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.