THX, Nicolai and Thierry, that got me a few steps further and will try
to get the rest by myself (at least for a few hours...).
2014-12-10 13:32 GMT+01:00 Erik Itter :
> Thanks, tried
>
> scanSpecialCharacter
> | character |
> currentCharacter = $:
> ifTrue: [
> self step.
> ^ currentCharacter = $=
> ifTrue: [
> self step.
> RB
Hi Erik,
You need to make sure you are using the right compiler. In a Pharo3 image,
you'll find two compilers: Opal and the old one.
In the old one, you need to change:
Scanner>>xColon
In RB/Opal, what you can try with your changes is to inspect:
RBParser parseExpression: 'a :> 5'
And, if you
Thanks, tried
scanSpecialCharacter
| character |
currentCharacter = $:
ifTrue: [
self step.
^ currentCharacter = $=
ifTrue: [
self step.
RBAssignmentToken start: tokenStart]
ifFalse: [
Hi,
If you are using the OpalCompiler (Pharo4, sure, Pharo3, I'm not so sure),
have a look at:
RBScanner>>scanSpecialCharacter
Thierry
2014-12-10 12:57 GMT+01:00 Erik Itter :
> Hi,
>
> I need to modify the compiler adding ":>" as an alias for ":=" for
> assignment. I have been reading all over