1
1
mirror of https://github.com/github/semantic.git synced 2025-01-04 21:47:07 +03:00

Merge pull request #1763 from github/revert-parens-fix

Remove explicit Paren node from syntax trees.
This commit is contained in:
Josh Vera 2018-04-23 12:06:17 -04:00 committed by GitHub
commit d381721530
87 changed files with 322 additions and 480 deletions

View File

@ -148,17 +148,6 @@ instance Show1 Empty where liftShowsPrec _ _ _ _ = showString "Empty"
instance Evaluatable Empty where
eval _ = unit
-- | A parenthesized expression or statement. All the languages we target support this concept.
newtype Paren a = Paren a
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Mergeable, Ord, Show, Traversable, FreeVariables1, Declarations1)
instance Eq1 Paren where liftEq = genericLiftEq
instance Ord1 Paren where liftCompare = genericLiftCompare
instance Show1 Paren where liftShowsPrec = genericLiftShowsPrec
instance Evaluatable Paren where
eval (Paren a) = subtermValue a
-- | Syntax representing a parsing or assignment error.
data Error a = Error { errorCallStack :: ErrorStack, errorExpected :: [String], errorActual :: Maybe String, errorChildren :: [a] }

View File

@ -89,7 +89,6 @@ type Syntax =
, Syntax.Error
, Syntax.Empty
, Syntax.Identifier
, Syntax.Paren
, Syntax.Program
, Type.Annotation
, Type.Array
@ -429,7 +428,7 @@ parameterDeclaration :: Assignment
parameterDeclaration = makeTerm <$> symbol ParameterDeclaration <*> children (manyTerm expression)
parenthesizedExpression :: Assignment
parenthesizedExpression = makeTerm <$> symbol ParenthesizedExpression <*> (Syntax.Paren <$> children expressions)
parenthesizedExpression = symbol ParenthesizedExpression *> children expressions
selectorExpression :: Assignment
selectorExpression = makeTerm <$> symbol SelectorExpression <*> children (Expression.MemberAccess <$> expression <*> expression)

View File

@ -103,7 +103,6 @@ type Syntax = '[
, Syntax.NamespaceUseDeclaration
, Syntax.NamespaceUseGroupClause
, Syntax.NewVariable
, Syntax.Paren
, Syntax.PrintIntrinsic
, Syntax.Program
, Syntax.PropertyDeclaration
@ -288,7 +287,7 @@ primaryExpression = choice [
]
parenthesizedExpression :: Assignment
parenthesizedExpression = makeTerm <$> symbol ParenthesizedExpression <*> (Syntax.Paren <$> children (term expression))
parenthesizedExpression = symbol ParenthesizedExpression *> children (term expression)
classConstantAccessExpression :: Assignment
classConstantAccessExpression = makeTerm <$> symbol ClassConstantAccessExpression <*> children (Expression.MemberAccess <$> term scopeResolutionQualifier <*> term name)

View File

@ -79,7 +79,6 @@ type Syntax =
, Syntax.Empty
, Syntax.Error
, Syntax.Identifier
, Syntax.Paren
, Syntax.Program
, Type.Annotation
, []
@ -191,7 +190,7 @@ keywordArgument :: Assignment
keywordArgument = makeTerm <$> symbol KeywordArgument <*> children (Statement.Assignment [] <$> term expression <*> term expression)
parenthesizedExpression :: Assignment
parenthesizedExpression = makeTerm <$> symbol ParenthesizedExpression <*> (Syntax.Paren <$> children expressions)
parenthesizedExpression = symbol ParenthesizedExpression *> children expressions
parameter :: Assignment
parameter = makeTerm <$> symbol DefaultParameter <*> children (Statement.Assignment [] <$> term expression <*> term expression)

View File

@ -72,7 +72,6 @@ type Syntax = '[
, Syntax.Empty
, Syntax.Error
, Syntax.Identifier
, Syntax.Paren
, Syntax.Program
, Ruby.Syntax.Send
, Ruby.Syntax.Class
@ -144,7 +143,7 @@ expressions :: Assignment
expressions = makeTerm'' <$> location <*> many expression
parenthesizedExpressions :: Assignment
parenthesizedExpressions = makeTerm'' <$> symbol ParenthesizedStatements <*> children (Syntax.Paren <$> expressions)
parenthesizedExpressions = makeTerm'' <$> symbol ParenthesizedStatements <*> children (many expression)
withExtendedScope :: Assignment' a -> Assignment' a
withExtendedScope inner = do

View File

