{"name":"glsl-token-assignments","version":"2.0.0","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":"git://github.com/stackgl/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":"4286dfe7c7b8a7f02a9bc0add0909afb4b915830","_id":"glsl-token-assignments@2.0.0","_shasum":"3aa1c7ca030fd04323143c11d7a302564388e70a","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.28","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"dist":{"shasum":"3aa1c7ca030fd04323143c11d7a302564388e70a","tarball":"http://registry-npm.ywwl.com/glsl-token-assignments/download/glsl-token-assignments-2.0.0.tgz","integrity":"sha512-X7VxpzzWbuwOzQSgo9Ftg26inro9S47zzTntDxdXxYzA6Y/OLIj468LU/K3DI/oHptOpw01Wxjbc8AbSR3stDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAIkr/0ll+tVRFAtYalw7Rg0T+jQvsKIrWIcfXTkDcAKAiAMWaAR5d1wrTg2yhMBFTmbeitcIR/Q7Yzy6fcr3xx5jw=="}],"size":3110,"noattachment":false,"key":"/glsl-token-assignments/-/glsl-token-assignments-2.0.0.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":1420403447796,"_cnpm_publish_time":1420403447796,"dist-tags":{"latest":"2.0.2"}}