(rbp,initial)
| 117 | break;default:warning("Line breaking error '{a}'.",token,token.value);}} |
| 118 | if(xtype==='widget'&&xmode==='script'&&nexttoken.id){l=nexttoken.id.charAt(0);if(l==='<'||l==='&'){nexttoken.nud=nexttoken.led=null;nexttoken.lbp=0;nexttoken.reach=true;}}} |
| 119 | function parse(rbp,initial){var left,o;if(nexttoken.id==='(end)'){error("Unexpected early end of program.",token);} |
| 120 | advance();if(option.adsafe&&predefined[token.value]===true&&(nexttoken.id!=='('&&nexttoken.id!=='.')){warning('ADsafe violation.',token);} |
| 121 | if(initial){anonname='anonymous';funct['(verb)']=token.value;} |
| 122 | if(initial===true&&token.fud){left=token.fud();}else{if(token.nud){o=token.exps;left=token.nud();}else{if(nexttoken.type==='(number)'&&token.id==='.'){warning("A leading decimal point can be confused with a dot: '.{a}'.",token,nexttoken.value);advance();return token;}else{error("Expected an identifier and instead saw '{a}'.",token,token.id);}} |
| 123 | while(rbp<nexttoken.lbp){o=nexttoken.exps;advance();if(token.led){left=token.led(left);}else{error("Expected an operator and instead saw '{a}'.",token,token.id);}} |
| 124 | if(initial&&!o){warning("Expected an assignment or function call and instead saw an expression.",token);}} |
| 125 | if(!option.evil&&left&&left.value==='eval'){warning("eval is evil.",left);} |
| 126 | return left;} |
| 127 | function adjacent(left,right){left=left||token;right=right||nexttoken;if(option.white){if(left.character!==right.from&&left.line===right.line){warning("Unexpected space after '{a}'.",nexttoken,left.value);}}} |
| 128 | function nospace(left,right){left=left||token;right=right||nexttoken;if(option.white&&!left.comment){if(left.line===right.line){adjacent(left,right);}}} |
| 129 | function nonadjacent(left,right){left=left||token;right=right||nexttoken;if(option.white){if(left.character===right.from){warning("Missing space after '{a}'.",nexttoken,left.value);}}} |
no test coverage detected