[READ-ONLY] Mirror of https://github.com/probablykasper/limp. Programming language made in JS, for fun (unfinished) limp.kasper.space
language
0

Configure Feed

Select the types of activity you want to include in your feed.

+limpLog accepts objects

KH (Jun 8, 2017, 3:38 PM +0200) 18dfb4e3 78a0483e

+2 -1
+2 -1
js/limp.js
··· 4 4 // } 5 5 6 6 function limpLog(type, msg) { 7 + if (typeof msg == "object") msg = JSON.stringify(msg, null, 4); 7 8 var html = document.createElement("div"); 8 9 var attr = document.createAttribute("class"); 9 10 attr.value = "limp--item"; ··· 183 184 limpLog("inf", "---------------------------- script finished"); 184 185 parse(); 185 186 console.log(tokens); 186 - limpLog("inf", JSON.stringify(tokens, null, 4)); 187 + // limpLog("inf", statements); 187 188 } else if ( isWhitespace() ) { // WHITESPACE 188 189 value = "[whitespace]"; 189 190 if (currentChar() == "\n") line++;