@ -87,7 +87,6 @@ type Syntax = '[
, Syntax.Empty
, Syntax.Error
, Syntax.Identifier
, Syntax.Paren
, Syntax.Program
, Syntax.Context
, Type.Readonly
@ -803,7 +802,7 @@ variableDeclarator =
parenthesizedExpression :: Assignment
parenthesizedExpression = makeTerm <$> symbol ParenthesizedExpression <*> (Syntax.Paren <$> children (term expressions))
parenthesizedExpression = symbol ParenthesizedExpression *> children (term expressions)
switchStatement :: Assignment
switchStatement = makeTerm <$> symbol SwitchStatement <*> children (Statement.Match <$> term parenthesizedExpression <*> term switchBody)

View File

@ -18,10 +18,9 @@
(SendChannel
{ (Identifier)
->(Identifier) })
(Paren
(Minus
(Identifier)
(Identifier))))
(Minus
(Identifier)
(Identifier)))
(Empty))
(Call
(Identifier)

View File

@ -18,10 +18,9 @@
(SendChannel
{ (Identifier)
->(Identifier) })
(Paren
(Minus
(Identifier)
(Identifier))))
(Minus
(Identifier)
(Identifier)))
(Empty))
(Call
(Identifier)

View File

@ -16,10 +16,9 @@
(
(SendChannel
(Identifier))
(Paren
(Minus
(Identifier)
(Identifier))))
(Minus
(Identifier)
(Identifier)))
(Empty))
(Call
(Identifier)

View File

@ -16,10 +16,9 @@
(
(SendChannel
(Identifier))
(Paren
(Minus
(Identifier)
(Identifier))))
(Minus
(Identifier)
(Identifier)))
(Empty))
(Call
(Identifier)

View File

@ -13,9 +13,8 @@
->(Identifier) }
(Empty)))
(Call
(Paren
(Pointer
(Identifier)))
(Pointer
(Identifier))
{ (Identifier)
->(Identifier) }
(Empty))
@ -56,63 +55,46 @@
(Identifier))
{ (Identifier)
->(Identifier) })
{+(TypeConversion
{+(Slice
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+})+}
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+})+}
{+(TypeConversion
{+(Parenthesized
{+(Slice
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+})+})+}
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+})+}
{+(Call
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+}
{+(Identifier)+}
{+(Empty)+})+}
{+(Call
{+(Paren
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+})+}
{+(Identifier)+}
{+(Empty)+})+}
{-(TypeConversion
{-(Slice
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-})-}
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-})-}
{-(TypeConversion
{-(Parenthesized
{-(Slice
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-})-})-}
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-})-}
{-(Call
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-}
{-(Identifier)-}
{-(Empty)-})-}
{-(Call
{-(Paren
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-})-}
{-(Identifier)-}
{-(Empty)-})-})))
(TypeConversion
(Slice
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }))
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }))
(TypeConversion
(Parenthesized
(Slice
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }))
(Call
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(Empty))
(Call
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(Empty)))))

View File

@ -13,9 +13,8 @@
->(Identifier) }
(Empty)))
(Call
(Paren
(Pointer
(Identifier)))
(Pointer
(Identifier))
{ (Identifier)
->(Identifier) }
(Empty))
@ -56,61 +55,46 @@
(Identifier))
{ (Identifier)
->(Identifier) })
{+(TypeConversion
{+(Slice
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+})+}
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+})+}
(TypeConversion
{ (Slice
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-})
->(Parenthesized
{+(Slice
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+})+}) }
(Slice
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }))
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }))
{+(Call
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+}
{+(Identifier)+}
{+(Empty)+})+}
{+(Call
{+(Paren
{+(MemberAccess
{+(Identifier)+}
{+(Identifier)+})+})+}
{+(Identifier)+}
{+(Empty)+})+}
{-(TypeConversion
{-(Parenthesized
{-(Slice
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-})-})-}
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-})-}
{-(Call
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-}
{-(Identifier)-}
{-(Empty)-})-}
{-(Call
{-(Paren
{-(MemberAccess
{-(Identifier)-}
{-(Identifier)-})-})-}
{-(Identifier)-}
{-(Empty)-})-})))
(TypeConversion
(Parenthesized
(Slice
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }))
(Call
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(Empty))
(Call
(MemberAccess
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(Empty)))))

View File

