Package org.erlide.engine.services.parsing

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


            final IDocument document = textEditor.getDocumentProvider().getDocument(
                    textEditor.getEditorInput());
            final String text = document.get();
            final String scannerName = module.getScannerName();

            final InternalScanner internalScanner = (InternalScanner) ErlangEngine
                    .getInstance().getSimpleScannerService();
            final OtpErlangObject checkAll = internalScanner.checkAll(scannerName, text,
                    true);
            String s;
            if (checkAll instanceof OtpErlangTuple) {
                final OtpErlangTuple t = (OtpErlangTuple) checkAll;
                s = Util.stringValue(t.elementAt(0));
View Full Code Here


    }

    private boolean parse(final String s) {
        final String scannerModuleName = module.getScannerName();
        // XXX implementation detail - how to do it better?
        final InternalScanner internalScanner = (InternalScanner) ErlangEngine
                .getInstance().getSimpleScannerService();
        internalScanner.create(scannerModuleName);
        boolean result = false;
        try {
            ErlangEngine.getInstance().getScannerProviderService().get(scannerModuleName)
                    .initialScan(s, "", false);
            final ParserService parser = ErlangEngine.getInstance().getParserService();
View Full Code Here

TOP

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

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.