Codebase list ohcount / 81a9b407-9b9f-4b49-8972-ed3f6d30059f/main test / src_dir / foo.coffee
81a9b407-9b9f-4b49-8972-ed3f6d30059f/main

Tree @81a9b407-9b9f-4b49-8972-ed3f6d30059f/main (Download .tar.gz)

foo.coffee @81a9b407-9b9f-4b49-8972-ed3f6d30059f/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(": ");
}`