Package com.nexirius.util

Examples of com.nexirius.util.TextToken.debugString()


            } else if (t.isChar(OBRACE)) {
                t = nextToken();

                if (!t.isChar(CBRACE)) {
                    throw new SyntaxException(CBRACE, t.debugString());
                }

                currentClass.append(new DataModelTypeMethod(type, memberName));

            } else if (t.isChar(SEMICOLON)) {
View Full Code Here


                pushbackToken();
            } else if (t.isChar(ASSIGN)) {
                t = nextToken();

                if (!t.isString()) {
                    throw new SyntaxException("string literal (init value)", t.debugString());
                }

                currentClass.append(new DataModelTypeMember(type, memberName, t.getString()));
            } else {
                throw new SyntaxException("( or [ or ; or =", t.debugString());
View Full Code Here

                    throw new SyntaxException("string literal (init value)", t.debugString());
                }

                currentClass.append(new DataModelTypeMember(type, memberName, t.getString()));
            } else {
                throw new SyntaxException("( or [ or ; or =", t.debugString());
            }

            t = nextToken();

            if (!t.isChar(SEMICOLON)) {
View Full Code Here

            }

            t = nextToken();

            if (!t.isChar(SEMICOLON)) {
                throw new SyntaxException(SEMICOLON, t.debugString());
            }
        } else {
            throw new SyntaxException("member name", t.debugString());
        }
    }
View Full Code Here

            if (!t.isChar(SEMICOLON)) {
                throw new SyntaxException(SEMICOLON, t.debugString());
            }
        } else {
            throw new SyntaxException("member name", t.debugString());
        }
    }

    TextToken nextToken()
            throws Exception {
View Full Code Here

        }

        if (token.isIdentifier()) {
            ret = resolver.getFunction(token.getString());
        } else {
            throw new Exception("Expecting function name but have " + token.debugString());
        }

        if (ret == null) {
            throw new Exception("Unknown function name " + token.debugString());
        }
View Full Code Here

        } else {
            throw new Exception("Expecting function name but have " + token.debugString());
        }

        if (ret == null) {
            throw new Exception("Unknown function name " + token.debugString());
        }

        return ret;
    }
View Full Code Here

                } else if (token.isIdentifier(NULL)) {
                    functionArgumentList.append((String)null);
                } else if (token.isIdentifier()) {
                    functionArgumentList.append(token.getString());
                } else {
                    throw new Exception("Unexpected token in parameter list:" + token.debugString());
                }

                token = TextToken.nextToken(in);

                if (token.isChar(',')) {
View Full Code Here

                if (token.isChar(',')) {
                    // expected
                } else if (token.isChar(')')) {
                    break;
                } else {
                    throw new Exception("Unexpected token in parameter list:" + token.debugString());
                }
            }
        } else {
            throw new Exception("Expecting '(' but have " + token.debugString());
        }
View Full Code Here

                } else {
                    throw new Exception("Unexpected token in parameter list:" + token.debugString());
                }
            }
        } else {
            throw new Exception("Expecting '(' but have " + token.debugString());
        }

        return functionArgumentList.getArray();
    }
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.