Note
Work in Progress
This is an ongoing page to record and document the AST (abstract syntax tree) fragments ("ASTlets"), as they are generated by the tool chain Javascript parser. It shows how certain JS syntax constructs get translated into the corresponding AST representation. This serves mainly internal purposes and should not be relevant for a qooxdoo application developer.
The notation is a simplified tree structure that names token symbols and their nesting through indentation. "|" denotes alternatives.
accessor
identifier ("a")
key
variable
identifier ("i")
call
operand
variable
identifier ("a")
params
map
keyvalue ("a")
value
constant (1)
assignment
left
variable
identifier ("a")
right
variable
identifier("b")
call
operand
variable
identifier ("a")
identifier ("b")
identifier ("c")
params
variable
identifier ("d")
accessor
left
call
operand
variable
identifier ("a")
identifier ("b")
right
call
operand
variable
identifier ("c")
params
variable
identifier ("d")
file
call
operand
variable
identifier ("a")
identifier ("b")
params
constant ("c")
map
keyvalue ("d")
value
variable
identifier ("e")
(anonymous function immediately called)
call
operand
group
function
params
body
block
return
expression
constant ("3")
(anonymous function immediately called - no paren)
call
operand
function
params
body
block
return
expression
constant ("3")