1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Flatten out python trees a bit

This commit is contained in:
Timothy Clem 2018-01-19 07:51:01 -08:00
parent 03a8b4fe40
commit a1fb0a1ee5
62 changed files with 468 additions and 669 deletions

View File

@ -169,17 +169,13 @@ expressionChoices =
]
expressions :: Assignment
expressions = makeTerm <$> location <*> manyTerm expression
expressions = makeTerm'' <$> location <*> manyTerm expression
expressionStatement :: Assignment
expressionStatement = mk <$> symbol ExpressionStatement <*> children (someTerm expression)
where mk _ [child] = child
mk location children = makeTerm location children
expressionStatement = makeTerm'' <$> symbol ExpressionStatement <*> children (someTerm expression)
expressionList :: Assignment
expressionList = mk <$> symbol ExpressionList <*> children (someTerm expression)
where mk _ [child] = child
mk location children = makeTerm location children
expressionList = makeTerm'' <$> symbol ExpressionList <*> children (someTerm expression)
listSplat :: Assignment
listSplat = makeTerm <$> symbol ListSplat <*> (Syntax.Identifier <$> source)

View File

@ -5,17 +5,15 @@
{+(Identifier)+}
{+(Identifier)+}
{+(Identifier)+}
{+(
{+(Identifier)+})+})+}
{+(Identifier)+})+}
{+(Empty)+})+}
{+(Identifier)+})+}
(Annotation
(Annotation
(Function
(Identifier)
(
{ (Identifier)
->(Identifier) }))
{ (Identifier)
->(Identifier) })
(Empty))
(Identifier))
(Annotation
@ -26,9 +24,8 @@
{ (Identifier)
->(Identifier) }
{-(Identifier)-}
(
{ (Identifier)
->(Identifier) }))
{ (Identifier)
->(Identifier) })
(Empty))
(Identifier))
{-(Annotation
@ -36,7 +33,6 @@
{-(Function
{-(Identifier)-}
{-(Identifier)-}
{-(
{-(Identifier)-})-})-}
{-(Identifier)-})-}
{-(Empty)-})-}
{-(Identifier)-})-})

View File

@ -5,17 +5,15 @@
{-(Identifier)-}
{-(Identifier)-}
{-(Identifier)-}
{-(
{-(Identifier)-})-})-}
{-(Identifier)-})-}
{-(Empty)-})-}
{-(Identifier)-})-}
(Annotation
(Annotation
(Function
(Identifier)
(
{ (Identifier)
->(Identifier) }))
{ (Identifier)
->(Identifier) })
(Empty))
(Identifier))
(Annotation
@ -26,9 +24,8 @@
{ (Identifier)
->(Identifier) }
{+(Identifier)+}
(
{ (Identifier)
->(Identifier) }))
{ (Identifier)
->(Identifier) })
(Empty))
(Identifier))
{+(Annotation
@ -36,7 +33,6 @@
{+(Function
{+(Identifier)+}
{+(Identifier)+}
{+(
{+(Identifier)+})+})+}
{+(Identifier)+})+}
{+(Empty)+})+}
{+(Identifier)+})+})

View File

@ -3,8 +3,7 @@
(Annotation
(Function
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Identifier))
(Annotation
@ -13,8 +12,7 @@
(Identifier)
(Identifier)
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Identifier))
(Annotation
@ -22,7 +20,6 @@
(Function
(Identifier)
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Identifier)))

View File

@ -5,16 +5,14 @@
(Identifier)
(Identifier)
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Identifier))
(Annotation
(Annotation
(Function
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Identifier))
(Annotation
@ -22,7 +20,6 @@
(Function
(Identifier)
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Identifier)))

View File

@ -3,33 +3,28 @@
{ (Identifier)
->(Identifier) }
{+(Identifier)+}
(
(Annotation
(Function
(Annotation
(Function
{ (Identifier)
->(Identifier) }
(Identifier)
(Return
{ (Identifier)
->(Identifier) }
(Identifier)
(
(Return
{ (Identifier)
->(Empty) })))
(Empty))))
->(Empty) }))
(Empty)))
{-(Class
{-(Identifier)-}
{-(
{-(NoOp
{-(Empty)-})-})-})-}
{-(NoOp
{-(Empty)-})-})-}
(Class
(Identifier)
{-(Identifier)-}
(
(Annotation
(Function
{ (Identifier)
->(Identifier) }
(Identifier)
(
(Return
{ (Empty)
->(Identifier) })))
(Empty)))))
(Annotation
(Function
{ (Identifier)
->(Identifier) }
(Identifier)
(Return
{ (Empty)
->(Identifier) }))
(Empty))))

