Skip to content

Commit 5a612b3

Browse files
add parser test files and result
1 parent fad8895 commit 5a612b3

File tree

4 files changed

+150
-0
lines changed

4 files changed

+150
-0
lines changed

Diff for: dev_root/test1/coffee_files/test.coffee

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Assignment:
2+
number = 42
3+
opposite = true
4+
5+
# Conditions:
6+
number = -42 if opposite
7+
8+
# Functions:
9+
square = (x) -> x * x
10+
11+
# Arrays:
12+
list = [1, 2, 3, 4, 5]
13+
14+
# Objects:
15+
math =
16+
root: Math.sqrt
17+
square: square
18+
cube: (x) -> x * square x
19+
20+
# Splats:
21+
race = (winner, runners...) ->
22+
print winner, runners
23+
24+
# Existence:
25+
alert "I knew it!" if elvis?
26+
27+
# Array comprehensions:
28+
cubes = (math.cube num for num in list)

Diff for: dev_root/test2/coffee_files/test.coffee

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Assignment:
2+
number = 42
3+
opposite = true
4+
5+
# Conditions:
6+
number = -42 if opposite
7+
8+
# Functions:
9+
square = (x) -> x * x
10+
11+
# Arrays:
12+
list = [1, 2, 3, 4, 5]
13+
14+
# Objects:
15+
math =
16+
root: Math.sqrt
17+
square: square
18+
cube: (x) -> x * square x
19+
20+
# Splats:
21+
race = (winner, runners...) ->
22+
print winner, runners
23+
24+
# Existence:
25+
alert "I knew it!" if elvis?
26+
27+
# Array comprehensions:
28+
cubes = (math.cube num for num in list)

Diff for: web_root/test1/js/test.js

+47
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: web_root/test2/js/test.js

+47
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)