stackgl / glsl-parser

transform streamed glsl tokens into an ast
MIT License
98 stars 15 forks source link

Test fails #16

Closed dy closed 6 years ago

dy commented 8 years ago

My actual test fails with

> node test/index.js | tap-spec

C:\Users\dmitry\Dropbox\Projects\glsl-parser\lib\index.js:608
        throw err
        ^

Error: unknown operator `\` at line 10
    at Array.unexpected (C:\Users\dmitry\Dropbox\Projects\glsl-parser\lib\index.js:661:11)
    at advance (C:\Users\dmitry\Dropbox\Projects\glsl-parser\lib\expr.js:241:20)
    at expression (C:\Users\dmitry\Dropbox\Projects\glsl-parser\lib\expr.js:154:3)
    at module.exports (C:\Users\dmitry\Dropbox\Projects\glsl-parser\lib\expr.js:116:12)
    at parseexpr (C:\Users\dmitry\Dropbox\Projects\glsl-parser\lib\index.js:605:9)
    at parse_expr (C:\Users\dmitry\Dropbox\Projects\glsl-parser\lib\index.js:582:14)
    at write (C:\Users\dmitry\Dropbox\Projects\glsl-parser\lib\index.js:192:18)
    at reader (C:\Users\dmitry\Dropbox\Projects\glsl-parser\lib\index.js:166:5)
    at DestroyableTransform.write [as _transform] (C:\Users\dmitry\Dropbox\Projects\glsl-parser\stream.js:16:17)
    at DestroyableTransform.Transform._read (C:\Users\dmitry\Dropbox\Projects\glsl-parser\node_modules\readable-stream\l
ib\_stream_transform.js:184:10)

  selector stream
  Fail!

npm ERR! Test failed.  See above for more details.