Skip to content

Commit

Permalink
Don't zdecode internally in #addTo:
Browse files Browse the repository at this point in the history
This way spec vars like return are distinguished
  • Loading branch information
shingarov committed Aug 14, 2024
1 parent 9d830b4 commit 8045452
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Sail-Jib/Def_Enum.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Def_Enum class >> inducedParser [
Def_Enum >> addTo: aJibProgram [
aJibProgram enums
at: name
zdecode put: self
put: self
]

{ #category : #printing }
Expand Down
2 changes: 1 addition & 1 deletion src/Sail-Jib/Def_Extern.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Def_Extern class >> inducedParser [
Def_Extern >> addTo: aJibProgram [
super addTo: aJibProgram.
aJibProgram values
at: id zdecode
at: id
put: self
]

Expand Down
2 changes: 1 addition & 1 deletion src/Sail-Jib/Def_Fn.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Def_Fn class >> inducedParser [
{ #category : #initialization }
Def_Fn >> addTo: aJibProgram [
aJibProgram values
at: name zdecode
at: name
put: self.
self elaborateIn: aJibProgram
]
Expand Down
2 changes: 1 addition & 1 deletion src/Sail-Jib/Def_Register.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Def_Register class >> inducedParser [
{ #category : #initialization }
Def_Register >> addTo: aJibProgram [
aJibProgram registers
at: name zdecode
at: name
put: self
]

Expand Down
2 changes: 1 addition & 1 deletion src/Sail-Jib/Def_Union.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Def_Union class >> inducedParser [
{ #category : #initialization }
Def_Union >> addTo: aJibProgram [
aJibProgram unions
at: name zdecode
at: name
put: self
]

Expand Down
2 changes: 1 addition & 1 deletion src/Sail-Jib/Def_Val.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Def_Val class >> inducedParser [
{ #category : #initialization }
Def_Val >> addTo: aJibProgram [
aJibProgram types
at: id zdecode
at: id
ifPresent: [ self error: 'cant have mor than one type declaration' ]
ifAbsentPut: (JibFunctionType dom: tys cod: ty)
]

0 comments on commit 8045452

Please sign in to comment.