animate/webGl/my-threejs-test/node_modules/glsl-tokenizer/string.js

14 lines
257 B
JavaScript
Raw Normal View History

2024-06-24 09:24:00 +00:00
var tokenize = require('./index')
module.exports = tokenizeString
function tokenizeString(str, opt) {
var generator = tokenize(opt)
var tokens = []
tokens = tokens.concat(generator(str))
tokens = tokens.concat(generator(null))
return tokens
}