glsl-token-properties
Takes an array of GLSL tokens and determines whether or not they're a property
of another identifier.
Usage
properties(tokens)
Takes an array of GLSL tokens
from
glsl-tokenizer
and sets a
property
boolean for whether or not the token is a property.
var tokenizer = require('glsl-tokenizer/string')
var properties = require('glsl-token-properties')
var src = 'some.value[2];'
var tokens = tokenizer(src)
properties(tokens)
tokens[0].data
tokens[0].property
tokens[2].data
tokens[2].property
tokens[4].data
tokens[4].property
See Also
License
MIT. See LICENSE.md for details.