-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
53 lines (43 loc) · 1.72 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
This plugin for the TypeScript compiler allows the user to save the syntax tree
of a given program in an XML format. The XML corresponds exactly to the tree
that the compiler creates, so it might not work correctly in a malformed program.
##CONFIGURATION:
1. Checkout this repository (say in folder cse199-code-0).
2. Go to the folder cse199-code-0.
3. Clone the typescript repository (git) or create a folder called "typescript" and copy
the content of the git repository (download the zip and extract it there).
The repo is in: http://typescript.codeplex.com/SourceControl/latest#README.txt
Your file system should look like this:
cse199-code-0
-rwxr-xr-x 1 applypatch
drwxr-xr-x 2 bin
-rw-r--r-- 1 Makefile
-rw-r--r-- 1 README
-rwxr-xr-x 1 run
drwxr-xr-x 2 src
drwxr-xr-x 2 tests
drwxr-xr-x 8 typescript
4. Install node.js and tsc.
4.1 Install node.js:
This runs JavaScript code outside of any browser.
http://nodejs.org/
Make sure that the command "node" works on the terminal.
If you dont, create a link (ln -s) in /usr/local/bin in to
the node script (which is in the folder where you installed it).
4.2 Install tsc:
After 4.1, you have the npm utility to install new js code.
The command npm might not be available, but the npm script is
in the folder where you installed node.js, in node-v0.10.20/deps/npm/bin/npm
Execute npm install -g typescript
Make sure you have the "tsc" command in the terinal, otherwise, do the same
thing as in 4.1.
5. Apply the patch :
Go to cse199-code-0
run: ./applypatch
##RUNNING
6. Build the project
make TSC
(can take up to a minute)
7. Run an example:
./run tests/oneline.ts
./run test/functions.ts > functions.xml