Skip to content

Commit

Permalink
Improved compatibility with older project files
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Oct 17, 2024
1 parent 25460e5 commit 8a2f586
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 23 deletions.
36 changes: 18 additions & 18 deletions repository/OpenPonk-FSM/OPFsmExamples.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ OPFsmExamples class >> exampleDecimal [
add: k.

fsm addAll: {
(initial -> z).
(z -> b name: '+').
(z -> b name: '-').
(z -> c name: 'd').
(z -> d name: '.').
(b -> c name: 'd').
(c -> d name: '.').
(c -> c name: 'd').
(b -> d name: '.').
(d -> k name: 'd').
(k -> k name: 'd') }.
(initial => z).
(z => b name: '+').
(z => b name: '-').
(z => c name: 'd').
(z => d name: '.').
(b => c name: 'd').
(c => d name: '.').
(c => c name: 'd').
(b => d name: '.').
(d => k name: 'd').
(k => k name: 'd') }.

isDigit := [ :aValue | '^[0-9]$' asRegex matches: aValue ].
fsm transitions
Expand All @@ -73,13 +73,13 @@ OPFsmExamples class >> exampleDivisibility [
add: two.

fsm addAll: {
(initial -> zero).
(zero -> zero name: '0').
(zero -> one name: '1').
(one -> zero name: '1').
(one -> two name: '0').
(two -> one name: '0').
(two -> two name: '1') }.
(initial => zero).
(zero => zero name: '0').
(zero => one name: '1').
(one => zero name: '1').
(one => two name: '0').
(two => one name: '0').
(two => two name: '1') }.

^ fsm
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Class {
}

{ #category : 'as yet unclassified' }
OPFsmModelDeprecatedSerializer class >> fileExtension [
OPFsmModelDeprecatedSerializer class >> fileExtensions [

^ #ston
^ #( #ston )
]

{ #category : 'as yet unclassified' }
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-FSM/OPFsmModelSerializer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ OPFsmModelSerializer class >> exportVersion [
]

{ #category : 'as yet unclassified' }
OPFsmModelSerializer class >> fileExtension [
OPFsmModelSerializer class >> fileExtensions [

^ #xml
^ #( #xml )
]

{ #category : 'as yet unclassified' }
Expand Down
3 changes: 2 additions & 1 deletion repository/OpenPonk-FSM/OPFsmVertex.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Class {
}

{ #category : 'associating' }
OPFsmVertex >> -> aVertex [
OPFsmVertex >> => aVertex [

^ OPFsmTransition from: self to: aVertex
]

Expand Down

0 comments on commit 8a2f586

Please sign in to comment.