{"name":"ometajs","description":"A object-oriented language for pattern matching","version":"3.2.1","homepage":"https://github.com/veged/ometa-js","author":{"name":"Fedor Indutny","email":"fedor@indutny.com","url":"https://github.com/indutny"},"contributors":[{"name":"Sergey Berezhnoy","email":"veged@mail.ru","url":"http://github.com/veged"}],"repository":{"type":"git","url":"git://github.com/veged/ometa-js.git"},"bugs":{"url":"http://github.com/veged/ometa-js/issues"},"main":"./lib/ometajs","directories":{"doc":"./doc","lib":"./lib"},"dependencies":{"coa":"0.3.x","q":"0.8.x","uglify-js":"1.3.x"},"devDependencies":{"mocha":"1.3.x"},"bin":{"ometajs2js":"./bin/ometajs2js"},"engines":{"node":">=0.4.0"},"licenses":[{"type":"AS IS"}],"scripts":{"test":"mocha --ui tdd --growl --reporter spec test/unit/*-test.js"},"optionalDependencies":{},"_id":"ometajs@3.2.1","dist":{"shasum":"1ff5e1c27afaff920b8108046ff31eeb87af1c26","tarball":"http://registry-npm.ywwl.com/ometajs/download/ometajs-3.2.1.tgz","integrity":"sha512-3V0Oa5fJyPn3MLKsHagbyDOPGzef958U0rXWbrAFrcy+lRNd33lHxvDF0TbcDOF4agYDjW3gEtKjGdwVWlc3+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZZD4osBw+DUawfw//1I0C1TxTc6eh0o6MqMUKQxJOqAiEA8GK07lPtZOt6B8sDoCSaq4qyshieICRKlmSptmPe7+w="}],"size":261750,"noattachment":false,"key":"/ometajs/-/ometajs-3.2.1.tgz"},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"fedor.indutny","email":"fedor.indutny@gmail.com"},"maintainers":[{"name":"veged","email":"veged@mail.ru"},{"name":"fedor.indutny","email":"fedor.indutny@gmail.com"}],"readme":"```\n   ____  __  ___     __            _______\n  / __ \\/  |/  /__  / /_____ _    / / ___/\n / / / / /|_/ / _ \\/ __/ __ `/_  / /\\__ \\\n/ /_/ / /  / /  __/ /_/ /_/ / /_/ /___/ /\n\\____/_/  /_/\\___/\\__/\\__,_/\\____//____/\n```\n\n## OMetaJS [![Build Status](https://secure.travis-ci.org/veged/ometa-js.png)](http://travis-ci.org/veged/ometa-js)\n\nOMetaJS is a JavaScript implementation of OMeta, an object-oriented language\nfor pattern matching.\n\nThis is a *node.js* module for developing and using such pattern matching\ngrammars.\n\n## Installation\n\n### Installing npm (node package manager)\n\n``` bash\n$ curl http://npmjs.org/install.sh | sh\n```\n\n### Installing ometajs\n\n``` bash\n$ [sudo] npm install ometajs -g\n```\n\n**Note:** If you are using ometajs _programmatically_ you should not install\nit globally.\n\n``` bash\n$ cd /path/to/your/project\n$ npm install ometajs\n```\n\n## Usage\n\n### Command line\n\n```bash\n$ ometajs2js --help\n\nUsage:\n  ometajs2js [OPTIONS] [ARGS]\n\n\nOptions:\n  -h, --help : Help\n  -v, --version : Version\n  -i INPUT, --input=INPUT : Input file (default: stdin)\n  -o OUTPUT, --output=OUTPUT : Output file (default: stdout)\n  --root=ROOT : Path to root module (default: ometajs)\n```\n\n`ometajs2js` will take input `*.ometajs` file and produce a [CommonJS][0]-\ncompatible javascript file.\n\nYou may also `require('*.ometajs')` files directly without compilation.\n(OMetaJS is patching `require.extensions` as [CoffeeScript][1] does).\n\n### Usage as CommonJS module\n\n```javascript\nvar ometajs = require('ometajs');\n\nvar ast = ometajs.grammars.BSJSParser.matchAll('var x = 1', 'topLevel'),\n    code = ometajs.grammars.BSJSTranslator.matchAll([ast], 'trans');\n```\n\n### Example grammar\n\n```javascript\nometa Simple {\n  top = [#simple] -> 'ok'\n}\n```\n\n[More information][5] about OMetaJS syntax.\n\n### Use cases\n\nQuickly prototype and buildyour own parser/language. Process/traverse complex\n[AST][2].\n\nSome projects that are using OMetaJS:\n\n -   [XJST](http://github.com/veged/xjst)\n -   [ShmakoWiki](http://github.com/veged/shmakowiki/)\n -   [OmetaHighlighter](http://github.com/veged/ometa-highlighter)\n\n### More information\n\nTo study OMetaJS or ask questions about its core you can reach out to the\n[original repository][3] author [Alessandro Warth][4] or me.\n\nHere is the [documented code][5].\n\n#### Contributors\n\n* [Alessandro Warth][4]\n* [Takashi Yamamiya](https://github.com/propella)\n* [Sergey Berezhnoy](https://github.com/veged)\n* [Nikita Vasilyev](https://github.com/NV)\n* [Fedor Indutny](https://github.com/indutny)\n* [Jason Davies](https://github.com/jasondavies)\n\n[0]: http://www.commonjs.org/\n[1]: http://coffeescript.org/\n[2]: http://en.wikipedia.org/wiki/Abstract_syntax_tree\n[3]: http://www.tinlizzie.org/ometa/\n[4]: http://github.com/alexwarth\n[5]: http://veged.github.com/ometa-js/\n","publish_time":1359468159982,"_cnpm_publish_time":1359468159982,"dist-tags":{"latest":"4.0.0","stable":"3.3.1"}}