View File

@ -3,33 +3,28 @@
{ (Identifier)
->(Identifier) }
{-(Identifier)-}
(
(Annotation
(Function
{ (Identifier)
->(Identifier) }
(Identifier)
(
(Return
{ (Empty)
->(Identifier) })))
(Empty))))
(Annotation
(Function
{ (Identifier)
->(Identifier) }
(Identifier)
(Return
{ (Empty)
->(Identifier) }))
(Empty)))
{+(Class
{+(Identifier)+}
{+(
{+(NoOp
{+(Empty)+})+})+})+}
{+(NoOp
{+(Empty)+})+})+}
(Class
(Identifier)
{+(Identifier)+}
(
(Annotation
(Function
(Annotation
(Function
{ (Identifier)
->(Identifier) }
(Identifier)
(Return
{ (Identifier)
->(Identifier) }
(Identifier)
(
(Return
{ (Identifier)
->(Empty) })))
(Empty)))))
->(Empty) }))
(Empty))))

View File

@ -1,29 +1,24 @@
(Program
(Class
(Identifier)
(
(Annotation
(Function
(Identifier)
(Identifier)
(
(Return
(Identifier))))
(Empty))))
(Annotation
(Function
(Identifier)
(Identifier)
(Return
(Identifier)))
(Empty)))
(Class
(Identifier)
(
(NoOp
(Empty))))
(NoOp
(Empty)))
(Class
(Identifier)
(Identifier)
(
(Annotation
(Function
(Identifier)
(Identifier)
(
(Return
(Empty))))
(Empty)))))
(Annotation
(Function
(Identifier)
(Identifier)
(Return
(Empty)))
(Empty))))

View File

@ -2,23 +2,19 @@
(Class
(Identifier)
(Identifier)
(
(Annotation
(Function
(Identifier)
(Identifier)
(
(Return
(Empty))))
(Empty))))
(Annotation
(Function
(Identifier)
(Identifier)
(Return
(Empty)))
(Empty)))
(Class
(Identifier)
(
(Annotation
(Function
(Identifier)
(Identifier)
(
(Return
(Identifier))))
(Empty)))))
(Annotation
(Function
(Identifier)
(Identifier)
(Return
(Identifier)))
(Empty))))

View File

@ -4,23 +4,20 @@
{+(If
{+(Identifier)+}
{+(Identifier)+}
{+(
{+(Identifier)+})+})+})+}
{+(Identifier)+})+})+}
(If
{ (Identifier)
->(Identifier) }
(Call
(Identifier)
(Empty))
(
{+(Call
{+(Identifier)+}
{+(Empty)+})+}
{-(Identifier)-}))
{ (Identifier)
->(Call
{+(Identifier)+}
{+(Empty)+}) })
{-(Assignment
{-(Identifier)-}
{-(If
{-(Identifier)-}
{-(Identifier)-}
{-(
{-(Identifier)-})-})-})-})
{-(Identifier)-})-})-})

View File

@ -4,8 +4,7 @@
{+(Call
{+(Identifier)+}
{+(Empty)+})+}
{+(
{+(Identifier)+})+})+}
{+(Identifier)+})+}
(Assignment
{ (Identifier)
->(Identifier) }
@ -14,15 +13,13 @@
->(Identifier) }
{ (Identifier)
->(Identifier) }
(
{ (Identifier)
->(Identifier) })))
{ (Identifier)
->(Identifier) }))
{-(If
{-(Identifier)-}
{-(Call
{-(Identifier)-}
{-(Empty)-})-}
{-(
{-(Call
{-(Identifier)-}
{-(Empty)-})-})-})-})
{-(Call
{-(Identifier)-}
{-(Empty)-})-})-})

View File

@ -4,12 +4,10 @@
(Call
(Identifier)
(Empty))
(
(Identifier)))
(Identifier))
(Assignment
(Identifier)
(If
(Identifier)
(Identifier)
(
(Identifier)))))
(Identifier))))

View File

@ -4,14 +4,12 @@
(If
(Identifier)
(Identifier)
(
(Identifier))))
(Identifier)))
(If
(Identifier)
(Call
(Identifier)
(Empty))
(
(Call
(Identifier)
(Empty)))))
(Call
(Identifier)
(Empty))))

View File

