{"name":"glsl-token-assignments","version":"1.0.0","description":"Take an array of GLSL tokens and determine which tokens are either assignments or variable definitions.","main":"index.js","license":"MIT","scripts":{"test":"npm run test:node && npm run test:browser","test:node":"node test | tap-spec","test:browser":"browserify -t 6to5ify test | tap-closer | 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","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","definitions"],"homepage":"https://github.com/stackgl/glsl-token-assignments","bugs":{"url":"https://github.com/stackgl/glsl-token-assignments/issues"},"gitHead":"29e88704d55751275364a65473c0441bafb48cdb","_id":"glsl-token-assignments@1.0.0","_shasum":"dc6555ffc21bdd3aa9da3fbee01cf3e52b99001c","_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":"dc6555ffc21bdd3aa9da3fbee01cf3e52b99001c","tarball":"http://registry-npm.ywwl.com/glsl-token-assignments/download/glsl-token-assignments-1.0.0.tgz","integrity":"sha512-uf0g+eMBMtsXJAyMBBr2yXEP/P/3co+fqPAbAo2igxvxOQuKYH1nu3y7HaTbmW6Zr8CWR+rUtFU0rBU8TtRfXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDYCxmpNXZ6gUr45aG1L+jz5dDVNEP0v36VKRSW9q3fQIhAKfICtQIF3/VLt3Ay6a04orRGnSD0pvBgigZwk15qI2B"}],"size":2581,"noattachment":false,"key":"/glsl-token-assignments/-/glsl-token-assignments-1.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":1420231770960,"_cnpm_publish_time":1420231770960,"dist-tags":{"latest":"2.0.2"}}