What mistake I made? (message cascading)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

What mistake I made? (message cascading)

ChanHong Kim
Hi all fork.

I'm writing Brailee-to-Text translator for Hangeul(Korean) in
Dolphin Smalltalk.

So I should make Braille-Assci table. I decided my mind it with
Array and cascaded message, and I worte following code.

When I accept it, I encountered warnning:
rror 39 on line 65 of BrailleCell class>>prepareBrailleAsciiTable ->
'expecting message'

and I change the privacy of this method, walkback is appered same
message.

How can I correct these situation?
Please tell me what I made mistake.

Have a nice day.

----------[The Cod]------------
prepareBrailleAsciiTable
        "Private - Make Braille-ASCII Table for translating braille pattern to
braille-ASCII."

        BrailleAsciiTable := Array new: 63.

        BrailleAsciiTable
                "Leading dot 1: Roman Alphabets"
                at: 2r000001 put: $A; "1"
                at: 2r000011 put: $B; "12"
                at: 2r001001 put: $C; "14"
                at: 2r011001 put: $D; "145"
                at: 2r010001 put: $E; "15"
                at: 2r001011 put: $F; "124"
                at: 2r011011 put: $G; "1245"
                at: 2r010011 put: $H; "125"
                at: 2r001010 put: $I; "24"
                at: 2r011010 put: $J; "245"
                at: 2r000101 put: $K; "13"
                at: 2r000111 put: $L; "123"
                at: 2r001101 put: $M; "134"
                at: 2r011101 put: $N; "1345"
                at: 2r010101 put: $O; "135"
                at: 2r001111 put: $P; "1234"
                at: 2r011111 put: $Q; "12345"
                at: 2r010111 put: $R; "1235"
                at: 2r001110 put: $S; "234"
                at: 2r011110 put: $T; "2345"
                at: 2r100101 put: $U; "136"
                at: 2r100111 put: $V; "1236"
                at: 2r101101 put: $X; "1346"
                at: 2r111101 put: $Y; "13456"
                at: 2r110101 put: $Z; "1356"

                "Leading dot 1: Seperators"
                at: 2r101111 put: $&; "12346"
                at: 2r111111 put: $=; "123456"
                at: 2r110111 put: ${; "12356"
                at: 2r101110 put: $|; "2346"
                at: 2r111110 put: $}; "23456"
                at: 2r100001 put: $*; "16"
                at: 2r100011 put: $<; "126"
                at: 2r101001 put: $%; "146"
                at: 2r111001 put: $?; "1456"
                at: 2r110001 put: $:; "156"
                at: 2r101011 put: $$; "1246"
                at: 2r111011 put: $]; "12456"
                at: 2r110011 put: $\; "1256"

                "Leading dot 2: Seperator and 'W'"
                at: 2r101010 put: $[; "246"
                at: 2r111010 put: $W; "2456"

                "Leading dot 2: Numeric"
                at: 2r000010 put: $1; "2"
                at: 2r000110 put: $2; "23"
                at: 2r010010 put: $3; "25"
                at: 2r110010 put: $4; "256"
                at: 2r100010 put: $5; "26"
                at: 2r010110 put: $6; "236"
                at: 2r110110 put: $7; "2356"
                at: 2r100110 put: $8; "236"

                "Leading dot 3: Numeric"
                at: 2r010100 put: $9; "35";
                at: 2r110100 put: $0; "356";

                "Leading dot 3: Seperators"
                at: 2r001100 put: $/; "34"
                at: 2r101100 put: $+; "346"
                at: 2r111100 put: $#; "3456"
                at: 2r110100 put: $>; "356"
                at: 2r000100 put: $'; "3"
                at: 2r100100 put: $-; "36"

                "Leading dot 4: Seperators"
                at: 2r001000 put: $@; "4"
                at: 2r011000 put: $^; "45"
                at: 2r111000 put: $_; "456"

                "Leading dot 5: Seperators"
                at: 2r010000 put: $"; "5"
                at: 2r110000 put: $;; "56"

                "Leading dot 6: Seperators"
                at: 2r100000 put: $,; "6"
                yourself.


Reply | Threaded
Open this post in threaded view
|

Re: What mistake I made? (message cascading)

Ian Bartholomew-19
"ChanHong Kim" <[hidden email]> wrote in message
news:[hidden email]...

> How can I correct these situation?
> Please tell me what I made mistake.
>
> "Leading dot 3: Numeric"
> at: 2r010100 put: $9; "35";
> at: 2r110100 put: $0; "356";

You've got extra semi colons at the end of these two lines.  You can't have
empty enstry in a cascade.

--
Ian

Use the Reply-To address to contact me.
Mail sent to the From address is ignored.


Reply | Threaded
Open this post in threaded view
|

Re: What mistake I made? (message cascading)

ChanHong Kim
Oh, It's very silly one.
Perhabs my mind is asleep when I __enter, just enter only__ tiresome
code table.

Tanks for correction and aswer to Ian, much more I can express.


Reply | Threaded
Open this post in threaded view
|

Re: What mistake I made? (message cascading)

ChanHong Kim
Oh... I made mistake too.
Sorry Ian.

Not Tanks, thanks....

Thanks for correction and aswer to Ian, much more I can express.

As wether is getting warmer and warmer, my head is spinning slowly. ^^
Please pardon me, again.