@ -6,66 +6,62 @@
(Class
{ (Identifier)
->(Identifier) }
(
(Decorator
(ScopeResolution
(Identifier))
([])
(Decorator
(ScopeResolution
(Identifier))
([])
{ (Identifier)
->(Identifier) })
{+(Identifier)+}
{-(Integer)-}
(Decorator
(ScopeResolution
{ (Identifier)
->(Identifier) })
(
{+(Identifier)+}
{-(Integer)-})
{+(Identifier)+}
{-(
{-(Integer)-}
{-(Integer)-})-}
(Decorator
(ScopeResolution
{ (Identifier)
->(Identifier) })
(
{+(Identifier)+}
{-(Integer)-}
{-(Integer)-})
(Decorator
(ScopeResolution
(Identifier))
(
{+(Integer)+}
(Assignment
{ (Identifier)
->(Identifier) }
(Boolean))
(Identifier))
{+(
{+(Integer)+}
{+(Assignment
{+(Identifier)+}
{+(Identifier)+})
{ (Decorator
{+(Boolean)+})+}
{+(Identifier)+}
{+(Identifier)+})+}
{-(Assignment
{-(Identifier)-}
{-(Boolean)-})-}
{ (Decorator
{-(ScopeResolution
{-(Identifier)-})-}
{-(Identifier)-}
{-(Decorator
{-(ScopeResolution
{-(Identifier)-})-}
{-(
{-(Identifier)-})-}
{-(Identifier)-}
{-(Decorator
{-(ScopeResolution
{-(Identifier)-})-}
{-(
{-(Integer)-}
{-(Assignment
{-(Identifier)-}
{-(Boolean)-})-}
{-(Identifier)-}
{-(Identifier)-})-}
{-(Decorator
{-(ScopeResolution
{-(Identifier)-})-}
{-(
{-(Integer)-}
{-(Assignment
{-(Identifier)-}
{-(Boolean)-})-}
{-(Annotation
{-(Function
{-(Identifier)-}
{-(Identifier)-})-}
{-(Annotation
{-(Function
{-(Identifier)-}
{-(
{-(Identifier)-})-})-}
{-(Empty)-})-})-})-})
->(Annotation
{+(Function
{+(Identifier)+}
{+(
{+(Identifier)+})+})+}
{+(Empty)+}) }))))))))
{-(Empty)-})-})-})-})
->(Annotation
{+(Function
{+(Identifier)+}
{+(Identifier)+})+}
{+(Empty)+}) })))))))

View File

@ -6,68 +6,62 @@
(Class
{ (Identifier)
->(Identifier) }
(
(Decorator
(ScopeResolution
(Identifier))
([])
(Decorator
(ScopeResolution
(Identifier))
([])
{ (Identifier)
->(Identifier) })
{+(Integer)+}
{-(Identifier)-}
(Decorator
(ScopeResolution
{ (Identifier)
->(Identifier) })
(
{+(
{+(Integer)+}
{-(Identifier)-})
{+(Integer)+})+}
{-(Identifier)-}
(Decorator
(ScopeResolution
{ (Identifier)
->(Identifier) })
(
{+(Integer)+}
{+(Integer)+}
{-(Identifier)-})
(Decorator
(ScopeResolution
(Identifier))
(
{+(Assignment
{+(Identifier)+}
{+(Boolean)+})+}
{-(Integer)-}
{-(Assignment
{-(Identifier)-}
{-(Boolean)-})-}
(Identifier))
{+(Assignment
{+(Identifier)+}
{+(Boolean)+})+}
{-(
{-(Integer)-}
{-(Assignment
{-(Identifier)-}
{-(Identifier)-})
{ (Annotation
{-(Function
{-(Identifier)-}
{-(
{-(Identifier)-})-})-}
{-(Empty)-})
->(Decorator
{-(Boolean)-})-}
{-(Identifier)-}
{-(Identifier)-})-}
{ (Annotation
{-(Function
{-(Identifier)-}
{-(Identifier)-})-}
{-(Empty)-})
->(Decorator
{+(ScopeResolution
{+(Identifier)+})+}
{+(Identifier)+}
{+(Decorator
{+(ScopeResolution
{+(Identifier)+})+}
{+(
{+(Identifier)+})+}
{+(Identifier)+}
{+(Decorator
{+(ScopeResolution
{+(Identifier)+})+}
{+(
{+(Integer)+}
{+(Assignment
{+(Identifier)+}
{+(Boolean)+})+}
{+(Identifier)+}
{+(Identifier)+})+}
{+(Decorator
{+(ScopeResolution
{+(Identifier)+})+}
{+(
{+(Integer)+}
{+(Assignment
{+(Identifier)+}
{+(Boolean)+})+}
{+(Annotation
{+(Function
{+(Identifier)+}
{+(Identifier)+})+}
{+(Annotation
{+(Function
{+(Identifier)+}
{+(
{+(Identifier)+})+})+}
{+(Empty)+})+})+})+}) }))))))))
{+(Empty)+})+})+})+}) })))))))

