mirror of
https://github.com/github/semantic.git
synced 2024-11-24 00:42:33 +03:00
Fix tests
This commit is contained in:
parent
710d7c0742
commit
d3c912784b
@ -5,8 +5,8 @@
|
|||||||
#/ Generate expected output for a test fixture example or directory of examples.
|
#/ Generate expected output for a test fixture example or directory of examples.
|
||||||
#/
|
#/
|
||||||
#/ Example:
|
#/ Example:
|
||||||
#/ script/generate-example test/fixtures/ruby/and-or.{A,B}.rb
|
#/ script/generate-example test/fixtures/ruby/corpus/and-or.{A,B}.rb
|
||||||
#/ script/generate-example test/fixtures/ruby
|
#/ script/generate-example test/fixtures/ruby/corpus
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
[ $# -eq 0 ] && set -- --help
|
[ $# -eq 0 ] && set -- --help
|
||||||
|
@ -283,26 +283,95 @@ instance Listable1 Directive.File where
|
|||||||
instance Listable1 Directive.Line where
|
instance Listable1 Directive.Line where
|
||||||
liftTiers tiers = cons0 Directive.Line
|
liftTiers tiers = cons0 Directive.Line
|
||||||
|
|
||||||
instance Listable1 Expression.Arithmetic where
|
instance Listable1 Expression.Plus where
|
||||||
liftTiers tiers = liftCons2 tiers tiers Expression.Plus \/ liftCons2 tiers tiers Expression.Minus \/ liftCons2 tiers tiers Expression.Times \/ liftCons2 tiers tiers Expression.DividedBy \/ liftCons2 tiers tiers Expression.FloorDivision \/ liftCons2 tiers tiers Expression.Modulo \/ liftCons2 tiers tiers Expression.Power \/ liftCons1 tiers Expression.Negate
|
liftTiers tiers = liftCons2 tiers tiers Expression.Plus
|
||||||
|
|
||||||
instance Listable1 Expression.Bitwise where
|
instance Listable1 Expression.Minus where
|
||||||
liftTiers tiers = liftCons2 tiers tiers Expression.BOr \/ liftCons2 tiers tiers Expression.BAnd \/ liftCons2 tiers tiers Expression.BXOr \/ liftCons2 tiers tiers Expression.LShift \/ liftCons2 tiers tiers Expression.RShift \/ liftCons2 tiers tiers Expression.UnsignedRShift \/ liftCons1 tiers Expression.Complement
|
liftTiers tiers = liftCons2 tiers tiers Expression.Minus
|
||||||
|
|
||||||
instance Listable1 Expression.BooleanOperator where
|
instance Listable1 Expression.Times where
|
||||||
liftTiers tiers = liftCons2 tiers tiers Expression.Or \/ liftCons2 tiers tiers Expression.And \/ liftCons1 tiers Expression.Not \/ liftCons2 tiers tiers Expression.XOr
|
liftTiers tiers = liftCons2 tiers tiers Expression.Times
|
||||||
|
|
||||||
|
instance Listable1 Expression.DividedBy where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.DividedBy
|
||||||
|
|
||||||
|
instance Listable1 Expression.FloorDivision where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.FloorDivision
|
||||||
|
|
||||||
|
instance Listable1 Expression.Modulo where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.Modulo
|
||||||
|
|
||||||
|
instance Listable1 Expression.Power where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.Power
|
||||||
|
|
||||||
|
instance Listable1 Expression.Negate where
|
||||||
|
liftTiers tiers = liftCons1 tiers Expression.Negate
|
||||||
|
|
||||||
|
instance Listable1 Expression.BOr where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.BOr
|
||||||
|
|
||||||
|
instance Listable1 Expression.BAnd where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.BAnd
|
||||||
|
|
||||||
|
instance Listable1 Expression.BXOr where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.BXOr
|
||||||
|
|
||||||
|
instance Listable1 Expression.LShift where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.LShift
|
||||||
|
|
||||||
|
instance Listable1 Expression.RShift where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.RShift
|
||||||
|
|
||||||
|
instance Listable1 Expression.UnsignedRShift where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.UnsignedRShift
|
||||||
|
|
||||||
|
instance Listable1 Expression.Complement where
|
||||||
|
liftTiers tiers = liftCons1 tiers Expression.Complement
|
||||||
|
|
||||||
|
instance Listable1 Expression.Or where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.Or
|
||||||
|
|
||||||
|
instance Listable1 Expression.And where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.And
|
||||||
|
|
||||||
|
instance Listable1 Expression.Not where
|
||||||
|
liftTiers tiers = liftCons1 tiers Expression.Not
|
||||||
|
|
||||||
|
instance Listable1 Expression.XOr where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.XOr
|
||||||
|
|
||||||
instance Listable1 Expression.Call where
|
instance Listable1 Expression.Call where
|
||||||
liftTiers tiers = liftCons4 (liftTiers tiers) tiers (liftTiers tiers) tiers Expression.Call
|
liftTiers tiers = liftCons4 (liftTiers tiers) tiers (liftTiers tiers) tiers Expression.Call
|
||||||
|
|
||||||
|
instance Listable1 Expression.LessThan where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.LessThan
|
||||||
|
|
||||||
|
instance Listable1 Expression.LessThanEqual where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.LessThanEqual
|
||||||
|
|
||||||
|
instance Listable1 Expression.GreaterThan where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.GreaterThan
|
||||||
|
|
||||||
|
instance Listable1 Expression.GreaterThanEqual where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.GreaterThanEqual
|
||||||
|
|
||||||
|
instance Listable1 Expression.Equal where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.Equal
|
||||||
|
|
||||||
|
instance Listable1 Expression.StrictEqual where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.StrictEqual
|
||||||
|
|
||||||
instance Listable1 Expression.Comparison where
|
instance Listable1 Expression.Comparison where
|
||||||
liftTiers tiers = liftCons2 tiers tiers Expression.LessThan \/ liftCons2 tiers tiers Expression.LessThanEqual \/ liftCons2 tiers tiers Expression.GreaterThan \/ liftCons2 tiers tiers Expression.GreaterThanEqual \/ liftCons2 tiers tiers Expression.Equal \/ liftCons2 tiers tiers Expression.StrictEqual \/ liftCons2 tiers tiers Expression.Comparison
|
liftTiers tiers = liftCons2 tiers tiers Expression.Comparison
|
||||||
|
|
||||||
instance Listable1 Expression.Enumeration where
|
instance Listable1 Expression.Enumeration where
|
||||||
liftTiers tiers = liftCons3 tiers tiers tiers Expression.Enumeration
|
liftTiers tiers = liftCons3 tiers tiers tiers Expression.Enumeration
|
||||||
|
|
||||||
instance Listable1 Expression.RegexMatch where
|
instance Listable1 Expression.Matches where
|
||||||
liftTiers tiers = liftCons2 tiers tiers Expression.RegexMatches \/ liftCons2 tiers tiers Expression.NotMatches
|
liftTiers tiers = liftCons2 tiers tiers Expression.Matches
|
||||||
|
|
||||||
|
instance Listable1 Expression.NotMatches where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.NotMatches
|
||||||
|
|
||||||
instance Listable1 Expression.MemberAccess where
|
instance Listable1 Expression.MemberAccess where
|
||||||
liftTiers tiers = liftCons2 tiers mempty Expression.MemberAccess
|
liftTiers tiers = liftCons2 tiers mempty Expression.MemberAccess
|
||||||
@ -311,7 +380,10 @@ instance Listable1 Expression.ScopeResolution where
|
|||||||
liftTiers tiers = liftCons1 (liftTiers tiers) Expression.ScopeResolution
|
liftTiers tiers = liftCons1 (liftTiers tiers) Expression.ScopeResolution
|
||||||
|
|
||||||
instance Listable1 Expression.Subscript where
|
instance Listable1 Expression.Subscript where
|
||||||
liftTiers tiers = liftCons2 tiers (liftTiers tiers) Expression.Subscript \/ liftCons2 tiers tiers Expression.Member
|
liftTiers tiers = liftCons2 tiers (liftTiers tiers) Expression.Subscript
|
||||||
|
|
||||||
|
instance Listable1 Expression.Member where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Expression.Member
|
||||||
|
|
||||||
instance Listable1 Literal.Complex where
|
instance Listable1 Literal.Complex where
|
||||||
liftTiers tiers = cons1 Literal.Complex
|
liftTiers tiers = cons1 Literal.Complex
|
||||||
@ -382,8 +454,11 @@ instance Listable1 Ruby.Syntax.Class where
|
|||||||
instance Listable1 Ruby.Syntax.Load where
|
instance Listable1 Ruby.Syntax.Load where
|
||||||
liftTiers tiers = liftCons2 tiers (liftTiers tiers) Ruby.Syntax.Load
|
liftTiers tiers = liftCons2 tiers (liftTiers tiers) Ruby.Syntax.Load
|
||||||
|
|
||||||
instance Listable1 Ruby.Syntax.LowPrecedenceBoolean where
|
instance Listable1 Ruby.Syntax.LowPrecedenceOr where
|
||||||
liftTiers tiers = liftCons2 tiers tiers Ruby.Syntax.LowAnd \/ liftCons2 tiers tiers Ruby.Syntax.LowOr
|
liftTiers tiers = liftCons2 tiers tiers Ruby.Syntax.LowPrecedenceOr
|
||||||
|
|
||||||
|
instance Listable1 Ruby.Syntax.LowPrecedenceAnd where
|
||||||
|
liftTiers tiers = liftCons2 tiers tiers Ruby.Syntax.LowPrecedenceAnd
|
||||||
|
|
||||||
instance Listable1 Ruby.Syntax.Module where
|
instance Listable1 Ruby.Syntax.Module where
|
||||||
liftTiers tiers = liftCons2 tiers (liftTiers tiers) Ruby.Syntax.Module
|
liftTiers tiers = liftCons2 tiers (liftTiers tiers) Ruby.Syntax.Module
|
||||||
|
@ -63,6 +63,10 @@ spec = parallel $ do
|
|||||||
prop "roundtrips" $
|
prop "roundtrips" $
|
||||||
\sp -> shouldRoundtrip @(Term (Sum '[Statement.Statements, Literal.Null]) ()) (unListableF sp)
|
\sp -> shouldRoundtrip @(Term (Sum '[Statement.Statements, Literal.Null]) ()) (unListableF sp)
|
||||||
|
|
||||||
|
describe "statements1" $
|
||||||
|
prop "roundtrips" $
|
||||||
|
\sp -> shouldRoundtrip' @Statement.Statements @(Term (Sum '[Statement.Statements, Literal.Null]) ()) (unListableF sp)
|
||||||
|
|
||||||
describe "blobs" $ do
|
describe "blobs" $ do
|
||||||
it "should roundtrip given a Message instance" $ do
|
it "should roundtrip given a Message instance" $ do
|
||||||
let bl = Blob (fromUTF8 "puts 'hi'") "example.rb" Ruby
|
let bl = Blob (fromUTF8 "puts 'hi'") "example.rb" Ruby
|
||||||
|
63
test/fixtures/cli/parse-tree.json
vendored
63
test/fixtures/cli/parse-tree.json
vendored
@ -1 +1,62 @@
|
|||||||
{"trees":[{"tree":{"term":"Statements","statements":[{"term":"LowAnd","children":[{"term":"Send","sendArgs":[],"sendBlock":null,"sendReceiver":null,"sendSelector":{"term":"Identifier","name":"foo","sourceRange":[0,3],"sourceSpan":{"start":[1,1],"end":[1,4]}},"sourceRange":[0,3],"sourceSpan":{"start":[1,1],"end":[1,4]}},{"term":"Send","sendArgs":[],"sendBlock":null,"sendReceiver":null,"sendSelector":{"term":"Identifier","name":"bar","sourceRange":[8,11],"sourceSpan":{"start":[1,9],"end":[1,12]}},"sourceRange":[8,11],"sourceSpan":{"start":[1,9],"end":[1,12]}}],"sourceRange":[0,11],"sourceSpan":{"start":[1,1],"end":[1,12]}}],"sourceRange":[0,12],"sourceSpan":{"start":[1,1],"end":[2,1]}},"path":"test/fixtures/ruby/corpus/and-or.A.rb","language":"Ruby"}]}
|
{
|
||||||
|
"trees": [{
|
||||||
|
"tree": {
|
||||||
|
"term": "Statements",
|
||||||
|
"statements": [{
|
||||||
|
"term": "LowPrecedenceAnd",
|
||||||
|
"lhs": {
|
||||||
|
"term": "Send",
|
||||||
|
"sendArgs": [],
|
||||||
|
"sendBlock": null,
|
||||||
|
"sendReceiver": null,
|
||||||
|
"sendSelector": {
|
||||||
|
"term": "Identifier",
|
||||||
|
"name": "foo",
|
||||||
|
"sourceRange": [0, 3],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [1, 4]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [0, 3],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [1, 4]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rhs": {
|
||||||
|
"term": "Send",
|
||||||
|
"sendArgs": [],
|
||||||
|
"sendBlock": null,
|
||||||
|
"sendReceiver": null,
|
||||||
|
"sendSelector": {
|
||||||
|
"term": "Identifier",
|
||||||
|
"name": "bar",
|
||||||
|
"sourceRange": [8, 11],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 9],
|
||||||
|
"end": [1, 12]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [8, 11],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 9],
|
||||||
|
"end": [1, 12]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [0, 11],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [1, 12]
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
"sourceRange": [0, 12],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [2, 1]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path": "test/fixtures/ruby/corpus/and-or.A.rb",
|
||||||
|
"language": "Ruby"
|
||||||
|
}]
|
||||||
|
}
|
197
test/fixtures/cli/parse-trees.json
vendored
197
test/fixtures/cli/parse-trees.json
vendored
@ -1 +1,196 @@
|
|||||||
{"trees":[{"tree":{"term":"Statements","statements":[{"term":"LowAnd","children":[{"term":"Send","sendArgs":[],"sendBlock":null,"sendReceiver":null,"sendSelector":{"term":"Identifier","name":"foo","sourceRange":[0,3],"sourceSpan":{"start":[1,1],"end":[1,4]}},"sourceRange":[0,3],"sourceSpan":{"start":[1,1],"end":[1,4]}},{"term":"Send","sendArgs":[],"sendBlock":null,"sendReceiver":null,"sendSelector":{"term":"Identifier","name":"bar","sourceRange":[8,11],"sourceSpan":{"start":[1,9],"end":[1,12]}},"sourceRange":[8,11],"sourceSpan":{"start":[1,9],"end":[1,12]}}],"sourceRange":[0,11],"sourceSpan":{"start":[1,1],"end":[1,12]}}],"sourceRange":[0,12],"sourceSpan":{"start":[1,1],"end":[2,1]}},"path":"test/fixtures/ruby/corpus/and-or.A.rb","language":"Ruby"},{"tree":{"term":"Statements","statements":[{"term":"LowOr","children":[{"term":"Send","sendArgs":[],"sendBlock":null,"sendReceiver":null,"sendSelector":{"term":"Identifier","name":"foo","sourceRange":[0,3],"sourceSpan":{"start":[1,1],"end":[1,4]}},"sourceRange":[0,3],"sourceSpan":{"start":[1,1],"end":[1,4]}},{"term":"Send","sendArgs":[],"sendBlock":null,"sendReceiver":null,"sendSelector":{"term":"Identifier","name":"bar","sourceRange":[7,10],"sourceSpan":{"start":[1,8],"end":[1,11]}},"sourceRange":[7,10],"sourceSpan":{"start":[1,8],"end":[1,11]}}],"sourceRange":[0,10],"sourceSpan":{"start":[1,1],"end":[1,11]}},{"term":"LowAnd","children":[{"term":"LowOr","children":[{"term":"Send","sendArgs":[],"sendBlock":null,"sendReceiver":null,"sendSelector":{"term":"Identifier","name":"a","sourceRange":[11,12],"sourceSpan":{"start":[2,1],"end":[2,2]}},"sourceRange":[11,12],"sourceSpan":{"start":[2,1],"end":[2,2]}},{"term":"Send","sendArgs":[],"sendBlock":null,"sendReceiver":null,"sendSelector":{"term":"Identifier","name":"b","sourceRange":[16,17],"sourceSpan":{"start":[2,6],"end":[2,7]}},"sourceRange":[16,17],"sourceSpan":{"start":[2,6],"end":[2,7]}}],"sourceRange":[11,17],"sourceSpan":{"start":[2,1],"end":[2,7]}},{"term":"Send","sendArgs":[],"sendBlock":null,"sendReceiver":null,"sendSelector":{"term":"Identifier","name":"c","sourceRange":[22,23],"sourceSpan":{"start":[2,12],"end":[2,13]}},"sourceRange":[22,23],"sourceSpan":{"start":[2,12],"end":[2,13]}}],"sourceRange":[11,23],"sourceSpan":{"start":[2,1],"end":[2,13]}}],"sourceRange":[0,24],"sourceSpan":{"start":[1,1],"end":[3,1]}},"path":"test/fixtures/ruby/corpus/and-or.B.rb","language":"Ruby"}]}
|
{
|
||||||
|
"trees": [{
|
||||||
|
"tree": {
|
||||||
|
"term": "Statements",
|
||||||
|
"statements": [{
|
||||||
|
"term": "LowPrecedenceAnd",
|
||||||
|
"lhs": {
|
||||||
|
"term": "Send",
|
||||||
|
"sendArgs": [],
|
||||||
|
"sendBlock": null,
|
||||||
|
"sendReceiver": null,
|
||||||
|
"sendSelector": {
|
||||||
|
"term": "Identifier",
|
||||||
|
"name": "foo",
|
||||||
|
"sourceRange": [0, 3],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [1, 4]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [0, 3],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [1, 4]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rhs": {
|
||||||
|
"term": "Send",
|
||||||
|
"sendArgs": [],
|
||||||
|
"sendBlock": null,
|
||||||
|
"sendReceiver": null,
|
||||||
|
"sendSelector": {
|
||||||
|
"term": "Identifier",
|
||||||
|
"name": "bar",
|
||||||
|
"sourceRange": [8, 11],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 9],
|
||||||
|
"end": [1, 12]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [8, 11],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 9],
|
||||||
|
"end": [1, 12]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [0, 11],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [1, 12]
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
"sourceRange": [0, 12],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [2, 1]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path": "test/fixtures/ruby/corpus/and-or.A.rb",
|
||||||
|
"language": "Ruby"
|
||||||
|
}, {
|
||||||
|
"tree": {
|
||||||
|
"term": "Statements",
|
||||||
|
"statements": [{
|
||||||
|
"term": "LowPrecedenceOr",
|
||||||
|
"lhs": {
|
||||||
|
"term": "Send",
|
||||||
|
"sendArgs": [],
|
||||||
|
"sendBlock": null,
|
||||||
|
"sendReceiver": null,
|
||||||
|
"sendSelector": {
|
||||||
|
"term": "Identifier",
|
||||||
|
"name": "foo",
|
||||||
|
"sourceRange": [0, 3],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [1, 4]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [0, 3],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [1, 4]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rhs": {
|
||||||
|
"term": "Send",
|
||||||
|
"sendArgs": [],
|
||||||
|
"sendBlock": null,
|
||||||
|
"sendReceiver": null,
|
||||||
|
"sendSelector": {
|
||||||
|
"term": "Identifier",
|
||||||
|
"name": "bar",
|
||||||
|
"sourceRange": [7, 10],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 8],
|
||||||
|
"end": [1, 11]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [7, 10],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 8],
|
||||||
|
"end": [1, 11]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [0, 10],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [1, 11]
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"term": "LowPrecedenceAnd",
|
||||||
|
"lhs": {
|
||||||
|
"term": "LowPrecedenceOr",
|
||||||
|
"lhs": {
|
||||||
|
"term": "Send",
|
||||||
|
"sendArgs": [],
|
||||||
|
"sendBlock": null,
|
||||||
|
"sendReceiver": null,
|
||||||
|
"sendSelector": {
|
||||||
|
"term": "Identifier",
|
||||||
|
"name": "a",
|
||||||
|
"sourceRange": [11, 12],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [2, 1],
|
||||||
|
"end": [2, 2]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [11, 12],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [2, 1],
|
||||||
|
"end": [2, 2]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rhs": {
|
||||||
|
"term": "Send",
|
||||||
|
"sendArgs": [],
|
||||||
|
"sendBlock": null,
|
||||||
|
"sendReceiver": null,
|
||||||
|
"sendSelector": {
|
||||||
|
"term": "Identifier",
|
||||||
|
"name": "b",
|
||||||
|
"sourceRange": [16, 17],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [2, 6],
|
||||||
|
"end": [2, 7]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [16, 17],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [2, 6],
|
||||||
|
"end": [2, 7]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [11, 17],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [2, 1],
|
||||||
|
"end": [2, 7]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rhs": {
|
||||||
|
"term": "Send",
|
||||||
|
"sendArgs": [],
|
||||||
|
"sendBlock": null,
|
||||||
|
"sendReceiver": null,
|
||||||
|
"sendSelector": {
|
||||||
|
"term": "Identifier",
|
||||||
|
"name": "c",
|
||||||
|
"sourceRange": [22, 23],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [2, 12],
|
||||||
|
"end": [2, 13]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [22, 23],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [2, 12],
|
||||||
|
"end": [2, 13]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRange": [11, 23],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [2, 1],
|
||||||
|
"end": [2, 13]
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
"sourceRange": [0, 24],
|
||||||
|
"sourceSpan": {
|
||||||
|
"start": [1, 1],
|
||||||
|
"end": [3, 1]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path": "test/fixtures/ruby/corpus/and-or.B.rb",
|
||||||
|
"language": "Ruby"
|
||||||
|
}]
|
||||||
|
}
|
@ -45,15 +45,11 @@
|
|||||||
{+(RShift
|
{+(RShift
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Integer)+})+})+}
|
{+(Integer)+})+})+}
|
||||||
(Assignment
|
{+(Assignment
|
||||||
{ (Identifier)
|
{+(Identifier)+}
|
||||||
->(Identifier) }
|
{+(DividedBy
|
||||||
{ (Times
|
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Integer)-})
|
|
||||||
->(DividedBy
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Integer)+}) })
|
{+(Integer)+})+})+}
|
||||||
{+(Assignment
|
{+(Assignment
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(BXOr
|
{+(BXOr
|
||||||
@ -82,6 +78,11 @@
|
|||||||
{+(KeyValue
|
{+(KeyValue
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Integer)+})+})+})+})+})+})+}
|
{+(Integer)+})+})+})+})+})+})+}
|
||||||
|
{-(Assignment
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Times
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Integer)-})-})-}
|
||||||
{-(Assignment
|
{-(Assignment
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(Plus
|
{-(Plus
|
||||||
|
@ -30,25 +30,29 @@
|
|||||||
{+(Times
|
{+(Times
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Integer)+})+})+}
|
{+(Integer)+})+})+}
|
||||||
|
{+(Assignment
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Plus
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Integer)+})+})+}
|
||||||
(Assignment
|
(Assignment
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
{ (Times
|
{ (Times
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(Integer)-})
|
{-(Integer)-})
|
||||||
->(Plus
|
->(LShift
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Integer)+}) })
|
{+(Integer)+}) })
|
||||||
{+(Assignment
|
(Assignment
|
||||||
{+(Identifier)+}
|
{ (Identifier)
|
||||||
{+(LShift
|
->(Identifier) }
|
||||||
|
{ (Plus
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Integer)-})
|
||||||
|
->(RShift
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Integer)+})+})+}
|
{+(Integer)+}) })
|
||||||
{+(Assignment
|
|
||||||
{+(Identifier)+}
|
|
||||||
{+(RShift
|
|
||||||
{+(Identifier)+}
|
|
||||||
{+(Integer)+})+})+}
|
|
||||||
{+(Assignment
|
{+(Assignment
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(DividedBy
|
{+(DividedBy
|
||||||
@ -64,16 +68,12 @@
|
|||||||
{+(Modulo
|
{+(Modulo
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Integer)+})+})+}
|
{+(Integer)+})+})+}
|
||||||
(Assignment
|
{+(Assignment
|
||||||
{ (Identifier)
|
{+(Identifier)+}
|
||||||
->(Identifier) }
|
{+(Not
|
||||||
{ (Plus
|
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Integer)-})
|
|
||||||
->(Not
|
|
||||||
{+(BAnd
|
{+(BAnd
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Integer)+})+}) })
|
{+(Integer)+})+})+})+}
|
||||||
{+(Assignment
|
{+(Assignment
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Statements
|
{+(Statements
|
||||||
|
@ -6,15 +6,21 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Statements)
|
(Statements)
|
||||||
(Statements
|
(Statements
|
||||||
(Assignment
|
{+(Assignment
|
||||||
{ (Identifier)
|
{+(Identifier)+}
|
||||||
->(Identifier) }
|
{+(Identifier)+})+}
|
||||||
(Identifier))
|
{+(Assignment
|
||||||
(Assignment
|
{+(Identifier)+}
|
||||||
{ (Identifier)
|
{+(Statements)+})+}
|
||||||
->(Identifier) }
|
{+(Assignment
|
||||||
(Statements))
|
{+(Identifier)+}
|
||||||
(Assignment
|
{+(Statements)+})+}
|
||||||
{ (Identifier)
|
{-(Assignment
|
||||||
->(Identifier) }
|
{-(Identifier)-}
|
||||||
(Statements)))))
|
{-(Identifier)-})-}
|
||||||
|
{-(Assignment
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Statements)-})-}
|
||||||
|
{-(Assignment
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Statements)-})-})))
|
||||||
|
@ -6,15 +6,20 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Statements)
|
(Statements)
|
||||||
(Statements
|
(Statements
|
||||||
|
{+(Assignment
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Identifier)+})+}
|
||||||
|
{+(Assignment
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Statements)+})+}
|
||||||
(Assignment
|
(Assignment
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
(Identifier))
|
|
||||||
(Assignment
|
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Statements) })
|
||||||
(Statements))
|
{-(Assignment
|
||||||
(Assignment
|
{-(Identifier)-}
|
||||||
{ (Identifier)
|
{-(Statements)-})-}
|
||||||
->(Identifier) }
|
{-(Assignment
|
||||||
(Statements)))))
|
{-(Identifier)-}
|
||||||
|
{-(Statements)-})-})))
|
||||||
|
@ -92,28 +92,31 @@
|
|||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Empty)+})+})+}
|
{+(Empty)+})+})+}
|
||||||
(For
|
{+(For
|
||||||
(Empty)
|
{+(Empty)+}
|
||||||
{ (Empty)
|
{+(LessThan
|
||||||
->(LessThan
|
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Integer)+}) }
|
{+(Integer)+})+}
|
||||||
(Empty)
|
{+(Empty)+}
|
||||||
{ (Statements
|
{+(Call
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Statements)+}
|
||||||
|
{+(Empty)+})+})+}
|
||||||
|
{+(ForEach
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Statements)+})+}
|
||||||
|
{-(For
|
||||||
|
{-(Empty)-}
|
||||||
|
{-(Empty)-}
|
||||||
|
{-(Empty)-}
|
||||||
|
{-(Statements
|
||||||
{-(Call
|
{-(Call
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(Statements)-}
|
{-(Statements)-}
|
||||||
{-(Empty)-})-}
|
{-(Empty)-})-}
|
||||||
{-(Continue
|
{-(Continue
|
||||||
{-(Identifier)-})-})
|
{-(Identifier)-})-})-})-}
|
||||||
->(Call
|
|
||||||
{+(Identifier)+}
|
|
||||||
{+(Statements)+}
|
|
||||||
{+(Empty)+}) })
|
|
||||||
{+(ForEach
|
|
||||||
{+(Empty)+}
|
|
||||||
{+(Identifier)+}
|
|
||||||
{+(Statements)+})+}
|
|
||||||
{-(For
|
{-(For
|
||||||
{-(LessThan
|
{-(LessThan
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
|
@ -18,33 +18,24 @@
|
|||||||
{ (Integer)
|
{ (Integer)
|
||||||
->(Integer) }
|
->(Integer) }
|
||||||
(Empty))
|
(Empty))
|
||||||
{+(Slice
|
(Slice
|
||||||
{+(Identifier)+}
|
(Identifier)
|
||||||
{+(Integer)+}
|
{ (Empty)
|
||||||
{+(Integer)+}
|
->(Integer) }
|
||||||
{+(Empty)+})+}
|
{ (Empty)
|
||||||
{+(Slice
|
->(Integer) }
|
||||||
{+(Identifier)+}
|
(Empty))
|
||||||
{+(Integer)+}
|
(Slice
|
||||||
{+(Integer)+}
|
(Identifier)
|
||||||
{+(Integer)+})+}
|
{ (Integer)
|
||||||
{+(Slice
|
->(Integer) }
|
||||||
{+(Identifier)+}
|
{ (Integer)
|
||||||
{+(Integer)+}
|
->(Integer) }
|
||||||
{+(Integer)+}
|
{ (Integer)
|
||||||
{+(Empty)+})+}
|
->(Integer) })
|
||||||
{-(Slice
|
(Slice
|
||||||
{-(Identifier)-}
|
{ (Identifier)
|
||||||
{-(Empty)-}
|
->(Identifier) }
|
||||||
{-(Empty)-}
|
(Integer)
|
||||||
{-(Empty)-})-}
|
(Integer)
|
||||||
{-(Slice
|
(Empty)))))
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Integer)-}
|
|
||||||
{-(Integer)-}
|
|
||||||
{-(Integer)-})-}
|
|
||||||
{-(Slice
|
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Integer)-}
|
|
||||||
{-(Integer)-}
|
|
||||||
{-(Empty)-})-})))
|
|
||||||
|
@ -18,29 +18,24 @@
|
|||||||
{ (Integer)
|
{ (Integer)
|
||||||
->(Integer) }
|
->(Integer) }
|
||||||
(Empty))
|
(Empty))
|
||||||
{+(Slice
|
(Slice
|
||||||
{+(Identifier)+}
|
(Identifier)
|
||||||
{+(Empty)+}
|
{ (Integer)
|
||||||
{+(Empty)+}
|
->(Empty) }
|
||||||
{+(Empty)+})+}
|
{ (Integer)
|
||||||
{+(Slice
|
->(Empty) }
|
||||||
{+(Identifier)+}
|
(Empty))
|
||||||
{+(Integer)+}
|
(Slice
|
||||||
{+(Integer)+}
|
(Identifier)
|
||||||
{+(Integer)+})+}
|
{ (Integer)
|
||||||
|
->(Integer) }
|
||||||
|
{ (Integer)
|
||||||
|
->(Integer) }
|
||||||
|
{ (Integer)
|
||||||
|
->(Integer) })
|
||||||
(Slice
|
(Slice
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
(Integer)
|
(Integer)
|
||||||
(Integer)
|
(Integer)
|
||||||
(Empty))
|
(Empty)))))
|
||||||
{-(Slice
|
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Integer)-}
|
|
||||||
{-(Integer)-}
|
|
||||||
{-(Integer)-})-}
|
|
||||||
{-(Slice
|
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Integer)-}
|
|
||||||
{-(Integer)-}
|
|
||||||
{-(Empty)-})-})))
|
|
||||||
|
@ -65,17 +65,13 @@
|
|||||||
{-(Identifier)-})
|
{-(Identifier)-})
|
||||||
->(MemberAccess
|
->(MemberAccess
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+}) })
|
||||||
(TypeConversion
|
{+(TypeConversion
|
||||||
(Parenthesized
|
{+(Parenthesized
|
||||||
(Slice
|
{+(Slice
|
||||||
{ (MemberAccess
|
{+(MemberAccess
|
||||||
{-(Identifier)-})
|
{+(Identifier)+})+})+})+}
|
||||||
->(MemberAccess
|
{+(MemberAccess
|
||||||
{+(Identifier)+}) }))
|
{+(Identifier)+})+})+}
|
||||||
{ (MemberAccess
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(MemberAccess
|
|
||||||
{+(Identifier)+}) })
|
|
||||||
{+(Call
|
{+(Call
|
||||||
{+(MemberAccess
|
{+(MemberAccess
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
@ -86,6 +82,13 @@
|
|||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Empty)+})+}
|
{+(Empty)+})+}
|
||||||
|
{-(TypeConversion
|
||||||
|
{-(Parenthesized
|
||||||
|
{-(Slice
|
||||||
|
{-(MemberAccess
|
||||||
|
{-(Identifier)-})-})-})-}
|
||||||
|
{-(MemberAccess
|
||||||
|
{-(Identifier)-})-})-}
|
||||||
{-(Call
|
{-(Call
|
||||||
{-(MemberAccess
|
{-(MemberAccess
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
|
@ -65,17 +65,13 @@
|
|||||||
{-(Identifier)-})
|
{-(Identifier)-})
|
||||||
->(MemberAccess
|
->(MemberAccess
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+}) })
|
||||||
(TypeConversion
|
{+(TypeConversion
|
||||||
(Parenthesized
|
{+(Parenthesized
|
||||||
(Slice
|
{+(Slice
|
||||||
{ (MemberAccess
|
{+(MemberAccess
|
||||||
{-(Identifier)-})
|
{+(Identifier)+})+})+})+}
|
||||||
->(MemberAccess
|
{+(MemberAccess
|
||||||
{+(Identifier)+}) }))
|
{+(Identifier)+})+})+}
|
||||||
{ (MemberAccess
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(MemberAccess
|
|
||||||
{+(Identifier)+}) })
|
|
||||||
{+(Call
|
{+(Call
|
||||||
{+(MemberAccess
|
{+(MemberAccess
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
@ -86,6 +82,13 @@
|
|||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Empty)+})+}
|
{+(Empty)+})+}
|
||||||
|
{-(TypeConversion
|
||||||
|
{-(Parenthesized
|
||||||
|
{-(Slice
|
||||||
|
{-(MemberAccess
|
||||||
|
{-(Identifier)-})-})-})-}
|
||||||
|
{-(MemberAccess
|
||||||
|
{-(Identifier)-})-})-}
|
||||||
{-(Call
|
{-(Call
|
||||||
{-(MemberAccess
|
{-(MemberAccess
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
|
@ -61,12 +61,12 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (TextElement)
|
{ (TextElement)
|
||||||
->(TextElement) }
|
->(TextElement) }
|
||||||
{ (Times
|
{+(DividedBy
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Integer)-})
|
|
||||||
->(DividedBy
|
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+}
|
||||||
|
{-(Times
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Integer)-})-})
|
||||||
(Empty)))
|
(Empty)))
|
||||||
(Pattern
|
(Pattern
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
@ -77,12 +77,12 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (TextElement)
|
{ (TextElement)
|
||||||
->(TextElement) }
|
->(TextElement) }
|
||||||
{ (DividedBy
|
{+(Times
|
||||||
{-(Integer)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(Times
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Integer)+}) })
|
{+(Integer)+})+}
|
||||||
|
{-(DividedBy
|
||||||
|
{-(Integer)-}
|
||||||
|
{-(Identifier)-})-})
|
||||||
(Empty)))
|
(Empty)))
|
||||||
(Pattern
|
(Pattern
|
||||||
(Identifier)
|
(Identifier)
|
||||||
|
@ -61,12 +61,12 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (TextElement)
|
{ (TextElement)
|
||||||
->(TextElement) }
|
->(TextElement) }
|
||||||
{ (DividedBy
|
{+(Times
|
||||||
{-(Integer)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(Times
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Integer)+}) })
|
{+(Integer)+})+}
|
||||||
|
{-(DividedBy
|
||||||
|
{-(Integer)-}
|
||||||
|
{-(Identifier)-})-})
|
||||||
(Empty)))
|
(Empty)))
|
||||||
(Pattern
|
(Pattern
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
@ -77,12 +77,12 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (TextElement)
|
{ (TextElement)
|
||||||
->(TextElement) }
|
->(TextElement) }
|
||||||
{ (Times
|
{+(DividedBy
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Integer)-})
|
|
||||||
->(DividedBy
|
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+}
|
||||||
|
{-(Times
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Integer)-})-})
|
||||||
(Empty)))
|
(Empty)))
|
||||||
(Pattern
|
(Pattern
|
||||||
(Identifier)
|
(Identifier)
|
||||||
|
@ -8,35 +8,25 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
{+(Negate
|
(Negate
|
||||||
{+(Identifier)+})+}
|
{ (Identifier)
|
||||||
{+(Not
|
->(Identifier) })
|
||||||
{+(ReceiveOperator
|
(Not
|
||||||
{+(Identifier)+})+})+}
|
(ReceiveOperator
|
||||||
{+(Pointer
|
{ (Identifier)
|
||||||
{+(Call
|
->(Identifier) }))
|
||||||
{+(Identifier)+}
|
(Pointer
|
||||||
{+(Statements)+}
|
(Call
|
||||||
{+(Empty)+})+})+}
|
{ (Identifier)
|
||||||
{+(Complement
|
->(Identifier) }
|
||||||
{+(Identifier)+})+}
|
(Statements)
|
||||||
{+(Reference
|
(Empty)))
|
||||||
{+(Identifier)+})+}
|
(Complement
|
||||||
{+(ReceiveOperator
|
{ (Identifier)
|
||||||
{+(Identifier)+})+}
|
->(Identifier) })
|
||||||
{-(Negate
|
(Reference
|
||||||
{-(Identifier)-})-}
|
{ (Identifier)
|
||||||
{-(Not
|
->(Identifier) })
|
||||||
{-(ReceiveOperator
|
(ReceiveOperator
|
||||||
{-(Identifier)-})-})-}
|
{ (Identifier)
|
||||||
{-(Pointer
|
->(Identifier) }))))
|
||||||
{-(Call
|
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Statements)-}
|
|
||||||
{-(Empty)-})-})-}
|
|
||||||
{-(Complement
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Reference
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(ReceiveOperator
|
|
||||||
{-(Identifier)-})-})))
|
|
||||||
|
@ -8,35 +8,25 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
{+(Negate
|
(Negate
|
||||||
{+(Identifier)+})+}
|
{ (Identifier)
|
||||||
{+(Not
|
->(Identifier) })
|
||||||
{+(ReceiveOperator
|
(Not
|
||||||
{+(Identifier)+})+})+}
|
(ReceiveOperator
|
||||||
{+(Pointer
|
{ (Identifier)
|
||||||
{+(Call
|
->(Identifier) }))
|
||||||
{+(Identifier)+}
|
(Pointer
|
||||||
{+(Statements)+}
|
(Call
|
||||||
{+(Empty)+})+})+}
|
{ (Identifier)
|
||||||
{+(Complement
|
->(Identifier) }
|
||||||
{+(Identifier)+})+}
|
(Statements)
|
||||||
{+(Reference
|
(Empty)))
|
||||||
{+(Identifier)+})+}
|
(Complement
|
||||||
{+(ReceiveOperator
|
{ (Identifier)
|
||||||
{+(Identifier)+})+}
|
->(Identifier) })
|
||||||
{-(Negate
|
(Reference
|
||||||
{-(Identifier)-})-}
|
{ (Identifier)
|
||||||
{-(Not
|
->(Identifier) })
|
||||||
{-(ReceiveOperator
|
(ReceiveOperator
|
||||||
{-(Identifier)-})-})-}
|
{ (Identifier)
|
||||||
{-(Pointer
|
->(Identifier) }))))
|
||||||
{-(Call
|
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Statements)-}
|
|
||||||
{-(Empty)-})-})-}
|
|
||||||
{-(Complement
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Reference
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(ReceiveOperator
|
|
||||||
{-(Identifier)-})-})))
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Or
|
{+(And
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(And
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+}
|
||||||
|
{-(Or
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (And
|
{+(Or
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(Or
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+}
|
||||||
|
{-(And
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-})
|
||||||
|
@ -35,15 +35,15 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
{ (Empty)
|
{ (Empty)
|
||||||
->(Identifier) })
|
->(Identifier) })
|
||||||
|
{+(Assignment
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Empty)+})+}
|
||||||
(Assignment
|
(Assignment
|
||||||
(Empty)
|
(Empty)
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
(Empty))
|
(Empty))))
|
||||||
{+(Assignment
|
|
||||||
{+(Empty)+}
|
|
||||||
{+(Identifier)+}
|
|
||||||
{+(Empty)+})+}))
|
|
||||||
(DefaultExport
|
(DefaultExport
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) })
|
->(Identifier) })
|
||||||
|
@ -35,11 +35,14 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Empty) })
|
->(Empty) })
|
||||||
(Assignment
|
{+(Assignment
|
||||||
(Empty)
|
{+(Empty)+}
|
||||||
{ (Identifier)
|
{+(Identifier)+}
|
||||||
->(Identifier) }
|
{+(Empty)+})+}
|
||||||
(Empty))
|
{-(Assignment
|
||||||
|
{-(Empty)-}
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Empty)-})-}
|
||||||
{-(Assignment
|
{-(Assignment
|
||||||
{-(Empty)-}
|
{-(Empty)-}
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Import)
|
{+(Import)+}
|
||||||
->(Import) }
|
{+(QualifiedAliasedImport
|
||||||
{ (QualifiedAliasedImport
|
{+(Identifier)+})+}
|
||||||
{-(Identifier)-})
|
{+(Import)+}
|
||||||
->(QualifiedAliasedImport
|
|
||||||
{+(Identifier)+}) }
|
|
||||||
{ (Import)
|
|
||||||
->(Import) }
|
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
{+(Statements
|
{+(Statements
|
||||||
@ -18,6 +14,10 @@
|
|||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
{+(SideEffectImport)+}
|
{+(SideEffectImport)+}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
|
{-(QualifiedAliasedImport
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Import)-}
|
||||||
|
{-(Import)-}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
{-(Statements
|
{-(Statements
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Import)
|
|
||||||
->(Import) }
|
|
||||||
{ (QualifiedAliasedImport
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(QualifiedAliasedImport
|
|
||||||
{+(Identifier)+}) }
|
|
||||||
{ (Import)
|
|
||||||
->(Import) }
|
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
|
{+(QualifiedAliasedImport
|
||||||
|
{+(Identifier)+})+}
|
||||||
|
{+(Import)+}
|
||||||
|
{ (Import)
|
||||||
|
->(Import) }
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
{+(Statements
|
{+(Statements
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
@ -17,6 +14,9 @@
|
|||||||
{+(QualifiedAliasedImport
|
{+(QualifiedAliasedImport
|
||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
{+(SideEffectImport)+}
|
{+(SideEffectImport)+}
|
||||||
|
{-(QualifiedAliasedImport
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Import)-}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
{-(Statements
|
{-(Statements
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (LessThan
|
{+(LessThanEqual
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(LessThanEqual
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+}
|
||||||
|
{-(LessThan
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (LessThanEqual
|
{+(LessThan
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(LessThan
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+}
|
||||||
|
{-(LessThanEqual
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-})
|
||||||
|
@ -10,13 +10,14 @@
|
|||||||
{-(Integer)-}
|
{-(Integer)-}
|
||||||
(Integer)
|
(Integer)
|
||||||
{+(Integer)+}))
|
{+(Integer)+}))
|
||||||
(Assignment
|
{+(Assignment
|
||||||
{ (Identifier)
|
{+(Identifier)+}
|
||||||
->(Identifier) }
|
{+(Statements
|
||||||
{ (Integer)
|
|
||||||
->(Statements
|
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Integer)+}) })
|
{+(Integer)+})+})+}
|
||||||
|
{-(Assignment
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Integer)-})-}
|
||||||
{-(Assignment
|
{-(Assignment
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(Statements
|
{-(Statements
|
||||||
|
@ -26,18 +26,12 @@
|
|||||||
(Modulo
|
(Modulo
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Identifier))
|
(Identifier))
|
||||||
{ (FloorDivision
|
{+(Power
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(Power
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) }
|
{+(Identifier)+})+}
|
||||||
{ (Power
|
{+(FloorDivision
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(FloorDivision
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) }
|
{+(Identifier)+})+}
|
||||||
{+(Modulo
|
{+(Modulo
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
@ -53,6 +47,12 @@
|
|||||||
{+(Plus
|
{+(Plus
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
|
{-(FloorDivision
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Power
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-}
|
||||||
{-(BOr
|
{-(BOr
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
|
@ -26,18 +26,12 @@
|
|||||||
(Modulo
|
(Modulo
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Identifier))
|
(Identifier))
|
||||||
{ (Power
|
{+(FloorDivision
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(FloorDivision
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) }
|
{+(Identifier)+})+}
|
||||||
{ (FloorDivision
|
{+(Power
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(Power
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) }
|
{+(Identifier)+})+}
|
||||||
{+(BOr
|
{+(BOr
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
@ -53,6 +47,12 @@
|
|||||||
{+(RShift
|
{+(RShift
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
|
{-(Power
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(FloorDivision
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-}
|
||||||
{-(Modulo
|
{-(Modulo
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (And
|
{+(Or
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(Or
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) }
|
{+(Identifier)+})+}
|
||||||
{ (Or
|
(And
|
||||||
|
{ (Identifier)
|
||||||
|
->(Identifier) }
|
||||||
|
{ (Identifier)
|
||||||
|
->(Identifier) })
|
||||||
|
{-(Or
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(Identifier)-})
|
{-(Identifier)-})-})
|
||||||
->(And
|
|
||||||
{+(Identifier)+}
|
|
||||||
{+(Identifier)+}) })
|
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Or
|
{+(And
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(And
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) }
|
{+(Identifier)+})+}
|
||||||
{ (And
|
(Or
|
||||||
|
{ (Identifier)
|
||||||
|
->(Identifier) }
|
||||||
|
{ (Identifier)
|
||||||
|
->(Identifier) })
|
||||||
|
{-(And
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(Identifier)-})
|
{-(Identifier)-})-})
|
||||||
->(Or
|
|
||||||
{+(Identifier)+}
|
|
||||||
{+(Identifier)+}) })
|
|
||||||
|
@ -5,25 +5,20 @@
|
|||||||
{+(LessThanEqual
|
{+(LessThanEqual
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
(Not
|
{+(Not
|
||||||
(Equal
|
{+(Equal
|
||||||
{ (Identifier)
|
{+(Identifier)+}
|
||||||
->(Identifier) }
|
{+(Identifier)+})+})+}
|
||||||
{ (Identifier)
|
|
||||||
->(Identifier) }))
|
|
||||||
{+(GreaterThanEqual
|
{+(GreaterThanEqual
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(GreaterThan
|
{+(GreaterThan
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
(Not
|
{+(Not
|
||||||
{ (Member
|
{+(Equal
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(Equal
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+})+}
|
||||||
{+(Member
|
{+(Member
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
@ -34,10 +29,16 @@
|
|||||||
{+(Member
|
{+(Member
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
{+(Not
|
(Not
|
||||||
{+(Equal
|
(Equal
|
||||||
{+(Identifier)+}
|
{ (Identifier)
|
||||||
{+(Identifier)+})+})+}
|
->(Identifier) }
|
||||||
|
{ (Identifier)
|
||||||
|
->(Identifier) }))
|
||||||
|
{-(Not
|
||||||
|
{-(Member
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-})-}
|
||||||
{-(Equal
|
{-(Equal
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
|
@ -1,21 +1,28 @@
|
|||||||
(Statements
|
(Statements
|
||||||
|
{+(Call
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(TextElement)+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Empty)+})+}
|
||||||
|
{+(Call
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(TextElement)+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Empty)+})+}
|
||||||
(Call
|
(Call
|
||||||
(Identifier)
|
(Identifier)
|
||||||
{ (TextElement)
|
{ (TextElement)
|
||||||
->(TextElement) }
|
->(TextElement) }
|
||||||
{+(Identifier)+}
|
|
||||||
(Empty))
|
(Empty))
|
||||||
(Call
|
{-(Call
|
||||||
(Identifier)
|
{-(Identifier)-}
|
||||||
(TextElement)
|
{-(TextElement)-}
|
||||||
{+(Identifier)+}
|
|
||||||
{+(Identifier)+}
|
|
||||||
{-(Null)-}
|
{-(Null)-}
|
||||||
(Empty))
|
{-(Empty)-})-}
|
||||||
(Call
|
{-(Call
|
||||||
(Identifier)
|
{-(Identifier)-}
|
||||||
{ (TextElement)
|
{-(TextElement)-}
|
||||||
->(TextElement) }
|
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
(Empty)))
|
{-(Empty)-})-})
|
||||||
|
@ -1,21 +1,22 @@
|
|||||||
(Statements
|
(Statements
|
||||||
(Call
|
{+(Call
|
||||||
(Identifier)
|
{+(Identifier)+}
|
||||||
{ (TextElement)
|
{+(TextElement)+}
|
||||||
->(TextElement) }
|
{+(Empty)+})+}
|
||||||
{-(Identifier)-}
|
|
||||||
(Empty))
|
|
||||||
(Call
|
(Call
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(TextElement)
|
(TextElement)
|
||||||
{+(Null)+}
|
{+(Null)+}
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
(Empty))
|
(Empty))
|
||||||
(Call
|
(Call
|
||||||
(Identifier)
|
(Identifier)
|
||||||
{ (TextElement)
|
(TextElement)
|
||||||
->(TextElement) }
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}
|
(Identifier)
|
||||||
(Empty)))
|
{-(Identifier)-}
|
||||||
|
(Empty))
|
||||||
|
{-(Call
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(TextElement)-}
|
||||||
|
{-(Empty)-})-})
|
||||||
|
@ -8,11 +8,11 @@
|
|||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
|
{ (Float)
|
||||||
|
->(Float) }
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{+(Float)+}
|
|
||||||
{-(Float)-}
|
|
||||||
{-(Float)-}
|
{-(Float)-}
|
||||||
{-(Float)-}
|
{-(Float)-}
|
||||||
{-(Float)-}
|
{-(Float)-}
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
{ (Float)
|
{ (Float)
|
||||||
->(Float) }
|
->(Float) }
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{+(Float)+}
|
|
||||||
{+(Float)+}
|
|
||||||
{ (Float)
|
{ (Float)
|
||||||
->(Float) }
|
->(Float) }
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{-(Float)-}
|
{+(Float)+}
|
||||||
|
{ (Float)
|
||||||
|
->(Float) }
|
||||||
{-(Float)-}
|
{-(Float)-}
|
||||||
{-(Float)-}
|
{-(Float)-}
|
||||||
{-(Float)-}
|
{-(Float)-}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
(Statements
|
(Statements
|
||||||
|
{+(Import)+}
|
||||||
|
{+(Import)+}
|
||||||
|
{+(Import)+}
|
||||||
|
{+(Import)+}
|
||||||
{ (Import)
|
{ (Import)
|
||||||
->(Import) }
|
->(Import) }
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
{+(Import)+}
|
|
||||||
{+(Import)+}
|
|
||||||
{+(Import)+}
|
|
||||||
{+(Import)+}
|
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
(Statements
|
(Statements
|
||||||
|
{+(Import)+}
|
||||||
{ (Import)
|
{ (Import)
|
||||||
->(Import) }
|
->(Import) }
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
{+(Import)+}
|
{ (Import)
|
||||||
{+(Import)+}
|
->(Import) }
|
||||||
{-(Import)-}
|
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
|
@ -13,11 +13,11 @@
|
|||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{ (Integer)
|
|
||||||
->(Integer) }
|
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
|
{+(Integer)+}
|
||||||
|
{-(Integer)-}
|
||||||
{-(Negate
|
{-(Negate
|
||||||
{-(Integer)-})-}
|
{-(Integer)-})-}
|
||||||
{-(Integer)-}
|
{-(Integer)-}
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
(TextElement)
|
(TextElement)
|
||||||
|
{+(TextElement)+}
|
||||||
|
{+(TextElement)+}
|
||||||
{ (TextElement)
|
{ (TextElement)
|
||||||
->(TextElement) }
|
->(TextElement) }
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
{+(TextElement)+}
|
|
||||||
{+(TextElement)+}
|
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
|
10
test/fixtures/python/corpus/string.diffB-A.txt
vendored
10
test/fixtures/python/corpus/string.diffB-A.txt
vendored
@ -1,15 +1,15 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
(TextElement)
|
(TextElement)
|
||||||
{ (TextElement)
|
|
||||||
->(TextElement) }
|
|
||||||
{+(TextElement)+}
|
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
{ (TextElement)
|
{ (TextElement)
|
||||||
->(TextElement) }
|
->(TextElement) }
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
{ (TextElement)
|
{+(TextElement)+}
|
||||||
->(TextElement) }
|
{+(TextElement)+}
|
||||||
|
{+(TextElement)+}
|
||||||
|
{-(TextElement)-}
|
||||||
|
{-(TextElement)-}
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
(TextElement)
|
(TextElement)
|
||||||
|
@ -2,10 +2,9 @@
|
|||||||
{+(Negate
|
{+(Negate
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Complement
|
(Complement
|
||||||
{+(Identifier)+})+}
|
{ (Identifier)
|
||||||
{-(Complement
|
->(Identifier) })
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Negate
|
{-(Negate
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
{-(Identifier)-})
|
{-(Identifier)-})
|
||||||
|
6
test/fixtures/ruby/corpus/and-or.diffA-B.txt
vendored
6
test/fixtures/ruby/corpus/and-or.diffA-B.txt
vendored
@ -1,13 +1,13 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{+(LowOr
|
{+(LowPrecedenceOr
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
(LowAnd
|
(LowPrecedenceAnd
|
||||||
{ (Send
|
{ (Send
|
||||||
{-(Identifier)-})
|
{-(Identifier)-})
|
||||||
->(LowOr
|
->(LowPrecedenceOr
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
|
8
test/fixtures/ruby/corpus/and-or.diffB-A.txt
vendored
8
test/fixtures/ruby/corpus/and-or.diffB-A.txt
vendored
@ -1,16 +1,16 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{+(LowAnd
|
{+(LowPrecedenceAnd
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
{-(LowOr
|
{-(LowPrecedenceOr
|
||||||
{-(Send
|
{-(Send
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
{-(Send
|
{-(Send
|
||||||
{-(Identifier)-})-})-}
|
{-(Identifier)-})-})-}
|
||||||
{-(LowAnd
|
{-(LowPrecedenceAnd
|
||||||
{-(LowOr
|
{-(LowPrecedenceOr
|
||||||
{-(Send
|
{-(Send
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
{-(Send
|
{-(Send
|
||||||
|
2
test/fixtures/ruby/corpus/and-or.parseA.txt
vendored
2
test/fixtures/ruby/corpus/and-or.parseA.txt
vendored
@ -1,5 +1,5 @@
|
|||||||
(Statements
|
(Statements
|
||||||
(LowAnd
|
(LowPrecedenceAnd
|
||||||
(Send
|
(Send
|
||||||
(Identifier))
|
(Identifier))
|
||||||
(Send
|
(Send
|
||||||
|
6
test/fixtures/ruby/corpus/and-or.parseB.txt
vendored
6
test/fixtures/ruby/corpus/and-or.parseB.txt
vendored
@ -1,11 +1,11 @@
|
|||||||
(Statements
|
(Statements
|
||||||
(LowOr
|
(LowPrecedenceOr
|
||||||
(Send
|
(Send
|
||||||
(Identifier))
|
(Identifier))
|
||||||
(Send
|
(Send
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(LowAnd
|
(LowPrecedenceAnd
|
||||||
(LowOr
|
(LowPrecedenceOr
|
||||||
(Send
|
(Send
|
||||||
(Identifier))
|
(Identifier))
|
||||||
(Send
|
(Send
|
||||||
|
4
test/fixtures/ruby/corpus/binary.parseA.txt
vendored
4
test/fixtures/ruby/corpus/binary.parseA.txt
vendored
@ -4,12 +4,12 @@
|
|||||||
(Identifier))
|
(Identifier))
|
||||||
(Send
|
(Send
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(LowAnd
|
(LowPrecedenceAnd
|
||||||
(Send
|
(Send
|
||||||
(Identifier))
|
(Identifier))
|
||||||
(Send
|
(Send
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(LowOr
|
(LowPrecedenceOr
|
||||||
(Send
|
(Send
|
||||||
(Identifier))
|
(Identifier))
|
||||||
(Send
|
(Send
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (BOr
|
{+(BAnd
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-})
|
|
||||||
->(BAnd
|
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}) }
|
{+(Identifier)+})+})+}
|
||||||
{+(LShift
|
{+(LShift
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
|
{-(BOr
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-})-}
|
||||||
{-(RShift
|
{-(RShift
|
||||||
{-(Send
|
{-(Send
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (BAnd
|
{+(BOr
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-})
|
|
||||||
->(BOr
|
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}) }
|
{+(Identifier)+})+})+}
|
||||||
{+(RShift
|
{+(RShift
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
@ -19,6 +14,11 @@
|
|||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
|
{-(BAnd
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-})-}
|
||||||
{-(LShift
|
{-(LShift
|
||||||
{-(Send
|
{-(Send
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Or
|
{+(And
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-})
|
|
||||||
->(And
|
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}) })
|
{+(Identifier)+})+})+}
|
||||||
|
{-(Or
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-})-})
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (And
|
{+(Or
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-})
|
|
||||||
->(Or
|
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}) })
|
{+(Identifier)+})+})+}
|
||||||
|
{-(And
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-})-})
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (LessThan
|
{+(LessThanEqual
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-})
|
|
||||||
->(LessThanEqual
|
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}) }
|
{+(Identifier)+})+})+}
|
||||||
{+(GreaterThanEqual
|
{+(GreaterThanEqual
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
|
{-(LessThan
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-})-}
|
||||||
{-(GreaterThan
|
{-(GreaterThan
|
||||||
{-(Send
|
{-(Send
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (LessThanEqual
|
{+(LessThan
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-})
|
|
||||||
->(LessThan
|
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}) }
|
{+(Identifier)+})+})+}
|
||||||
{+(GreaterThan
|
{+(GreaterThan
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
|
{-(LessThanEqual
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-})-}
|
||||||
{-(GreaterThanEqual
|
{-(GreaterThanEqual
|
||||||
{-(Send
|
{-(Send
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
{ (TextElement)
|
|
||||||
->(TextElement) }
|
|
||||||
{ (TextElement)
|
|
||||||
->(TextElement) }
|
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
|
{+(TextElement)+}
|
||||||
|
{+(TextElement)+}
|
||||||
|
{-(TextElement)-}
|
||||||
|
{-(TextElement)-}
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
{+(TextElement)+}
|
{+(TextElement)+}
|
||||||
{ (TextElement)
|
{+(TextElement)+}
|
||||||
->(TextElement) }
|
{-(TextElement)-}
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
{-(TextElement)-}
|
{-(TextElement)-}
|
||||||
|
33
test/fixtures/ruby/corpus/hash.diffA-B.txt
vendored
33
test/fixtures/ruby/corpus/hash.diffA-B.txt
vendored
@ -1,23 +1,20 @@
|
|||||||
(Statements
|
(Statements
|
||||||
(Hash
|
(Hash
|
||||||
{+(KeyValue
|
(KeyValue
|
||||||
{+(Symbol)+}
|
{ (Symbol)
|
||||||
{+(TextElement)+})+}
|
->(Symbol) }
|
||||||
{+(KeyValue
|
{ (TextElement)
|
||||||
{+(Symbol)+}
|
->(TextElement) })
|
||||||
{+(Integer)+})+}
|
(KeyValue
|
||||||
{+(KeyValue
|
{ (Symbol)
|
||||||
{+(Symbol)+}
|
->(Symbol) }
|
||||||
{+(Boolean)+})+}
|
{ (Integer)
|
||||||
{-(KeyValue
|
->(Integer) })
|
||||||
{-(Symbol)-}
|
(KeyValue
|
||||||
{-(TextElement)-})-}
|
{ (TextElement)
|
||||||
{-(KeyValue
|
->(Symbol) }
|
||||||
{-(Symbol)-}
|
{ (Boolean)
|
||||||
{-(Integer)-})-}
|
->(Boolean) })
|
||||||
{-(KeyValue
|
|
||||||
{-(TextElement)-}
|
|
||||||
{-(Boolean)-})-}
|
|
||||||
{-(KeyValue
|
{-(KeyValue
|
||||||
{-(Symbol)-}
|
{-(Symbol)-}
|
||||||
{-(Integer)-})-})
|
{-(Integer)-})-})
|
||||||
|
24
test/fixtures/ruby/corpus/hash.diffB-A.txt
vendored
24
test/fixtures/ruby/corpus/hash.diffB-A.txt
vendored
@ -1,25 +1,23 @@
|
|||||||
(Statements
|
(Statements
|
||||||
(Hash
|
(Hash
|
||||||
{+(KeyValue
|
|
||||||
{+(Symbol)+}
|
|
||||||
{+(TextElement)+})+}
|
|
||||||
(KeyValue
|
(KeyValue
|
||||||
{ (Symbol)
|
{ (Symbol)
|
||||||
->(Symbol) }
|
->(Symbol) }
|
||||||
{ (TextElement)
|
{ (TextElement)
|
||||||
|
->(TextElement) })
|
||||||
|
(KeyValue
|
||||||
|
{ (Symbol)
|
||||||
|
->(Symbol) }
|
||||||
|
{ (Integer)
|
||||||
->(Integer) })
|
->(Integer) })
|
||||||
{+(KeyValue
|
(KeyValue
|
||||||
{+(TextElement)+}
|
{ (Symbol)
|
||||||
{+(Boolean)+})+}
|
->(TextElement) }
|
||||||
|
{ (Boolean)
|
||||||
|
->(Boolean) })
|
||||||
{+(KeyValue
|
{+(KeyValue
|
||||||
{+(Symbol)+}
|
{+(Symbol)+}
|
||||||
{+(Integer)+})+}
|
{+(Integer)+})+})
|
||||||
{-(KeyValue
|
|
||||||
{-(Symbol)-}
|
|
||||||
{-(Integer)-})-}
|
|
||||||
{-(KeyValue
|
|
||||||
{-(Symbol)-}
|
|
||||||
{-(Boolean)-})-})
|
|
||||||
{+(Hash)+}
|
{+(Hash)+}
|
||||||
{+(Hash
|
{+(Hash
|
||||||
{+(Context
|
{+(Context
|
||||||
|
4
test/fixtures/ruby/corpus/number.diffA-B.txt
vendored
4
test/fixtures/ruby/corpus/number.diffA-B.txt
vendored
@ -1,5 +1,6 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{+(Integer)+}
|
{ (Integer)
|
||||||
|
->(Integer) }
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
@ -11,5 +12,4 @@
|
|||||||
{-(Integer)-}
|
{-(Integer)-}
|
||||||
{-(Integer)-}
|
{-(Integer)-}
|
||||||
{-(Integer)-}
|
{-(Integer)-}
|
||||||
{-(Integer)-}
|
|
||||||
{-(Float)-})
|
{-(Float)-})
|
||||||
|
6
test/fixtures/ruby/corpus/number.diffB-A.txt
vendored
6
test/fixtures/ruby/corpus/number.diffB-A.txt
vendored
@ -1,15 +1,15 @@
|
|||||||
(Statements
|
(Statements
|
||||||
|
{ (Integer)
|
||||||
|
->(Integer) }
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{ (Integer)
|
{ (Integer)
|
||||||
->(Integer) }
|
->(Integer) }
|
||||||
{+(Integer)+}
|
{+(Integer)+}
|
||||||
{+(Integer)+}
|
|
||||||
{+(Integer)+}
|
|
||||||
{ (Integer)
|
{ (Integer)
|
||||||
->(Integer) }
|
->(Integer) }
|
||||||
|
{+(Integer)+}
|
||||||
{+(Float)+}
|
{+(Float)+}
|
||||||
{-(Integer)-}
|
{-(Integer)-}
|
||||||
{-(Integer)-}
|
{-(Integer)-}
|
||||||
{-(Integer)-}
|
{-(Integer)-}
|
||||||
{-(Integer)-}
|
|
||||||
{-(Float)-})
|
{-(Float)-})
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Equal
|
{+(Comparison
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-})
|
|
||||||
->(Comparison
|
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}) }
|
{+(Identifier)+})+})+}
|
||||||
{+(Matches
|
{+(Matches
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
@ -19,6 +14,11 @@
|
|||||||
{+(Not
|
{+(Not
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+})+})+}
|
{+(Identifier)+})+})+})+}
|
||||||
|
{-(Equal
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-})-}
|
||||||
{-(Not
|
{-(Not
|
||||||
{-(Equal
|
{-(Equal
|
||||||
{-(Send
|
{-(Send
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Comparison
|
{+(Equal
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-}
|
|
||||||
{-(Send
|
|
||||||
{-(Identifier)-})-})
|
|
||||||
->(Equal
|
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+}) }
|
{+(Identifier)+})+})+}
|
||||||
{+(Not
|
{+(Not
|
||||||
{+(Equal
|
{+(Equal
|
||||||
{+(Send
|
{+(Send
|
||||||
@ -20,6 +15,11 @@
|
|||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
{+(Send
|
{+(Send
|
||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
|
{-(Comparison
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Send
|
||||||
|
{-(Identifier)-})-})-}
|
||||||
{-(Matches
|
{-(Matches
|
||||||
{-(Send
|
{-(Send
|
||||||
{-(Identifier)-})-}
|
{-(Identifier)-})-}
|
||||||
|
4
test/fixtures/ruby/corpus/symbol.diffA-B.txt
vendored
4
test/fixtures/ruby/corpus/symbol.diffA-B.txt
vendored
@ -1,7 +1,7 @@
|
|||||||
(Statements
|
(Statements
|
||||||
|
{+(Symbol)+}
|
||||||
{ (Symbol)
|
{ (Symbol)
|
||||||
->(Symbol) }
|
->(Symbol) }
|
||||||
{ (Symbol)
|
{ (Symbol)
|
||||||
->(Symbol) }
|
->(Symbol) }
|
||||||
{ (Symbol)
|
{-(Symbol)-})
|
||||||
->(Symbol) })
|
|
||||||
|
12
test/fixtures/ruby/corpus/symbol.diffB-A.txt
vendored
12
test/fixtures/ruby/corpus/symbol.diffB-A.txt
vendored
@ -1,7 +1,7 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Symbol)
|
{+(Symbol)+}
|
||||||
->(Symbol) }
|
{+(Symbol)+}
|
||||||
{ (Symbol)
|
{+(Symbol)+}
|
||||||
->(Symbol) }
|
{-(Symbol)-}
|
||||||
{ (Symbol)
|
{-(Symbol)-}
|
||||||
->(Symbol) })
|
{-(Symbol)-})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Or
|
{+(And
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(And
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+}
|
||||||
|
{-(Or
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (And
|
{+(Or
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(Or
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+}
|
||||||
|
{-(And
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-})
|
||||||
|
@ -35,15 +35,15 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
{ (Empty)
|
{ (Empty)
|
||||||
->(Identifier) })
|
->(Identifier) })
|
||||||
|
{+(Assignment
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Empty)+})+}
|
||||||
(Assignment
|
(Assignment
|
||||||
(Empty)
|
(Empty)
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
(Empty))
|
(Empty))))
|
||||||
{+(Assignment
|
|
||||||
{+(Empty)+}
|
|
||||||
{+(Identifier)+}
|
|
||||||
{+(Empty)+})+}))
|
|
||||||
(DefaultExport
|
(DefaultExport
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) })
|
->(Identifier) })
|
||||||
|
@ -35,11 +35,14 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Empty) })
|
->(Empty) })
|
||||||
(Assignment
|
{+(Assignment
|
||||||
(Empty)
|
{+(Empty)+}
|
||||||
{ (Identifier)
|
{+(Identifier)+}
|
||||||
->(Identifier) }
|
{+(Empty)+})+}
|
||||||
(Empty))
|
{-(Assignment
|
||||||
|
{-(Empty)-}
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Empty)-})-}
|
||||||
{-(Assignment
|
{-(Assignment
|
||||||
{-(Empty)-}
|
{-(Empty)-}
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Import)
|
{+(Import)+}
|
||||||
->(Import) }
|
{+(QualifiedAliasedImport
|
||||||
{ (QualifiedAliasedImport
|
{+(Identifier)+})+}
|
||||||
{-(Identifier)-})
|
{+(Import)+}
|
||||||
->(QualifiedAliasedImport
|
|
||||||
{+(Identifier)+}) }
|
|
||||||
{ (Import)
|
|
||||||
->(Import) }
|
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
{+(Statements
|
{+(Statements
|
||||||
@ -18,6 +14,10 @@
|
|||||||
{+(Identifier)+})+})+}
|
{+(Identifier)+})+})+}
|
||||||
{+(SideEffectImport)+}
|
{+(SideEffectImport)+}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
|
{-(QualifiedAliasedImport
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Import)-}
|
||||||
|
{-(Import)-}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
{-(Statements
|
{-(Statements
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (Import)
|
|
||||||
->(Import) }
|
|
||||||
{ (QualifiedAliasedImport
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(QualifiedAliasedImport
|
|
||||||
{+(Identifier)+}) }
|
|
||||||
{ (Import)
|
|
||||||
->(Import) }
|
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
|
{+(QualifiedAliasedImport
|
||||||
|
{+(Identifier)+})+}
|
||||||
|
{+(Import)+}
|
||||||
|
{ (Import)
|
||||||
|
->(Import) }
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
{+(Statements
|
{+(Statements
|
||||||
{+(Import)+}
|
{+(Import)+}
|
||||||
@ -19,6 +16,9 @@
|
|||||||
{+(SideEffectImport)+}
|
{+(SideEffectImport)+}
|
||||||
{+(QualifiedAliasedImport
|
{+(QualifiedAliasedImport
|
||||||
{+(Identifier)+})+}
|
{+(Identifier)+})+}
|
||||||
|
{-(QualifiedAliasedImport
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Import)-}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
{-(Import)-}
|
{-(Import)-}
|
||||||
{-(Statements
|
{-(Statements
|
||||||
|
@ -59,28 +59,43 @@
|
|||||||
(TypeIdentifier))
|
(TypeIdentifier))
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Float))
|
(Float))
|
||||||
(PublicFieldDefinition
|
{+(PublicFieldDefinition
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
|
{+(Readonly)+}
|
||||||
|
{+(Annotation
|
||||||
|
{+(TypeIdentifier)+})+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(TextElement)+})+}
|
||||||
|
{+(PublicFieldDefinition
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Annotation
|
||||||
|
{+(TypeIdentifier)+})+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Float)+})+}
|
||||||
|
{+(PublicFieldDefinition
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Float)+})+}
|
||||||
|
{-(PublicFieldDefinition
|
||||||
{-(Empty)-}
|
{-(Empty)-}
|
||||||
(Readonly)
|
{-(Readonly)-}
|
||||||
(Annotation
|
{-(Annotation
|
||||||
{ (TypeIdentifier)
|
{-(TypeIdentifier)-})-}
|
||||||
->(TypeIdentifier) })
|
{-(Identifier)-}
|
||||||
(Identifier)
|
{-(Float)-})-}
|
||||||
{ (Float)
|
{-(PublicFieldDefinition
|
||||||
->(TextElement) })
|
{-(Empty)-}
|
||||||
(PublicFieldDefinition
|
{-(Empty)-}
|
||||||
(Empty)
|
{-(Annotation
|
||||||
(Empty)
|
{-(TypeIdentifier)-})-}
|
||||||
(Annotation
|
{-(Identifier)-}
|
||||||
(TypeIdentifier))
|
{-(Float)-})-}
|
||||||
{ (Identifier)
|
{-(PublicFieldDefinition
|
||||||
->(Identifier) }
|
{-(Empty)-}
|
||||||
(Float))
|
{-(Empty)-}
|
||||||
(PublicFieldDefinition
|
{-(Empty)-}
|
||||||
(Empty)
|
{-(Identifier)-}
|
||||||
(Empty)
|
{-(Float)-})-})))
|
||||||
(Empty)
|
|
||||||
(Identifier)
|
|
||||||
{ (Float)
|
|
||||||
->(Float) }))))
|
|
||||||
|
@ -59,28 +59,43 @@
|
|||||||
(TypeIdentifier))
|
(TypeIdentifier))
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Float))
|
(Float))
|
||||||
(PublicFieldDefinition
|
{+(PublicFieldDefinition
|
||||||
{+(Empty)+}
|
{+(Empty)+}
|
||||||
|
{+(Readonly)+}
|
||||||
|
{+(Annotation
|
||||||
|
{+(TypeIdentifier)+})+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Float)+})+}
|
||||||
|
{+(PublicFieldDefinition
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Annotation
|
||||||
|
{+(TypeIdentifier)+})+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Float)+})+}
|
||||||
|
{+(PublicFieldDefinition
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Empty)+}
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Float)+})+}
|
||||||
|
{-(PublicFieldDefinition
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
(Readonly)
|
{-(Readonly)-}
|
||||||
(Annotation
|
{-(Annotation
|
||||||
{ (TypeIdentifier)
|
{-(TypeIdentifier)-})-}
|
||||||
->(TypeIdentifier) })
|
{-(Identifier)-}
|
||||||
(Identifier)
|
{-(TextElement)-})-}
|
||||||
{ (TextElement)
|
{-(PublicFieldDefinition
|
||||||
->(Float) })
|
{-(Empty)-}
|
||||||
(PublicFieldDefinition
|
{-(Empty)-}
|
||||||
(Empty)
|
{-(Annotation
|
||||||
(Empty)
|
{-(TypeIdentifier)-})-}
|
||||||
(Annotation
|
{-(Identifier)-}
|
||||||
(TypeIdentifier))
|
{-(Float)-})-}
|
||||||
{ (Identifier)
|
{-(PublicFieldDefinition
|
||||||
->(Identifier) }
|
{-(Empty)-}
|
||||||
(Float))
|
{-(Empty)-}
|
||||||
(PublicFieldDefinition
|
{-(Empty)-}
|
||||||
(Empty)
|
{-(Identifier)-}
|
||||||
(Empty)
|
{-(Float)-})-})))
|
||||||
(Empty)
|
|
||||||
(Identifier)
|
|
||||||
{ (Float)
|
|
||||||
->(Float) }))))
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (LessThan
|
{+(LessThanEqual
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(LessThanEqual
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+}
|
||||||
|
{-(LessThan
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(Statements
|
(Statements
|
||||||
{ (LessThanEqual
|
{+(LessThan
|
||||||
{-(Identifier)-}
|
|
||||||
{-(Identifier)-})
|
|
||||||
->(LessThan
|
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
{+(Identifier)+}) })
|
{+(Identifier)+})+}
|
||||||
|
{-(LessThanEqual
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-})
|
||||||
|
Loading…
Reference in New Issue
Block a user