{"name":"glsl-token-assignments","version":"2.0.1","description":"Take an array of GLSL tokens and determine which tokens are either assignments or variable declarations.","main":"index.js","license":"MIT","scripts":{"test":"npm run test:node && npm run test:browser","test:node":"node test | tap-spec","test:eyeball":"PRETTY=1 node test > /dev/null","test:browser":"browserify -t 6to5ify test | tap-closer | smokestack | tap-spec","test:browser:view":"browserify -t 6to5ify test | smokestack | tap-spec"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"dependencies":{},"devDependencies":{"6to5":"^2.4.8","6to5ify":"^3.1.0","browserify":"^8.0.3","chalk":"^0.5.1","glsl-tokenizer":"^2.0.0","smokestack":"^3.0.0","tap-closer":"^1.0.0","tap-spec":"^2.1.2","tape":"^3.0.3"},"repository":{"type":"git","url":"git://github.com/stackgl/glsl-token-assignments.git"},"keywords":["ecosystem:stackgl","pseudoparser","syntax","glsl","tokens","assignments","declarations"],"homepage":"https://github.com/stackgl/glsl-token-assignments","bugs":{"url":"https://github.com/stackgl/glsl-token-assignments/issues"},"gitHead":"849e9dadde8b64745a41a16e7ec5127b8c006f7c","_id":"glsl-token-assignments@2.0.1","_shasum":"d721bd2f42b4d33698ef067cd807f1c5ff3127e6","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.36","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"substack","email":"mail@substack.net"}],"dist":{"shasum":"d721bd2f42b4d33698ef067cd807f1c5ff3127e6","tarball":"http://registry-npm.ywwl.com/glsl-token-assignments/download/glsl-token-assignments-2.0.1.tgz","integrity":"sha512-nnNy6t0F15AJAuRD0y7aFoTOkbw8zmsH0L8Rx+cjAf6zOqkgSNxHdvrG/jFrVn1rtXE7eNYL9uMi4Sw12/5cXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICGRni7IkcvjFf/sqL6YH+1KQB7021AimjxeMT8+XM5mAiEAmVngcKJoeToqgG6pddf3RyqpjQw6GHe2HFBhZeStplE="}],"size":3112,"noattachment":false,"key":"/glsl-token-assignments/-/glsl-token-assignments-2.0.1.tgz"},"directories":{},"readme":"# glsl-token-assignments\n\n[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)\n\nTake an array of GLSL tokens and determine which tokens are either assignments\nor variable declarations.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/glsl-token-assignments.png)](https://nodei.co/npm/glsl-token-assignments/)\n\n### `assignments(tokens)`\n\nTakes an array of GLSL tokens from\n[`glsl-tokenizer`](http://github.com/stackgl/glsl-tokenizer) and sets the\nfollowing boolean values for each `ident` token, i.e. any variable names:\n\n#### `token.assignment`\n\nIf the value of the variable is being changed here.\n\n#### `token.declaration`\n\nIf a new variable is being defined here for this scope.\n\n#### `token.structMember`\n\nIf this token is specifying a new struct member, e.g.:\n\n``` glsl\nstruct X {\n  float member1;\n  float member2;\n};\n```\n\nThe `tokens` array will be modified in-place.\n\n## License\n\nMIT. See [LICENSE.md](http://github.com/stackgl/glsl-token-assignments/blob/master/LICENSE.md) for details.\n","publish_time":1425685426884,"_cnpm_publish_time":1425685426884,"dist-tags":{"latest":"2.0.2"}}