View File

@ -5,52 +5,46 @@
(Identifier))
(Class
(Identifier)
(
(Decorator
(ScopeResolution
(Identifier))
([])
(Decorator
(ScopeResolution
(Identifier))
([])
(Integer)
(Decorator
(ScopeResolution
(Identifier))
(
(Integer)
(Integer))
(Decorator
(ScopeResolution
(Identifier))
(
(Integer)
(Integer))
(Assignment
(Identifier)
(Boolean))
(Decorator
(ScopeResolution
(Identifier))
(
(Assignment
(Identifier)
(Boolean)))
(Identifier)
(Decorator
(ScopeResolution
(Identifier))
(
(Identifier))
(Identifier)
(Decorator
(ScopeResolution
(Identifier))
(
(Integer)
(Assignment
(Identifier)
(Boolean))
(Identifier)
(Identifier))
(Decorator
(ScopeResolution
(Identifier))
(
(Integer)
(Assignment
(Identifier)
(Boolean))
(Annotation
(Function
(Identifier)
(Identifier))
(Annotation
(Function
(Identifier)
(
(Identifier)))
(Empty)))))))))))))
(Empty))))))))))))

View File

@ -5,34 +5,30 @@
(Identifier))
(Class
(Identifier)
(
(Decorator
(ScopeResolution
(Identifier))
([])
(Decorator
(ScopeResolution
(Identifier))
([])
(Identifier)
(Decorator
(ScopeResolution
(Identifier))
(
(Identifier))
(Identifier)
(Decorator
(ScopeResolution
(Identifier))
(
(Integer)
(Assignment
(Identifier)
(Boolean))
(Identifier)
(Identifier))
(Decorator
(ScopeResolution
(Identifier))
(
(Integer)
(Assignment
(Identifier)
(Boolean))
(Annotation
(Function
(Identifier)
(Identifier))
(Annotation
(Function
(Identifier)
(
(Identifier)))
(Empty))))))))))
(Empty)))))))))

View File

@ -6,14 +6,12 @@
{ (Identifier)
->(Identifier) })
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })
{+(
{+(Identifier)+})+}))
{+(Identifier)+}
{+(Identifier)+})+}
{ (Identifier)
->(Identifier) }
{-(Identifier)-}))
(Comprehension
(KeyValue
{ (Identifier)
@ -21,11 +19,9 @@
{ (Identifier)
->(Integer) })
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })
{+(Identifier)+}
{+(Identifier)+}
{-(
{-(Identifier)-})-})))
{-(Identifier)-}
{-(Identifier)-})-}
{-(Identifier)-})))

View File

@ -6,14 +6,12 @@
{ (Identifier)
->(Identifier) })
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })
{+(Identifier)+}
{+(Identifier)+}
{-(
{-(Identifier)-})-}))
{-(Identifier)-}
{-(Identifier)-})-}
{-(Identifier)-}))
(Comprehension
(KeyValue
{ (Identifier)
@ -21,11 +19,9 @@
{ (Integer)
->(Identifier) })
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })
{+(
{+(Identifier)+})+})))
{+(Identifier)+}
{+(Identifier)+})+}
{ (Identifier)
->(Identifier) }
{-(Identifier)-})))

View File

@ -4,18 +4,14 @@
(Identifier)
(Identifier))
(
(
(
(Identifier))
(Identifier))))
(Identifier)
(Identifier)))
(Comprehension
(KeyValue
(Identifier)
(Identifier))
(
(
(
(Identifier))
(Identifier)
(Identifier))
(
(Identifier)))))
(Identifier))))

View File

@ -5,17 +5,13 @@
(Identifier))
(
(
(
(Identifier))
(Identifier)
(Identifier))
(
(Identifier))))
(Identifier)))
(Comprehension
(KeyValue
(Identifier)
(Integer))
(
(
(
(Identifier))
(Identifier)))))
(Identifier)
(Identifier))))

View File

