{"_id":"jison-lex","_rev":"140302","name":"jison-lex","description":"lexical analyzer generator used by jison","dist-tags":{"latest":"0.3.4"},"maintainers":[{"name":"zaach","email":""}],"time":{"modified":"2021-06-03T11:26:30.000Z","created":"2013-01-27T02:54:52.035Z","0.3.4":"2014-03-31T13:06:00.179Z","0.3.3":"2014-03-30T23:32:07.978Z","0.3.2":"2014-03-30T23:28:55.588Z","0.2.1":"2013-06-22T22:38:05.836Z","0.2.0":"2013-04-17T01:06:04.789Z","0.1.0":"2013-01-28T01:02:28.115Z","0.0.1":"2013-01-27T02:54:52.035Z"},"users":{"kastor":true,"yvesm":true},"author":{"name":"Zach Carter","email":"zach@carter.name","url":"http://zaa.ch"},"repository":{"type":"git","url":"git://github.com/zaach/jison-lex.git"},"versions":{"0.3.4":{"author":{"name":"Zach Carter","email":"zach@carter.name","url":"http://zaa.ch"},"name":"jison-lex","description":"lexical analyzer generator used by jison","version":"0.3.4","keywords":["jison","parser","generator","lexer","flex","tokenizer"],"repository":{"type":"git","url":"git://github.com/zaach/jison-lex.git"},"bugs":{"url":"http://github.com/zaach/jison-lex/issues","email":"jison@librelist.com"},"main":"regexp-lexer","bin":{"jison-lex":"cli.js"},"engines":{"node":">=0.4"},"dependencies":{"lex-parser":"0.1.x","nomnom":"1.5.2"},"devDependencies":{"test":"0.4.4"},"scripts":{"test":"node tests/all-tests.js"},"directories":{"lib":"lib","tests":"tests"},"homepage":"http://jison.org","_id":"jison-lex@0.3.4","dist":{"shasum":"81ca28d84f84499dfa8c594dcde3d8a3f26ec7a5","size":10987,"noattachment":false,"key":"/jison-lex/-/jison-lex-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/jison-lex/download/jison-lex-0.3.4.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"zaach","email":"zack.carter@gmail.com"},"maintainers":[{"name":"zaach","email":""}],"publish_time":1396271160179,"_hasShrinkwrap":false,"_cnpm_publish_time":1396271160179},"0.3.3":{"author":{"name":"Zach Carter","email":"zach@carter.name","url":"http://zaa.ch"},"name":"jison-lex","description":"lexical analyzer generator used by jison","version":"0.3.3","keywords":["jison","parser","generator","lexer","flex","tokenizer"],"repository":{"type":"git","url":"git://github.com/zaach/jison-lex.git"},"bugs":{"url":"http://github.com/zaach/jison-lex/issues","email":"jison@librelist.com"},"main":"regexp-lexer","bin":{"jison-lex":"cli.js"},"engines":{"node":">=0.4"},"dependencies":{"lex-parser":"0.1.x","nomnom":"1.5.2"},"devDependencies":{"test":"0.4.4"},"scripts":{"test":"node tests/all-tests.js"},"directories":{"lib":"lib","tests":"tests"},"homepage":"http://jison.org","_id":"jison-lex@0.3.3","dist":{"shasum":"fdaed56da01da1b83c157fd0f48facec7cb787e5","size":10877,"noattachment":false,"key":"/jison-lex/-/jison-lex-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/jison-lex/download/jison-lex-0.3.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"zaach","email":"zack.carter@gmail.com"},"maintainers":[{"name":"zaach","email":""}],"publish_time":1396222327978,"_hasShrinkwrap":false,"_cnpm_publish_time":1396222327978},"0.3.2":{"author":{"name":"Zach Carter","email":"zach@carter.name","url":"http://zaa.ch"},"name":"jison-lex","description":"lexical analyzer generator used by jison","version":"0.3.2","keywords":["jison","parser","generator","lexer","flex","tokenizer"],"repository":{"type":"git","url":"git://github.com/zaach/jison-lex.git"},"bugs":{"url":"http://github.com/zaach/jison-lex/issues","email":"jison@librelist.com"},"main":"regexp-lexer","bin":{"jison-lex":"cli.js"},"engines":{"node":">=0.4"},"dependencies":{"lex-parser":"0.1.x","nomnom":"1.5.2"},"devDependencies":{"test":"0.4.4"},"scripts":{"test":"node tests/all-tests.js"},"directories":{"lib":"lib","tests":"tests"},"homepage":"http://jison.org","_id":"jison-lex@0.3.2","dist":{"shasum":"c6437a23598c5d89b5080253a0697985f42d50ae","size":10921,"noattachment":false,"key":"/jison-lex/-/jison-lex-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jison-lex/download/jison-lex-0.3.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"zaach","email":"zack.carter@gmail.com"},"maintainers":[{"name":"zaach","email":""}],"publish_time":1396222135588,"_hasShrinkwrap":false,"_cnpm_publish_time":1396222135588},"0.2.1":{"author":{"name":"Zach Carter","email":"zach@carter.name","url":"http://zaa.ch"},"name":"jison-lex","description":"lexical analyzer generator used by jison","version":"0.2.1","keywords":["jison","parser","generator","lexer","flex","tokenizer"],"repository":{"type":"git","url":"git://github.com/zaach/jison-lex.git"},"bugs":{"email":"jison@librelist.com","url":"http://github.com/zaach/jison-lex/issues"},"main":"regexp-lexer","bin":{"jison-lex":"cli.js"},"engines":{"node":">=0.4"},"dependencies":{"lex-parser":"0.1.x","nomnom":"1.5.2"},"devDependencies":{"test":"0.4.4"},"scripts":{"test":"node tests/all-tests.js"},"directories":{"lib":"lib","tests":"tests"},"homepage":"http://jison.org","_id":"jison-lex@0.2.1","dist":{"shasum":"ac4b815e8cce5132eb12b5dfcfe8d707b8844dfe","size":9425,"noattachment":false,"key":"/jison-lex/-/jison-lex-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jison-lex/download/jison-lex-0.2.1.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"zaach","email":"zack.carter@gmail.com"},"maintainers":[{"name":"zaach","email":""}],"publish_time":1371940685836,"_hasShrinkwrap":false,"_cnpm_publish_time":1371940685836},"0.2.0":{"author":{"name":"Zach Carter","email":"zach@carter.name","url":"http://zaa.ch"},"name":"jison-lex","description":"lexical analyzer generator used by jison","version":"0.2.0","keywords":["jison","parser","generator","lexer","flex","tokenizer"],"repository":{"type":"git","url":"git://github.com/zaach/jison-lex.git"},"bugs":{"email":"jison@librelist.com","url":"http://github.com/zaach/jison-lex/issues"},"main":"regexp-lexer","bin":{"jison-lex":"cli.js"},"engines":{"node":">=0.4"},"dependencies":{"lex-parser":"0.1.x","nomnom":"1.5.2"},"devDependencies":{"test":"0.4.4"},"scripts":{"test":"node tests/all-tests.js"},"directories":{"lib":"lib","tests":"tests"},"homepage":"http://jison.org","_id":"jison-lex@0.2.0","dist":{"shasum":"7eaf6a1d53d460b81827367c60b022b32ea83648","size":9455,"noattachment":false,"key":"/jison-lex/-/jison-lex-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jison-lex/download/jison-lex-0.2.0.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"zaach","email":"zack.carter@gmail.com"},"maintainers":[{"name":"zaach","email":""}],"publish_time":1366160764789,"_hasShrinkwrap":false,"_cnpm_publish_time":1366160764789},"0.1.0":{"author":{"name":"Zach Carter","email":"zach@carter.name","url":"http://zaa.ch"},"name":"jison-lex","description":"lexical analyzer generator used by jison","version":"0.1.0","keywords":["jison","parser","generator","lexer","flex","tokenizer"],"repository":{"type":"git","url":"git://github.com/zaach/jison-lex.git"},"bugs":{"email":"jison@librelist.com","url":"http://github.com/zaach/jison-lex/issues"},"main":"regexp-lexer","bin":{"jison-lex":"cli.js"},"engines":{"node":">=0.4"},"dependencies":{"lex-parser":"0.1.x","nomnom":"1.5.2"},"devDependencies":{"test":"0.4.4"},"scripts":{"test":"node tests/all-tests.js"},"directories":{"lib":"lib","tests":"tests"},"homepage":"http://jison.org","_id":"jison-lex@0.1.0","dist":{"shasum":"419539e9b960afbf9f7d84d30b0a2d2b2bfe4703","size":7928,"noattachment":false,"key":"/jison-lex/-/jison-lex-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jison-lex/download/jison-lex-0.1.0.tgz"},"_npmVersion":"1.1.63","_npmUser":{"name":"zaach","email":"zack.carter@gmail.com"},"maintainers":[{"name":"zaach","email":""}],"publish_time":1359334948115,"_hasShrinkwrap":false,"_cnpm_publish_time":1359334948115},"0.0.1":{"author":{"name":"Zach Carter","email":"zach@carter.name","url":"http://zaa.ch"},"name":"jison-lex","description":"lexical analyzer generator used by jison","version":"0.0.1","keywords":["jison","parser","generator","lexer","flex","tokenizer"],"repository":{"type":"git","url":"git://github.com/zaach/jison-lex.git"},"bugs":{"email":"jison@librelist.com","url":"http://github.com/zaach/jison-lex/issues"},"main":"regexp-lexer","bin":{"jison-lex":"cli.js"},"engines":{"node":">=0.4"},"dependencies":{"lex-parser":"0.0.1","nomnom":"1.5.2"},"devDependencies":{"test":"0.4.4"},"scripts":{"test":"node tests/all-tests.js"},"directories":{"lib":"lib","tests":"tests"},"homepage":"http://jison.org","_id":"jison-lex@0.0.1","dist":{"shasum":"c118f49b82f2a012ff92f0bf7e0c5c39c3fbff3f","size":7918,"noattachment":false,"key":"/jison-lex/-/jison-lex-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jison-lex/download/jison-lex-0.0.1.tgz"},"_npmVersion":"1.1.63","_npmUser":{"name":"zaach","email":"zack.carter@gmail.com"},"maintainers":[{"name":"zaach","email":""}],"publish_time":1359255292035,"_hasShrinkwrap":false,"_cnpm_publish_time":1359255292035}},"readme":"# jison-lex\nA lexical analyzer generator used by [jison](http://jison.org). It takes a lexical grammar definition (either in JSON or Bison's lexical grammar format) and outputs a JavaScript lexer.\n\n## install\nnpm install jison-lex -g\n\n## usage\n```\nUsage: jison-lex [file] [options]\n\nfile     file containing a lexical grammar\n\nOptions:\n   -o FILE, --outfile FILE       Filename and base module name of the generated parser\n   -t TYPE, --module-type TYPE   The type of module to generate (commonjs, js)\n   --version                     print version and exit\n```\n\n## programatic usage\n\n```\nvar JisonLex = require('jison-lex');\n\nvar grammar = {\n  rules: [\n    [\"x\", \"return 'X';\" ],\n    [\"y\", \"return 'Y';\" ],\n    [\"$\", \"return 'EOF';\" ]\n  ]\n};\n\n// or load from a file\n// var grammar = fs.readFileSync('mylexer.l', 'utf8');\n\n// generate source\nvar lexerSource = JisonLex.generate(grammar);\n\n// or create a parser in memory\nvar lexer = new JisonLex(grammar);\nlexer.setInput('xyxxy');\nlexer.lex();\n// => 'X'\nlexer.lex();\n// => 'Y'\n\n## license\nMIT\n","_attachments":{},"homepage":"http://jison.org","bugs":{"url":"http://github.com/zaach/jison-lex/issues","email":"jison@librelist.com"}}