Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Jan 7, 2024
1 parent 002bf2e commit 1ec525d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
group

^ 'ANSI Compatibility'
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 ] ]"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
name

^ '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.'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tests-transform
testAnsiCharacterRule
<expectedFailure>

| class |
class := self defineSubClassOf: #GRObject.
self compile: 'character Character value: 123' in: class.
Expand Down

0 comments on commit 1ec525d

Please sign in to comment.