Skip to content
/ C.O.W Public

Compiler of Wendy - A compiler that runs in the browser written in TypeScript

Notifications You must be signed in to change notification settings

nisiya/C.O.W

Repository files navigation

Browser-based Compiler in TypeScript

This is my Compilers class project repository. Initial template obtained from https://github.com/AlanClasses/TSOS

Run C.O.W (Compiler of Wendy)

  1. Download the whole repository.
  2. In the root directory, open index.html in a browser.

Setup TypeScript

  1. Install the npm package manager if you don't already have it.
  2. Run npm install -g typescript to get the TypeScript Compiler. (You may need to do this as root.)

Setup Gulp

  1. npm install gulp to get the Gulp Task Runner.
  2. npm install gulp-tsc to get the Gulp TypeScript plugin.

Run gulp at the command line in the root directory of this project. Edit your TypeScript files in the source/scripts directory in your favorite editor. Visual Studio and IntelliJ have some tools that make debugging, syntax highlighting, and lots more quite easy. WebStorm looks like a nice option as well.

Gulp will automatically:

  • Watch for changes in your source/scripts/ directory for changes to .ts files and run the TypeScript Compiler on them.
  • Watch for changes to your source/styles/ directory for changes to .css files and copy them to the distrib/ folder if you have them there.

About

Compiler of Wendy - A compiler that runs in the browser written in TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published