Search in sources :

Example 1 with Kind

use of org.develnext.jphp.core.tokenizer.token.expr.BraceExprToken.Kind in project jphp by jphp-compiler.

the class ExprGenerator method processSimpleExpr.

protected List<Token> processSimpleExpr(Token current, ListIterator<Token> iterator) {
    Kind closedBraceKind = null;
    if (isOpenedBrace(current, SIMPLE))
        closedBraceKind = SIMPLE;
    else if (isOpenedBrace(current, ARRAY))
        closedBraceKind = ARRAY;
    ExprStmtToken token = analyzer.generator(SimpleExprGenerator.class).getToken(current, iterator, Separator.SEMICOLON, closedBraceKind);
    return token.getTokens();
}
Also used : SimpleExprGenerator(org.develnext.jphp.core.syntax.generators.manually.SimpleExprGenerator) Kind(org.develnext.jphp.core.tokenizer.token.expr.BraceExprToken.Kind)

Aggregations

SimpleExprGenerator (org.develnext.jphp.core.syntax.generators.manually.SimpleExprGenerator)1 Kind (org.develnext.jphp.core.tokenizer.token.expr.BraceExprToken.Kind)1