Cap
A language that compiles to JavaScript
Last updated 8 years ago .
Repository · Original npm · Tarball · package.json
$ cnpm install Cap 
SYNC missed versions from official npm registry.

Cap

A language that compiles to JavaScript, for use in the browser and node.

Intro

Cap is a language built on top of Javascript. It aims to unify the underlying concepts of functional programming with an elegant and succint syntax.

Quickstart

The Cap compiler is implemented in node, get that first (pre-compiled binaries available for Win/Mac, Linux you have to build yourself). Node comes with the package manager npm which you can use to install the Cap compiler.

Then:

npm install cap -g

Provided you used the global flag -g and the path /usr/local/bin is in your path, capc should now be available. Verify by running capc -h which should print something similar to the following:

Usage: capc [options] [source-file]

Options:

  -h, --help       output usage information
  -V, --version    output the version number
  -p, --printtree  print the syntax tree instead of compiling

Editor Syntax

There is a syntax mode for Textmate and SublimeText 2. It is located in editor/Cap.tmLanguage.

Current Tags

  • 0.0.2                                ...           latest (8 years ago)

2 Versions

  • 0.0.2                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |