Package mireka.address.parser.ast

Examples of mireka.address.parser.ast.RemotePartAST


    private MailboxAST parseMailbox() throws ParseException {
        pushPosition();
        pushSpelling();
        LocalPartAST localPartAST = parseLocalPart();
        accept('@');
        RemotePartAST remotePartAST = parseRemotePart();
        return new MailboxAST(popPosition(), popSpelling(), localPartAST,
                remotePartAST);
    }
View Full Code Here


            throw currentToken.syntaxException("any ASCII graphic or space");
    }

    private RemotePartAST parseRemotePart() throws ParseException {
        scanner.pushBack(currentToken);
        RemotePartAST remotePartAST = new RemotePartParser(scanner).parseLeft();
        currentToken = scanner.scan();
        spelling.append(remotePartAST.spelling);
        return remotePartAST;
    }
View Full Code Here

    public RemotePartParser(String source) {
        super(source);
    }

    public RemotePartAST parse() throws ParseException {
        RemotePartAST remotePartAST = parseRemotePart();
        if (currentToken.ch != -1)
            throw currentToken.otherSyntaxException("Superfluous characters "
                    + "after remote part: {0}");
        return remotePartAST;
    }
View Full Code Here

                    + "after remote part: {0}");
        return remotePartAST;
    }

    public RemotePartAST parseLeft() throws ParseException {
        RemotePartAST remotePartAST = parseRemotePart();
        scanner.pushBack(currentToken);
        return remotePartAST;
    }
View Full Code Here

TOP

Related Classes of mireka.address.parser.ast.RemotePartAST

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.