src/com/christofferklang/pyxl/parsing/PyxlExpressionParsing.java
private boolean parsePyxlEmbed() throws PyxlParsingException {
        if (myBuilder.getTokenType() == PyxlTokenTypes.EMBED_START) {
            myBuilder.advanceLexer();
            parseExpression();
            if (myBuilder.getTokenType() == PyxlTokenTypes.EMBED_END) {
                myBuilder.advanceLexer();
                return true;
            } else {
                myBuilder.error("pyxl expected embed end");
                throw new PyxlParsingException();
            }
        }
        return false;
    }
/**
     * Attempt to parse an embedded python expression. For example:
     * {self.counter + 1}. If an error occurs while the embedded expression
     * is being parsed a parse error will be set. It is ok to call this
     * method whenever a embedded python expression could occur, even if
     * the lexer isn't currently ready to produce one.
     *
     * @return true if an embedded expression was parsed, or false
     * otherwise.
     * @throws PyxlParsingException if an error occurs while the embedded
     *                              expression is being parsed.
     */
Attempt to parse an embedded python expression. For example:
{self.counter + 1}. If an error occurs while the embedded expression
is being parsed a parse error will be set. It is ok to call this
method whenever a embedded python expression could occur, even if
the lexer isn't currently ready to produce one.

@return true if an embedded expression was parsed, or false
otherwise.
@throws PyxlParsingException if an error occurs while the embedded
expression is being parsed.
Attempt to parse an embedded python expression . For example : { self . counter + 1 } . If an error occurs while the embedded expression is being parsed a parse error will be set . It is ok to call this method whenever a embedded python expression could occur even if the lexer isn ' t currently ready to produce one . @return true if an embedded expression was parsed or false otherwise . @throws PyxlParsingException if an error occurs while the embedded expression is being parsed .
private boolean parsePyxlEmbed() throws PyxlParsingException {
        if (myBuilder.getTokenType() == PyxlTokenTypes.EMBED_START) {
            myBuilder.advanceLexer();
            parseExpression();
            if (myBuilder.getTokenType() == PyxlTokenTypes.EMBED_END) {
                myBuilder.advanceLexer();
                return true;
            } else {
                myBuilder.error("pyxl expected embed end");
                throw new PyxlParsingException();
            }
        }
        return false;
    }
private boolean parsePyxlEmbed ( ) throws PyxlParsingException { if ( myBuilder . getTokenType ( ) == PyxlTokenTypes . EMBED_START ) { myBuilder . advanceLexer ( ) ; parseExpression ( ) ; if ( myBuilder . getTokenType ( ) == PyxlTokenTypes . EMBED_END ) { myBuilder . advanceLexer ( ) ; return true ; } else { myBuilder . error ( "pyxl expected embed end" ) ; throw new PyxlParsingException ( ) ; } } return false ; }
Attempt to parse an embedded python expression.
Attempt to parse an embedded python expression .