@ -12,9 +12,8 @@
(Identifier)
(Empty)))
(Call
(Paren
(Pointer
(Identifier)))
(Pointer
(Identifier))
(Identifier)
(Empty))
(TypeConversion
@ -72,9 +71,8 @@
(Identifier)
(Empty))
(Call
(Paren
(MemberAccess
(Identifier)
(Identifier)))
(MemberAccess
(Identifier)
(Identifier))
(Identifier)
(Empty)))))

View File

@ -12,9 +12,8 @@
(Identifier)
(Empty)))
(Call
(Paren
(Pointer
(Identifier)))
(Pointer
(Identifier))
(Identifier)
(Empty))
(TypeConversion
@ -72,9 +71,8 @@
(Identifier)
(Empty))
(Call
(Paren
(MemberAccess
(Identifier)
(Identifier)))
(MemberAccess
(Identifier)
(Identifier))
(Identifier)
(Empty)))))

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
{+(Continue
{+(Empty)+})+}

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
{+(Break
{+(Empty)+})+}

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
(Break
(Empty)))

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
(Continue
(Empty)))

View File

@ -4,14 +4,13 @@
{+(Hash
{+(KeyValue
{+(Identifier)+}
{+(Paren
{+(SequenceExpression
{+(Float)+}
{+(SequenceExpression
{+(Float)+}
{+(SequenceExpression
{+(Plus
{+(Float)+}
{+(Float)+})+}
{+(Float)+})+})+})+})+})+})+}
{+(Plus
{+(Float)+}
{+(Float)+})+}
{+(Float)+})+})+})+})+})+}
{-(SequenceExpression
{-(Assignment
{-(Identifier)-}

View File

@ -11,11 +11,10 @@
{-(Hash
{-(KeyValue
{-(Identifier)-}
{-(Paren
{-(SequenceExpression
{-(Float)-}
{-(SequenceExpression
{-(Float)-}
{-(SequenceExpression
{-(Plus
{-(Float)-}
{-(Float)-})-}
{-(Float)-})-})-})-})-})-})-})
{-(Plus
{-(Float)-}
{-(Float)-})-}
{-(Float)-})-})-})-})-})-})

View File

@ -4,11 +4,10 @@
(Hash
(KeyValue
(Identifier)
(Paren
(SequenceExpression
(Float)
(SequenceExpression
(Float)
(SequenceExpression
(Plus
(Float)
(Float))
(Float))))))))
(Plus
(Float)
(Float))
(Float)))))))

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
{+(Break
{+(Empty)+})+}

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
{+(Continue
{+(Empty)+})+}

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
(Continue
(Empty)))

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
(Break
(Empty)))

View File