@ -1,7 +1,6 @@
(Program
{+(ForEach
{+(
{+(Identifier)+})+}
{+(Identifier)+}
{+(Array
{+(Tuple
{+(Integer)+})+}
@ -34,15 +33,13 @@
(Identifier)
(Identifier)
(Empty))))))
(
(Call
(Identifier)
{ (Identifier)
->(Identifier) }
(Empty))))
(Call
(Identifier)
{ (Identifier)
->(Identifier) }
(Empty)))
{-(ForEach
{-(
{-(Identifier)-})-}
{-(Identifier)-}
{-(Array
{-(Tuple
{-(Integer)-})-}

View File

@ -20,15 +20,13 @@
{+(Identifier)+}
{+(Identifier)+}
{+(Empty)+})+})+})+})+})+}
{+(
{+(Call
{+(Identifier)+}
{+(Identifier)+}
{+(Empty)+})+})+})+}
{+(Call
{+(Identifier)+}
{+(Identifier)+}
{+(Empty)+})+})+}
(ForEach
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(Array
(Tuple
(Integer))
@ -60,8 +58,7 @@
{-(Identifier)-}
{-(Identifier)-}
{-(Empty)-})-})-})-})-})-}
{-(
{-(Call
{-(Identifier)-}
{-(Identifier)-}
{-(Empty)-})-})-})-})
{-(Call
{-(Identifier)-}
{-(Identifier)-}
{-(Empty)-})-})-})

View File

@ -20,14 +20,12 @@
(Identifier)
(Identifier)
(Empty))))))
(
(Call
(Identifier)
(Identifier)
(Empty))))
(Call
(Identifier)
(Identifier)
(Empty)))
(ForEach
(
(Identifier))
(Identifier)
(Array
(Tuple
(Integer))

View File

@ -1,7 +1,6 @@
(Program
(ForEach
(
(Identifier))
(Identifier)
(Array
(Tuple
(Integer))
@ -32,8 +31,7 @@
(Identifier)
(Identifier)
(Empty))))))
(
(Call
(Identifier)
(Identifier)
(Empty)))))
(Call
(Identifier)
(Identifier)
(Empty))))

View File

@ -2,15 +2,13 @@
{-(Annotation
{-(Function
{-(Identifier)-}
{-(
{-(Identifier)-})-})-}
{-(Identifier)-})-}
{-(Empty)-})-}
{-(Annotation
{-(Function
{-(Identifier)-}
{-(Identifier)-}
{-(
{-(Identifier)-})-})-}
{-(Identifier)-})-}
{-(Empty)-})-}
(Annotation
(Function
@ -19,9 +17,8 @@
->(Identifier) }
{ (Identifier)
->(Identifier) }
(
{ (Identifier)
->(Identifier) }))
{ (Identifier)
->(Identifier) })
(Empty))
(Annotation
(Function
@ -30,16 +27,14 @@
{-(Assignment
{-(Identifier)-}
{-(Identifier)-})-}
(
{ (Identifier)
->(Identifier) }))
{ (Identifier)
->(Identifier) })
(Empty))
{+(Annotation
{+(Function
{+(Identifier)+}
{+(Identifier)+}
{+(
{+(Identifier)+})+})+}
{+(Identifier)+})+}
{+(Empty)+})+}
(Annotation
(Function
@ -53,6 +48,5 @@
->(Identifier) })
{ (Identifier)
->(Identifier) }
(
(Identifier)))
(Identifier))
(Empty)))

View File

@ -5,17 +5,15 @@
->(Identifier) }
{-(Identifier)-}
{-(Identifier)-}
(
{ (Identifier)
->(Identifier) }))
{ (Identifier)
->(Identifier) })
(Empty))
(Annotation
(Function
(Identifier)
{+(Identifier)+}
(
{ (Identifier)
->(Identifier) }))
{ (Identifier)
->(Identifier) })
(Empty))
(Annotation
(Function
@ -24,9 +22,8 @@
{ (Identifier)
->(Identifier) }
{+(Identifier)+}
(
{ (Identifier)
->(Identifier) }))
{ (Identifier)
->(Identifier) })
(Empty))
{+(Annotation
{+(Function
@ -34,8 +31,7 @@
{+(Assignment
{+(Identifier)+}
{+(Identifier)+})+}
{+(
{+(Identifier)+})+})+}
{+(Identifier)+})+}
{+(Empty)+})+}
(Annotation
(Function
@ -49,6 +45,5 @@
->(Identifier) })
{ (Identifier)
->(Identifier) }
(
(Identifier)))
(Identifier))
(Empty)))

View File

