Codebase list ohcount / d4c3f612-6685-4dc0-9339-5433a0a275c0/main test / src_dir / foo.coffee
d4c3f612-6685-4dc0-9339-5433a0a275c0/main

Tree @d4c3f612-6685-4dc0-9339-5433a0a275c0/main (Download .tar.gz)

foo.coffee @d4c3f612-6685-4dc0-9339-5433a0a275c0/mainraw · history · blame

# A CoffeeScript parser test file

simple_code = true

###
A multi-line block comment
begins and ends with three hash marks
###

multi_line_string = '''
                    A multi-line string constant ("here doc")
                    begins and ends with three quote marks
                    '''

foo = "A string can wrap across multiple lines
  and may contain #{interpolated_values}"


###
A clever parser can use Ohcount's "Polyglot" feature treat the
following as embedded JavaScript.
###
embedded_js = `function() {
  return [document.title, "Hello JavaScript"].join(": ");
}`