@ -1,8 +1,7 @@
(Program
(DoWhile
(Paren
{ (Boolean)
->(Boolean) })
{ (Boolean)
->(Boolean) }
(
(Call
(MemberAccess

View File

@ -1,8 +1,7 @@
(Program
(DoWhile
(Paren
{ (Boolean)
->(Boolean) })
{ (Boolean)
->(Boolean) }
(
(Call
(MemberAccess

View File

@ -1,7 +1,6 @@
(Program
(DoWhile
(Paren
(Boolean))
(Boolean)
(
(Call
(MemberAccess

View File

@ -1,7 +1,6 @@
(Program
(DoWhile
(Paren
(Boolean))
(Boolean)
(
(Call
(MemberAccess

View File

@ -1,27 +1,23 @@
(Program
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(
{+(Identifier)+}) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(
{+(Identifier)+}) }

View File

@ -1,27 +1,23 @@
(Program
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (
{-(Identifier)-})
->(Identifier) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (
{-(Identifier)-})
->(Identifier) }

View File

@ -1,18 +1,14 @@
(Program
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(Identifier))))))

View File

@ -1,20 +1,16 @@
(Program
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(If
(Paren
(Identifier))
(Identifier)
(
(Identifier))
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(If
(Paren
(Identifier))
(Identifier)
(
(Identifier))
(Identifier))))))

View File

@ -1,10 +1,9 @@
(Program
(If
(Paren
{ (Identifier)
->(MemberAccess
{+(Identifier)+}
{+(Identifier)+}) })
{ (Identifier)
->(MemberAccess
{+(Identifier)+}
{+(Identifier)+}) }
(
(Call
(Identifier)

View File

@ -1,10 +1,9 @@
(Program
(If
(Paren
{ (MemberAccess
{-(Identifier)-}
{-(Identifier)-})
->(Identifier) })
{ (MemberAccess
{-(Identifier)-}
{-(Identifier)-})
->(Identifier) }
(
(Call
(Identifier)

View File

@ -1,7 +1,6 @@
(Program
(If
(Paren
(Identifier))
(Identifier)
(
(Call
(Identifier)

View File

@ -1,9 +1,8 @@
(Program
(If
(Paren
(MemberAccess
(Identifier)
(Identifier)))
(MemberAccess
(Identifier)
(Identifier))
(
(Call
(Identifier)

View File

@ -19,9 +19,8 @@
(Empty)))
(
(DoWhile
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(
(Call
(Identifier)

View File

@ -19,9 +19,8 @@
(Empty)))
(
(DoWhile
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(
(Call
(Identifier)

View File

@ -19,8 +19,7 @@
(Empty)))
(
(DoWhile
(Paren
(Identifier))
(Identifier)
(
(Call
(Identifier)

View File

@ -19,8 +19,7 @@
(Empty)))
(
(DoWhile
(Paren
(Identifier))
(Identifier)
(
(Call
(Identifier)

View File

@ -1,8 +1,7 @@
(Program
(Match
(Paren
{ (Float)
->(Float) })
{ (Float)
->(Float) }
(
(Pattern
(Float)

View File

@ -1,8 +1,7 @@
(Program
(Match
(Paren
{ (Float)
->(Float) })
{ (Float)
->(Float) }
(
(Pattern
(Float)

View File

@ -1,7 +1,6 @@
(Program
(Match
(Paren
(Float))
(Float)
(
(Pattern
(Float)

View File

@ -1,7 +1,6 @@
(Program
(Match
(Paren
(Float))
(Float)
(
(Pattern
(Float)

View File

@ -1,8 +1,7 @@
(Program
(While
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(
(Call
{ (Identifier)

View File

@ -1,8 +1,7 @@
(Program
(While
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(
(Call
{ (Identifier)

View File

@ -1,7 +1,6 @@
(Program
(While
(Paren
(Identifier))
(Identifier)
(
(Call
(Identifier)

View File

@ -1,7 +1,6 @@
(Program
(While
(Paren
(Identifier))
(Identifier)
(
(Call
(Identifier)

View File

@ -7,8 +7,7 @@
{-(Identifier)-}
(Identifier)
{+(Identifier)+})
{+(Paren
{+(Identifier)+})+}
{+(Identifier)+}
{-(Tuple
{-(Identifier)-}
{-(Identifier)-}

View File

@ -2,16 +2,12 @@
{+(Tuple
{+(Identifier)+}
{+(Identifier)+})+}
{+(Tuple
(Tuple
{+(Identifier)+}
{+(Identifier)+}
{+(Identifier)+})+}
{-(Tuple
{-(Identifier)-}
{-(Identifier)-}
{-(Identifier)-})-}
(Identifier)
(Identifier)
{-(Identifier)-})
{-(Tuple
{-(Identifier)-}
{-(Identifier)-})-}
{-(Paren
{-(Identifier)-})-})
{-(Identifier)-})

View File

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

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
{+(Continue
{+(Empty)+})+}

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
{+(Break
{+(Empty)+})+}

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
(Break
(Empty)))

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
(Continue
(Empty)))

View File

@ -4,14 +4,13 @@
{+(Hash
{+(KeyValue
{+(Identifier)+}
{+(Paren
{+(SequenceExpression
{+(Float)+}
{+(SequenceExpression
{+(Float)+}
{+(SequenceExpression
{+(Plus
{+(Float)+}
{+(Float)+})+}
{+(Float)+})+})+})+})+})+})+}
{+(Plus
{+(Float)+}
{+(Float)+})+}
{+(Float)+})+})+})+})+})+}
{-(SequenceExpression
{-(Assignment
{-(Identifier)-}

View File

@ -11,11 +11,10 @@
{-(Hash
{-(KeyValue
{-(Identifier)-}
{-(Paren
{-(SequenceExpression
{-(Float)-}
{-(SequenceExpression
{-(Float)-}
{-(SequenceExpression
{-(Plus
{-(Float)-}
{-(Float)-})-}
{-(Float)-})-})-})-})-})-})-})
{-(Plus
{-(Float)-}
{-(Float)-})-}
{-(Float)-})-})-})-})-})-})

View File

@ -4,11 +4,10 @@
(Hash
(KeyValue
(Identifier)
(Paren
(SequenceExpression
(Float)
(SequenceExpression
(Float)
(SequenceExpression
(Plus
(Float)
(Float))
(Float))))))))
(Plus
(Float)
(Float))
(Float)))))))

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
{+(Break
{+(Empty)+})+}

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
{+(Continue
{+(Empty)+})+}

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
(Continue
(Empty)))

View File

@ -10,10 +10,9 @@
(Identifier))
(
(If
(Paren
(Equal
(Identifier)
(Float)))
(Equal
(Identifier)
(Float))
(
(Break
(Empty)))

View File

@ -1,8 +1,7 @@
(Program
(DoWhile
(Paren
{ (Boolean)
->(Boolean) })
{ (Boolean)
->(Boolean) }
(
(Call
(MemberAccess

View File

@ -1,8 +1,7 @@
(Program
(DoWhile
(Paren
{ (Boolean)
->(Boolean) })
{ (Boolean)
->(Boolean) }
(
(Call
(MemberAccess

View File

@ -1,7 +1,6 @@
(Program
(DoWhile
(Paren
(Boolean))
(Boolean)
(
(Call
(MemberAccess

View File

@ -1,7 +1,6 @@
(Program
(DoWhile
(Paren
(Boolean))
(Boolean)
(
(Call
(MemberAccess

View File

@ -1,27 +1,23 @@
(Program
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(
{+(Identifier)+}) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(
{+(Identifier)+}) }

View File

@ -1,27 +1,23 @@
(Program
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (
{-(Identifier)-})
->(Identifier) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
(If
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
{ (
{-(Identifier)-})
->(Identifier) }

View File

@ -1,18 +1,14 @@
(Program
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(Identifier))))))

View File

@ -1,20 +1,16 @@
(Program
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(If
(Paren
(Identifier))
(Identifier)
(
(Identifier))
(If
(Paren
(Identifier))
(Identifier)
(Identifier)
(If
(Paren
(Identifier))
(Identifier)
(
(Identifier))
(Identifier))))))

View File

@ -1,10 +1,9 @@
(Program
(If
(Paren
{ (Identifier)
->(MemberAccess
{+(Identifier)+}
{+(Identifier)+}) })
{ (Identifier)
->(MemberAccess
{+(Identifier)+}
{+(Identifier)+}) }
(
(Call
(Identifier)

View File

@ -1,10 +1,9 @@
(Program
(If
(Paren
{ (MemberAccess
{-(Identifier)-}
{-(Identifier)-})
->(Identifier) })
{ (MemberAccess
{-(Identifier)-}
{-(Identifier)-})
->(Identifier) }
(
(Call
(Identifier)

View File

@ -1,7 +1,6 @@
(Program
(If
(Paren
(Identifier))
(Identifier)
(
(Call
(Identifier)

View File

@ -1,9 +1,8 @@
(Program
(If
(Paren
(MemberAccess
(Identifier)
(Identifier)))
(MemberAccess
(Identifier)
(Identifier))
(
(Call
(Identifier)

View File

@ -19,9 +19,8 @@
(Empty)))
(
(DoWhile
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(
(Call
(Identifier)

View File

@ -19,9 +19,8 @@
(Empty)))
(
(DoWhile
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(
(Call
(Identifier)

View File

@ -19,8 +19,7 @@
(Empty)))
(
(DoWhile
(Paren
(Identifier))
(Identifier)
(
(Call
(Identifier)

View File

@ -19,8 +19,7 @@
(Empty)))
(
(DoWhile
(Paren
(Identifier))
(Identifier)
(
(Call
(Identifier)

View File

@ -1,8 +1,7 @@
(Program
(Match
(Paren
{ (Float)
->(Float) })
{ (Float)
->(Float) }
(
(Pattern
(Float)

View File

@ -1,8 +1,7 @@
(Program
(Match
(Paren
{ (Float)
->(Float) })
{ (Float)
->(Float) }
(
(Pattern
(Float)

View File

@ -1,7 +1,6 @@
(Program
(Match
(Paren
(Float))
(Float)
(
(Pattern
(Float)

View File

@ -1,7 +1,6 @@
(Program
(Match
(Paren
(Float))
(Float)
(
(Pattern
(Float)

View File

@ -1,8 +1,7 @@
(Program
(While
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(
(Call
{ (Identifier)

View File

@ -1,8 +1,7 @@
(Program
(While
(Paren
{ (Identifier)
->(Identifier) })
{ (Identifier)
->(Identifier) }
(
(Call
{ (Identifier)

View File

@ -1,7 +1,6 @@
(Program
(While
(Paren
(Identifier))
(Identifier)
(
(Call
(Identifier)

View File

@ -1,7 +1,6 @@
(Program
(While
(Paren
(Identifier))
(Identifier)
(
(Call
(Identifier)