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.
 
 
 
 
StackGenVis/frontend/node_modules/glsl-token-defines
Angelos Chatzimparmpas e069030893 fix the frontend 3 years ago
..
LICENSE.md fix the frontend 3 years ago
README.md fix the frontend 3 years ago
index.js fix the frontend 3 years ago
package.json fix the frontend 3 years ago

README.md

glsl-token-defines

experimental

Retrieve the values defined with preprocessor statements in a selection of GLSL tokens.

Doesn't handle full function-style macros for the time being. Patches welcome!

Usage

NPM

defs = defines(tokens)

Where tokens is an array of tokens produced by glsl-tokenizer.

Returns an dictionary object where keys are the name of the defined variable, and values are the values of the defined variable. If a variable is not assigned a value, this will be an empty string.

For example, the following:

#define PI 3.14
#define TAU (PI*2.)
#define VEC vec3(1.)
#define EMPTY

Would yield:

{
  PI: '3.14',
  TAU: '(PI*2.)',
  VEC: 'vec3(1.)',
  EMPTY: ''
}

Contributing

See stackgl/contributing for details.

License

MIT. See LICENSE.md for details.