-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiCharactersRule.class/instance/group.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
group | ||
|
||
^ 'ANSI Compatibility' |
13 changes: 13 additions & 0 deletions
13
repository/Grease-Pharo110-Slime.package/GRAnsiCharactersRule.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
self replace: 'Character value: ``@expr' with: 'Character codePoint: ``@expr' | ||
"replace: '`#source to: `#target' | ||
withValueFrom: [ :node | | ||
RBLiteralNode value: (String streamContents: [ :stream | | ||
node receiver value codePoint to: node arguments first value codePoint do: [ :code | | ||
stream nextPut: (Character codePoint: code) ] ]) ] | ||
when: [ :node | | ||
node receiver value isCharacter | ||
and: [ node arguments first value isCharacter ] ]" |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiCharactersRule.class/instance/name.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
name | ||
|
||
^ 'Characters' |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiCharactersRule.class/instance/rationale.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
rationale | ||
|
||
^ 'Character value: 64 and $a to: $b is not ANSI compatible.' |
2 changes: 1 addition & 1 deletion
2
...ry/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testAnsiCharacterRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters