You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket-demo/pythonesque-demo/test.rkt

27 lines
421 B
Racket

#lang pythonesque-demo
6 years ago
"escaped quote: middle \" and end \""
"escaped backslash: middle \\ and end \\"
6 years ago
def nothing():
42
6 years ago
def fortytwo():
return 42
6 years ago
def eightyfour():
return 84
def noop():
6 years ago
return "double dedent next"
6 years ago
nothing() # no output
6 years ago
if fortytwo() < eightyfour():
"left is less than right"
else:
6 years ago
"left is not less than right"
6 years ago
def last():
return 42
def noop():
6 years ago
return "double dedent next"