StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
# glsl-token-assignments
|
|
|
|
[](http://github.com/badges/stability-badges)
|
|
|
|
Take an array of GLSL tokens and determine which tokens are either assignments
|
|
or variable declarations.
|
|
|
|
## Usage
|
|
|
|
[](https://nodei.co/npm/glsl-token-assignments/)
|
|
|
|
### `assignments(tokens)`
|
|
|
|
Takes an array of GLSL tokens from
|
|
[`glsl-tokenizer`](http://github.com/stackgl/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.:
|
|
|
|
``` glsl
|
|
struct X {
|
|
float member1;
|
|
float member2;
|
|
};
|
|
```
|
|
|
|
The `tokens` array will be modified in-place.
|
|
|
|
## License
|
|
|
|
MIT. See [LICENSE.md](http://github.com/stackgl/glsl-token-assignments/blob/master/LICENSE.md) for details.
|
|
|