/ piacw.com / dev / final / node_modules / glsl-token-assignments /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]assignments.js2 years ago217 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]ignored.js2 years ago401 0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]README.md2 years ago1.0K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]LICENSE.md2 years ago1.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2 years ago2.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]index.js2 years ago4.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
README.md

glsl-token-assignments

experimental

Take an array of GLSL tokens and determine which tokens are either assignments or variable declarations.

Usage

NPM

assignments(tokens)

Takes an array of GLSL tokens from glsl-tokenizer and sets the following boolean values for each ident token, i.e. any variable names:

token.assignment

If the value of the variable is being changed here.

token.declaration

If a new variable is being defined here for this scope.

token.structMember

If this token is specifying a new struct member, e.g.:

struct X {
  float member1;
  float member2;
};

The tokens array will be modified in-place.

License

MIT. See LICENSE.md for details.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80