class Haml::Compiler

def compile(node)

def compile(node)
  case node.type
  when :root
    compile_children(node)
  when :comment
    compile_comment(node)
  when :doctype
    compile_doctype(node)
  when :filter
    compile_filter(node)
  when :plain
    compile_plain(node)
  when :script
    compile_script(node)
  when :silent_script
    compile_silent_script(node)
  when :tag
    compile_tag(node)
  when :haml_comment
    [:multi]
  else
    raise InternalError.new("Unexpected node type: #{node.type}")
  end
end