15 if l =~ /^\s*(class|module|def|if|unless|case|while|until|for|begin)\b[^_]/
18 if l =~ /^\s*end\b[^_]/
21 if l =~ /\{\s*(\|.*\|)?\s*$/
33 print eval(line).inspect, "\n"
34 rescue ScriptError, StandardError
35 printf "ERR: %s\n", $! || 'exception raised'