@ -2,23 +2,20 @@
(Annotation
(Function
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Annotation
(Function
(Identifier)
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Annotation
(Function
(Identifier)
(Identifier)
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Annotation
(Function
@ -26,8 +23,7 @@
(Assignment
(Identifier)
(Identifier))
(
(Identifier)))
(Identifier))
(Empty))
(Annotation
(Function
@ -38,6 +34,5 @@
(TextElement))
(Identifier))
(Identifier)
(
(Identifier)))
(Identifier))
(Empty)))

View File

@ -4,21 +4,18 @@
(Identifier)
(Identifier)
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Annotation
(Function
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Annotation
(Function
(Identifier)
(Identifier)
(
(Identifier)))
(Identifier))
(Empty))
(Annotation
(Function
@ -29,6 +26,5 @@
(Integer))
(Identifier))
(Identifier)
(
(Identifier)))
(Identifier))
(Empty)))

View File

@ -3,21 +3,17 @@
{ (Identifier)
->(Identifier) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })))
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }))
(Comprehension
{ (Identifier)
->(Plus
{+(Identifier)+}
{+(Integer)+}) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }))))
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))

View File

@ -3,21 +3,17 @@
{ (Identifier)
->(Identifier) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })))
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }))
(Comprehension
{ (Plus
{-(Identifier)-}
{-(Integer)-})
->(Identifier) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }))))
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))

View File

@ -2,14 +2,10 @@
(Comprehension
(Identifier)
(
(
(
(Identifier))
(Identifier))))
(Identifier)
(Identifier)))
(Comprehension
(Identifier)
(
(
(
(Identifier))
(Identifier)))))
(Identifier)
(Identifier))))

View File

@ -2,16 +2,12 @@
(Comprehension
(Identifier)
(
(
(
(Identifier))
(Identifier))))
(Identifier)
(Identifier)))
(Comprehension
(Plus
(Identifier)
(Integer))
(
(
(
(Identifier))
(Identifier)))))
(Identifier)
(Identifier))))

View File

@ -4,10 +4,9 @@
{ (Identifier)
->(Identifier) })
(Empty)
(
(ScopeResolution
{ (Identifier)
->(Identifier) })))
(ScopeResolution
{ (Identifier)
->(Identifier) }))
(Import
(ScopeResolution
{ (Identifier)

View File

@ -4,10 +4,9 @@
{ (Identifier)
->(Identifier) })
(Empty)
(
(ScopeResolution
{ (Identifier)
->(Identifier) })))
(ScopeResolution
{ (Identifier)
->(Identifier) }))
(Import
(ScopeResolution
{ (Identifier)

View File

@ -3,9 +3,8 @@
(ScopeResolution
(Identifier))
(Empty)
(
(ScopeResolution
(Identifier))))
(ScopeResolution
(Identifier)))
(Import
(ScopeResolution
(Identifier))

View File

@ -3,9 +3,8 @@
(ScopeResolution
(Identifier))
(Empty)
(
(ScopeResolution
(Identifier))))
(ScopeResolution
(Identifier)))
(Import
(ScopeResolution
(Identifier))

View File

@ -3,9 +3,8 @@
(Function
(Empty)
{+(Identifier)+}
(
(Plus
{ (Integer)
->(Identifier) }
(Integer))))
(Plus
{ (Integer)
->(Identifier) }
(Integer)))
(Empty)))

View File

@ -3,9 +3,8 @@
(Function
(Empty)
{-(Identifier)-}
(
(Plus
{ (Identifier)
->(Integer) }
(Integer))))
(Plus
{ (Identifier)
->(Integer) }
(Integer)))
(Empty)))

View File

@ -2,8 +2,7 @@
(Annotation
(Function
(Empty)
(
(Plus
(Integer)
(Integer))))
(Plus
(Integer)
(Integer)))
(Empty)))

View File

@ -3,8 +3,7 @@
(Function
(Empty)
(Identifier)
(
(Plus
(Identifier)
(Integer))))
(Plus
(Identifier)
(Integer)))
(Empty)))

View File

