src/parser.js
function parseStatement(lex, isRoot = false) {
    return parseFunctionDeclaration(lex) ||
           isRoot && parseOperatorStatement(lex) ||
           isRoot && parseObjectDeclaration(lex) ||
           parseIf(lex) ||
           parseReturn(lex) ||
           isRoot && parseExport(lex) ||
           isRoot && parseImport(lex) ||
           parseSwitchType(lex) ||
           parseWhile(lex) ||
           parseDoWhile(lex) ||
           parseFor(lex) ||
           parseBreak(lex) ||
           parseContinue(lex) ||
           parseExpressionBase(lex);
}
function parseStatement(lex, isRoot = false) {
    return parseFunctionDeclaration(lex) ||
           isRoot && parseOperatorStatement(lex) ||
           isRoot && parseObjectDeclaration(lex) ||
           parseIf(lex) ||
           parseReturn(lex) ||
           isRoot && parseExport(lex) ||
           isRoot && parseImport(lex) ||
           parseSwitchType(lex) ||
           parseWhile(lex) ||
           parseDoWhile(lex) ||
           parseFor(lex) ||
           parseBreak(lex) ||
           parseContinue(lex) ||
           parseExpressionBase(lex);
}
function parseStatement ( lex , isRoot = false ) { return parseFunctionDeclaration ( lex ) || isRoot && parseOperatorStatement ( lex ) || isRoot && parseObjectDeclaration ( lex ) || parseIf ( lex ) || parseReturn ( lex ) || isRoot && parseExport ( lex ) || isRoot && parseImport ( lex ) || parseSwitchType ( lex ) || parseWhile ( lex ) || parseDoWhile ( lex ) || parseFor ( lex ) || parseBreak ( lex ) || parseContinue ( lex ) || parseExpressionBase ( lex ) ; }
Parses a single statement
@param  {Lexer} lex
@param  {bool}
@return {*}
Parses a single statement