Skip to content

Commit 73170a6

Browse files
committed
Add visitor
1 parent 19af208 commit 73170a6

132 files changed

Lines changed: 2236 additions & 7 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/BaselineOfFASTPython/BaselineOfFASTPython.class.st

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@ Class {
1212
BaselineOfFASTPython >> baseline: spec [
1313

1414
<baseline>
15-
spec for: #common do: [
16-
"Dependencies"
15+
spec for: #common do: [ "Dependencies"
1716
self
1817
fast: spec;
1918
treeSitter: spec.
20-
19+
2120
"Packages"
2221
spec
2322
package: 'FAST-Python-Model' with: [ spec requires: #( 'FAST' 'TreeSitter' ) ];
2423
package: 'FAST-Python-Model-Generator';
2524
package: 'FAST-Python-Model-Tests' with: [ spec requires: #( 'FAST-Python-Model' ) ];
26-
package: 'FAST-Python-Tools' with: [ spec requires: #( 'FAST-Python-Model' ) ];
27-
package: 'FAST-Python-Tools-Tests' with: [ spec requires: #( 'FAST-Python-Tools' ) ].
25+
package: 'FAST-Python-Tools' with: [ spec requires: #( 'FAST-Python-Model' 'FAST-Python-Visitor' ) ];
26+
package: 'FAST-Python-Tools-Tests' with: [ spec requires: #( 'FAST-Python-Tools' ) ];
27+
package: 'FAST-Python-Visitor' with: [ spec requires: #( 'FAST-Python-Model' ) ].
2828

2929
"Groups"
3030
spec
31-
group: 'Core' with: #( 'FAST-Python-Model' 'FAST-Python-Tools' );
31+
group: 'Core' with: #( 'FAST-Python-Model' 'FAST-Python-Tools' 'FAST-Python-Visitor' );
3232
group: 'Generator' with: #( 'FAST-Python-Model-Generator' );
33-
group: 'Tests' with: #( 'FAST-Python-Model-Tests' 'FAST-Python-Tools-Tests') ]
33+
group: 'Tests' with: #( 'FAST-Python-Model-Tests' 'FAST-Python-Tools-Tests' ) ]
3434
]
3535

3636
{ #category : 'dependencies' }

src/FAST-Python-Model-Generator/FASTPythonMetamodelGenerator.class.st

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,24 @@ Class {
161161
#package : 'FAST-Python-Model-Generator'
162162
}
163163

164+
{ #category : 'accessing' }
165+
FASTPythonMetamodelGenerator class >> metamodelToolGenerators [
166+
167+
^ { FamixVisitorGenerator }
168+
]
169+
164170
{ #category : 'accessing' }
165171
FASTPythonMetamodelGenerator class >> packageName [
166172

167173
^ #'FAST-Python-Model'
168174
]
169175

176+
{ #category : 'accessing' }
177+
FASTPythonMetamodelGenerator class >> packageNameForVisitor [
178+
179+
^ #'FAST-Python-Visitor'
180+
]
181+
170182
{ #category : 'accessing' }
171183
FASTPythonMetamodelGenerator class >> prefix [
172184

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Extension { #name : 'FASTPyAsPattern' }
2+
3+
{ #category : '*FAST-Python-Visitor' }
4+
FASTPyAsPattern >> accept: aVisitor [
5+
6+
<generated>
7+
^ aVisitor visitFASTPyAsPattern: self
8+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Extension { #name : 'FASTPyAssertStatement' }
2+
3+
{ #category : '*FAST-Python-Visitor' }
4+
FASTPyAssertStatement >> accept: aVisitor [
5+
6+
<generated>
7+
^ aVisitor visitFASTPyAssertStatement: self
8+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Extension { #name : 'FASTPyAssignment' }
2+
3+
{ #category : '*FAST-Python-Visitor' }
4+
FASTPyAssignment >> accept: aVisitor [
5+
6+
<generated>
7+
^ aVisitor visitFASTPyAssignment: self
8+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Extension { #name : 'FASTPyAttributeAccess' }
2+
3+
{ #category : '*FAST-Python-Visitor' }
4+
FASTPyAttributeAccess >> accept: aVisitor [
5+
6+
<generated>
7+
^ aVisitor visitFASTPyAttributeAccess: self
8+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Extension { #name : 'FASTPyAugmentedAssignment' }
2+
3+
{ #category : '*FAST-Python-Visitor' }
4+
FASTPyAugmentedAssignment >> accept: aVisitor [
5+
6+
<generated>
7+
^ aVisitor visitFASTPyAugmentedAssignment: self
8+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Extension { #name : 'FASTPyAwait' }
2+
3+
{ #category : '*FAST-Python-Visitor' }
4+
FASTPyAwait >> accept: aVisitor [
5+
6+
<generated>
7+
^ aVisitor visitFASTPyAwait: self
8+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Extension { #name : 'FASTPyBinaryOperator' }
2+
3+
{ #category : '*FAST-Python-Visitor' }
4+
FASTPyBinaryOperator >> accept: aVisitor [
5+
6+
<generated>
7+
^ aVisitor visitFASTPyBinaryOperator: self
8+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Extension { #name : 'FASTPyBoolean' }
2+
3+
{ #category : '*FAST-Python-Visitor' }
4+
FASTPyBoolean >> accept: aVisitor [
5+
6+
<generated>
7+
^ aVisitor visitFASTPyBoolean: self
8+
]

0 commit comments

Comments
 (0)