@ -3,35 +3,29 @@
{ (Identifier)
->(Identifier) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })
{+(
{+(Call
{+(Identifier)+}
{+(Empty)+})+})+}
{+(
{+(
{+(Identifier)+})+}
{+(Identifier)+}
{+(Identifier)+})+}
{+(Call
{+(Identifier)+}
{+(Empty)+})+}
{+(
{+(Call
{+(Identifier)+}
{+(Empty)+})+})+}))
{+(Identifier)+}
{+(Identifier)+})+}
{+(Call
{+(Identifier)+}
{+(Empty)+})+}
{-(Identifier)-}
{-(Identifier)-}))
(Comprehension
{ (Identifier)
->(Plus
{+(Identifier)+}
{+(Integer)+}) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })
{+(Identifier)+}
{+(Identifier)+}
{-(
{-(Identifier)-})-})))
{-(Identifier)-}
{-(Identifier)-})-}
{-(Identifier)-})))

View File

@ -3,35 +3,29 @@
{ (Identifier)
->(Identifier) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })
{+(Identifier)+}
{+(Identifier)+}
{-(
{-(Call
{-(Identifier)-}
{-(Empty)-})-})-}
{-(
{-(
{-(Identifier)-})-}
{-(Identifier)-}
{-(Identifier)-})-}
{-(Call
{-(Identifier)-}
{-(Empty)-})-}
{-(
{-(Call
{-(Identifier)-}
{-(Empty)-})-})-}))
{-(Identifier)-}
{-(Identifier)-})-}
{-(Call
{-(Identifier)-}
{-(Empty)-})-}))
(Comprehension
{ (Plus
{-(Identifier)-}
{-(Integer)-})
->(Identifier) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })
{+(
{+(Identifier)+})+})))
{+(Identifier)+}
{+(Identifier)+})+}
{ (Identifier)
->(Identifier) }
{-(Identifier)-})))

View File

@ -2,16 +2,12 @@
(Comprehension
(Identifier)
(
(
(
(Identifier))
(Identifier))))
(Identifier)
(Identifier)))
(Comprehension
(Identifier)
(
(
(
(Identifier))
(Identifier)
(Identifier))
(
(Identifier)))))
(Identifier))))

View File

@ -3,27 +3,21 @@
(Identifier)
(
(
(
(Identifier))
(Identifier)
(Identifier))
(Call
(Identifier)
(Empty))
(
(Call
(Identifier)
(Empty)))
(
(
(Identifier))
(Identifier)
(Identifier))
(
(Call
(Identifier)
(Empty)))))
(Call
(Identifier)
(Empty))))
(Comprehension
(Plus
(Identifier)
(Integer))
(
(
(
(Identifier))
(Identifier)))))
(Identifier)
(Identifier))))

View File

@ -1,10 +1,9 @@
(Program
{+(Throw
{+(
{+(Call
{+(Identifier)+}
{+(TextElement)+}
{+(Empty)+})+})+})+}
{+(Call
{+(Identifier)+}
{+(TextElement)+}
{+(Empty)+})+})+}
{+(Throw
{+(
{+(Call
@ -15,11 +14,10 @@
(Throw
([]))
{-(Throw
{-(
{-(Call
{-(Identifier)-}
{-(TextElement)-}
{-(Empty)-})-})-})-}
{-(Call
{-(Identifier)-}
{-(TextElement)-}
{-(Empty)-})-})-}
{-(Throw
{-(
{-(Call

View File

@ -1,10 +1,9 @@
(Program
{-(Throw
{-(
{-(Call
{-(Identifier)-}
{-(TextElement)-}
{-(Empty)-})-})-})-}
{-(Call
{-(Identifier)-}
{-(TextElement)-}
{-(Empty)-})-})-}
{-(Throw
{-(
{-(Call
@ -15,11 +14,10 @@
(Throw
([]))
{+(Throw
{+(
{+(Call
{+(Identifier)+}
{+(TextElement)+}
{+(Empty)+})+})+})+}
{+(Call
{+(Identifier)+}
{+(TextElement)+}
{+(Empty)+})+})+}
{+(Throw
{+(
{+(Call

View File

@ -2,11 +2,10 @@
(Throw
([]))
(Throw
(
(Call
(Identifier)
(TextElement)
(Empty))))
(Call
(Identifier)
(TextElement)
(Empty)))
(Throw
(
(Call

View File

@ -1,10 +1,9 @@
(Program
(Throw
(
(Call
(Identifier)
(TextElement)
(Empty))))
(Call
(Identifier)
(TextElement)
(Empty)))
(Throw
(
(Call

View File

@ -3,21 +3,17 @@
{ (Identifier)
->(Identifier) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })))
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }))
(Comprehension
{ (Identifier)
->(Plus
{+(Identifier)+}
{+(Integer)+}) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }))))
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))

View File

@ -3,21 +3,17 @@
{ (Identifier)
->(Identifier) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) })))
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }))
(Comprehension
{ (Plus
{-(Identifier)-}
{-(Integer)-})
->(Identifier) }
(
(
(
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }))))
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))

View File

@ -2,14 +2,10 @@
(Comprehension
(Identifier)
(
(
(
(Identifier))
(Identifier))))
(Identifier)
(Identifier)))
(Comprehension
(Identifier)
(
(
(
(Identifier))
(Identifier)))))
(Identifier)
(Identifier))))

