Line Feed
Jump to navigation
Jump to search
Line Feed is a language by User:PythonshellDebugwindow in which the only valid character is a newline. It shares a file extension (.lf) with LogicF---.
Commands
Command | Definition |
---|---|
(newline) | Nop |
All others raise an error.
Interpreter in Python
code = "\n\n" assert code == "\n" * len(code), "Invalid character in source code"
Another implementation:
code = "\x01\nf\n" assert(max(code)==min(code)=="\n")
Interpreter in Io
code := "\n\n" if("\n" repeated(code size) == code, 0, fail)