Thanks, tried
scanSpecialCharacter
��� | character |
��� currentCharacter = $:
��� ��� ifTrue: [
��� ��� ��� self step.
��� ��� ��� ^ currentCharacter = $=
��� ��� ��� ��� ifTrue: [
��� ��� ��� ��� ��� self step.
��� ��� ��� ��� ��� RBAssignmentToken start: tokenStart]
��� ��� ��� ��� ifFalse: [ RBSpecialCharacterToken value: $: start: tokenStart ]].
��� ��� ���
��� currentCharacter = $:
��� ��� ifTrue: [
��� ��� ��� self step.
��� ��� ��� ^ currentCharacter = $>
��� ��� ��� ��� ifTrue: [
��� ��� ��� ��� ��� self step.
��� ��� ��� ��� ��� RBAssignmentToken start: tokenStart]
��� ��� ��� ��� ifFalse: [ RBSpecialCharacterToken value: $: start: tokenStart ]].
��� ��� ���
��� currentCharacter = $_ ifTrue: [
��� ��� self step.�
��� ��� ^ RBShortAssignmentToken start: tokenStart ].
���
��� character := currentCharacter.
��� self step.
��� ^ RBSpecialCharacterToken value: character start: tokenStart
but while it does not seem to shred my image to pieces it also seems to have no effect at all. I guess the UI components still check differently and neither workplace nor SystemBrowser allow me to write code using the :> operator
Am 10.12.2014 um 13:11 schrieb Thierry Goubier:
ThierryRBScanner>>scanSpecialCharacterHi,If you are using the OpalCompiler (Pharo4, sure, Pharo3, I'm not so sure), have a look at:
2014-12-10 12:57 GMT+01:00 Erik Itter <erik.itter@gmail.com>:
Hi,
I need to modify the compiler adding ":>" as an alias for ":=" for assignment. I have been reading all over the Compiler package but do not find where a tokenizer parses for the assignement operator or where it is defined.
Any hint where to start or do it is appreciated.
best regards
Erik