Skip to content

Commit c7b76c0

Browse files
bump version, allow inserted children in expr
1 parent ce18476 commit c7b76c0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/expr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var state
44
, idx
55

66
var original_symbol = {
7-
nud: fail('undefined')
7+
nud: function() { return this.children && this.children.length ? this : fail('unexpected')() }
88
, led: fail('missing operator')
99
}
1010

@@ -230,6 +230,7 @@ function advance(id) {
230230

231231
if(type === 'ident') {
232232
output = state.scope.find(value) || state.create_node()
233+
type = output.type
233234
} else if(type === 'builtin') {
234235
output = symbol_table['(builtin)']
235236
} else if(type === 'keyword') {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "glsl-parser",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "transform streamed glsl tokens into an ast",
55
"main": "index.js",
66
"dependencies": {

0 commit comments

Comments
 (0)