Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
[TODO, ONHOLD] fnjs - functional javascript
Clojure JavaScript Shell Perl
Tree: 7fedf88d3b

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
_scripts
bin
examples
src/fnjs
.gitignore
README
project.clj

README

--                                                                {{{1

File        : README
Maintainer  : Felix C. Stegerman <flx@obfusk.net>
Date        : 2012-05-07

Copyright   : Copyright (C) 2012  Felix C. Stegerman
Version     : v0.1.1

--                                                                }}}1

=== Description ===                                               {{{1

  fnjs - functional javascript

  fnjs ("fungus"? -- let's hope it spreads ...) is more or less a
  clojure DSL that produces javascript.  It's not a platform like
  clojurescript, but simply a nicer way to write javascript -- with
  clojure syntax.

  See examples/overview.fnjs for an annotated example of the current
  implementation.
                                                                  }}}1

=== License ===                                                   {{{1

  GPLv2 [1] or EPLv1 [2].
                                                                  }}}1

=== Depends ===                                                   {{{1

  * leiningen   (build)
  * uglify-js   (prettify)
  * node        (run)
                                                                  }}}1

=== Usage ===                                                     {{{1

  Get it at https://github.com/obfusk/fnjs.

  $ ./_scripts/run file...                # compile to js on stdout
  $ ./_scripts/run ... | ./_scripts/ugly  # make output pretty
  $ ./_scripts/run ... | node             # run

  $ ./_scripts/build                      # build jar
  $ ./bin/fnjs file...                    # like run; uses jar

  To install (of sorts), put bin/fnjs somewhere on your PATH and edit
  it to point to (a copy of) jar/fnjs-x.y.z-dev-standalone.jar.
                                                                  }}}1

=== Editing ===                                                   {{{1

  I use vimclojure with this in my ~/.vimrc:
  au BufNewFile,BufRead *.fnjs set filetype=clojure
                                                                  }}}1

=== TODO ===                                                      {{{1

  * v0.1.0 - the basics
  * v0.2.0 - lang + core
  * v0.3.0 - more libs
  * ...
                                                                  }}}1

=== References ===                                                {{{1

  [1] GNU General Public License, version 2
      http://www.opensource.org/licenses/GPL-2.0

  [2] Eclipse Public License, version 1
      http://www.opensource.org/licenses/EPL-1.0
                                                                  }}}1

--

vim: set tw=70 sw=2 sts=2 et fdm=marker :
Something went wrong with that request. Please try again.