Demo
Course

Spring 2006
course
navigation

test pretty

Let's see if we can prettify some code.
0: #!/usr/bin/perl 1: ######## 2: # Did it work? 3: ###### 4: my $yes = 1; 5: if ($yes){ 6: print "yes\n"; 7: } 8: 9: # Comments are getting extra spaces. Hmm. 10: sub foo{ 11: my $arg = shift; 12: return $arg; 13: }
Hmmm. Not bad.
;; ;; hello world in lisp ;; (format t "Hello world. ~%") ; Are we having fun? (defun f (x) (+ 1 x))

The answer is a ; comment; in lisp, but a ; statement; in Java.
http://cs.marlboro.edu/ courses/ course_demo/ test_pretty
last modified Monday August 28 2017 3:56 pm EDT