1 coffeescript comment # A CoffeeScript parser test file
3 coffeescript code simple_code = true
5 coffeescript comment ###
6 coffeescript comment A multi-line block comment
7 coffeescript comment begins and ends with three hash marks
8 coffeescript comment ###
10 coffeescript code multi_line_string = '''
11 coffeescript code A multi-line string constant ("here doc")
12 coffeescript code begins and ends with three quote marks
15 coffeescript code foo = "A string can wrap across multiple lines
16 coffeescript code and may contain #{interpolated_values}"
19 coffeescript comment ###
20 coffeescript comment A clever parser can use Ohcount's "Polyglot" feature treat the
21 coffeescript comment following as embedded JavaScript.
22 coffeescript comment ###
23 javascript code embedded_js = `function() {
24 javascript code return [document.title, "Hello JavaScript"].join(": ");