Fix 'For' statement in JavaScript parser

db4
Chris Double 2008-06-30 11:29:57 +12:00
parent e14bb84a5a
commit 9c96edb805
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ Binding = Name:n "=" Expr:v => [[ n v ast-var
| Name:n => [[ n "undefined" ast-get boa ast-var boa ]] | Name:n => [[ n "undefined" ast-get boa ast-var boa ]]
Block = "{" SrcElems:ss "}" => [[ ss ]] Block = "{" SrcElems:ss "}" => [[ ss ]]
Bindings = (Binding ("," Binding => [[ second ]])* => [[ first2 swap prefix ]])? Bindings = (Binding ("," Binding => [[ second ]])* => [[ first2 swap prefix ]])?
For1 = "var" Binding => [[ second ]] For1 = "var" Bindings => [[ second ]]
| Expr | Expr
| Spaces => [[ "undefined" ast-get boa ]] | Spaces => [[ "undefined" ast-get boa ]]
For2 = Expr For2 = Expr