Definitely unusable: Difference between revisions

From Esolang
Jump to navigation Jump to search
Content deleted Content added
m Category
Ractangle (talk | contribs)
Hopefully this helps
Tag: Reverted
Line 11: Line 11:
else {
else {
console.log('Syntax Error:')
console.log('Syntax Error:')
// Uhhh...
console.log(code)
// How to print the contents of a variable?
eval(code)
// is that how you do it?
}
}
}
}

Revision as of 21:12, 31 October 2024

Definitely unusable is a language that is supposed to be a derivative of Line Feed. Sadly, there is a bug in the implementation!

Syntax

The only valid program is the single newline, which does nothing. Anything else will print out an error.

Implementations

Written in JavaScript:

function interpret(code) {
    if(code=='\n') {}
    else {
        console.log('Syntax Error:')
        console.log(code)
    }
}

See also