View File

@ -2,16 +2,12 @@
(Comprehension
(Identifier)
(
(
(
(Identifier))
(Identifier))))
(Identifier)
(Identifier)))
(Comprehension
(Plus
(Identifier)
(Integer))
(
(
(
(Identifier))
(Identifier)))))
(Identifier)
(Identifier))))

View File

@ -3,8 +3,7 @@
{ (Identifier)
->(Identifier) }
{+(Finally
{+(
{+(Identifier)+})+})+}
{+(Identifier)+})+}
{-(Identifier)-}
{-(Catch
{-(
@ -45,8 +44,7 @@
{+(Identifier)+}
{+(Identifier)+}
{+(Empty)+})+}
{+(
{+(Identifier)+})+})+}
{+(Identifier)+})+}
{+(Catch
{+(
{+(Identifier)+}
@ -54,8 +52,7 @@
{+(Identifier)+})+}
{+([])+})+}
{+(Catch
{+(
{+(Identifier)+})+}
{+(Identifier)+}
{+([])+})+}
{-(Identifier)-}
{-(Finally

View File

@ -30,8 +30,7 @@
{+(Identifier)+})+}
{+([])+})+}
{-(Finally
{-(
{-(Identifier)-})-})-})
{-(Identifier)-})-})
(Try
{ (Identifier)
->(Identifier) }
@ -50,8 +49,7 @@
{-(Identifier)-}
{-(Identifier)-}
{-(Empty)-})-}
{-(
{-(Identifier)-})-})-}
{-(Identifier)-})-}
{-(Catch
{-(
{-(Identifier)-}
@ -59,6 +57,5 @@
{-(Identifier)-})-}
{-([])-})-}
{-(Catch
{-(
{-(Identifier)-})-}
{-(Identifier)-}
{-([])-})-}))

View File

@ -2,8 +2,7 @@
(Try
(Identifier)
(Finally
(
(Identifier))))
(Identifier)))
(Try
(Identifier)
(Catch
@ -16,8 +15,7 @@
(Identifier)
(Identifier)
(Empty))
(
(Identifier)))
(Identifier))
(Catch
(
(Identifier)
@ -25,6 +23,5 @@
(Identifier))
([]))
(Catch
(
(Identifier))
(Identifier)
([]))))

View File

@ -1,15 +1,11 @@
(Program
{+(Tuple
{+(Identifier)+}
{+(Identifier)+}
{+(Identifier)+})+}
(Tuple
{-(Identifier)-}
(Identifier)
{+(Identifier)+}
{+(Identifier)+})
{+(
{+(Identifier)+})+}
{-(Tuple
(Tuple
{-(Identifier)-}
{-(Identifier)-}
{-(Identifier)-})-})
(Identifier)
(Identifier))
{+(Identifier)+})

View File

@ -1,14 +1,11 @@
(Program
{+(Tuple
{+(Identifier)+}
{+(Identifier)+})+}
(Tuple
{-(Identifier)-}
{-(Identifier)-}
(Identifier)
{+(Identifier)+})
(Tuple
{+(Identifier)+}
(Identifier)
(Identifier)
{-(Identifier)-})
{-(Tuple
{-(Identifier)-}
{-(Identifier)-})-}
{-(
{-(Identifier)-})-})
(Identifier))
{-(Identifier)-})

View File

@ -6,5 +6,4 @@
(Tuple
(Identifier)
(Identifier))
(
(Identifier)))
(Identifier))

View File

@ -15,8 +15,7 @@
(Identifier)
(Boolean))
{-(ForEach
{-(
{-(Identifier)-})-}
{-(Identifier)-}
{-(Identifier)-}
{-(
{-(Assignment

View File

@ -15,8 +15,7 @@
(Identifier)
(Boolean))
{+(ForEach
{+(
{+(Identifier)+})+}
{+(Identifier)+}
{+(Identifier)+}
{+(
{+(Assignment

View File

@ -11,8 +11,7 @@
(Identifier)
(Boolean))
(ForEach
(
(Identifier))
(Identifier)
(Identifier)
(
(Assignment