Skip to content

Commit

Permalink
Removing FASTEsopeAttributeDeref because already exist as FASTFortran…
Browse files Browse the repository at this point in the history
…FieldAccess
  • Loading branch information
anquetil committed Jan 10, 2025
1 parent 158fc79 commit 79ea192
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/FAST-Esope-Generator/FASTEsopeGenerator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Class {
'variableDeclarationStatement',
'pointeurDeclarationStatement',
'variable',
'attributeDerefVariable',
'binaryExpression',
'arrayDimensionExpression'
],
Expand Down Expand Up @@ -52,7 +51,9 @@ FASTEsopeGenerator >> defineClasses [
super defineClasses.

arrayDimensionExpression := self newClassNamed: #ArrayDimensionExpression comment: 'I represent a slash operator ptr.attr(/1)'.
attributeDerefVariable := self newClassNamed: #AttributeDerefVariable comment: 'I represent an attribute in ptr.attr'.

"already exists in FASTFortran as FASTFortranFieldAccess
attributeDerefVariable := self newClassNamed: #AttributeDerefVariable comment: 'I represent an attribute in ptr.attr'."

segment := self newClassNamed: #Segment comment: 'comment for segment'.

Expand Down Expand Up @@ -81,8 +82,6 @@ FASTEsopeGenerator >> defineClasses [
{ #category : 'definition' }
FASTEsopeGenerator >> defineHierarchy [

attributeDerefVariable --|> variable.

arrayDimensionExpression --|> binaryExpression.

segment --|> #TType.
Expand Down Expand Up @@ -110,9 +109,6 @@ FASTEsopeGenerator >> defineHierarchy [
FASTEsopeGenerator >> defineRelations [
super defineRelations.

(attributeDerefVariable property: #pointer) - (variable property: #pointerInParentDeref).
(attributeDerefVariable property: #attribute) - (variable property: #attributeInParentDeref).

esopeCommand -* variable.

pointeurDeclarationStatement -* variableDeclarationStatement.
Expand Down

0 comments on commit 79ea192

Please sign in to comment.