Package org.erlide.engine.services.parsing

Examples of org.erlide.engine.services.parsing.ParserService


    public boolean internalBuildStructure(final IProgressMonitor pm) {
        setChildren(null);
        final String text = getInitialText();
        if (text != null) {
            final ParserService parser = ErlangEngine.getInstance().getParserService();
            parsed = parser.parse(this, scannerName, !parsed, getFilePath(), text, true);
            return parsed;
        }
        return true;
    }
View Full Code Here


        return this.parse(text, charset);
    }

    private ErlangAST parse(final String contents, final String encoding) {
        ErlangAST result = null;
        final ParserService parser = ErlangEngine.getInstance().getParserService();
        final OtpErlangObject parsed = parser.parse(createScannerName(), contents);
        if (Util.isOk(parsed)) {
            final OtpErlangTuple tuple = (OtpErlangTuple) parsed;
            result = new ErlangAST((OtpErlangTuple) tuple.elementAt(1));
        }
        return result;
View Full Code Here

        internalScanner.create(scannerModuleName);
        boolean result = false;
        try {
            ErlangEngine.getInstance().getScannerProviderService().get(scannerModuleName)
                    .initialScan(s, "", false);
            final ParserService parser = ErlangEngine.getInstance().getParserService();
            result = parser.parse(module, scannerModuleName, false, "", s, false);
        } finally {
            ErlangEngine.getInstance().getScannerProviderService().get(scannerModuleName)
                    .dispose();
        }
        return result;
View Full Code Here

TOP

Related Classes of org.erlide.engine.services.parsing.ParserService

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.