Talk:PP
Jump to navigation
Jump to search
Interpreters
Hello! I have noticed that the GitHub link is down, so I (User:MijiGamin1) have scoured through the GitHub profile and rewrote this language's "interpreter" in JavaScript. (Note: "Every other character will throw an error" was a bit vague, so I took the broadest direction possible.)
JavaScript:
code = prompt("pP source code:");
for (let i = 0; i < code.length; i++) {
if (code[i] == "p") {
console.log("Hello, world!");
} else {
console.error("Error")
}
}