LambdaPython is Python, but if your program includes
def, it raises a syntax error (that means you must use built-in functions or lambda functions instead of normal ones, thus the name). It is create by User:None1 and inspired by UnnumericJS which is inspired by MangularJS.
Most programs are the same (as Python), but here is an example that computes the n-th fibonacci number using recursion (reads n and outputs the n-th fibonacci number):
Athough it uses recursion, it does not include
def, so it is still allowed.
Interpreter in Python
import sys code=sys.stdin.read() if 'def' in code: raise Exception('Syntax error') else: exec(code)
import sys code=sys.stdin.read() if '\x64\x65\x66' in code: raise Exception('Syntax error') else: exec(code)
This is also an interpreter in Python.
We can use
exec() and the hexadecimal escape to run any Python code, so it is Turing complete.