A little namespace "proposal"
goran.krampe at bluefish.se
goran.krampe at bluefish.se
Thu Apr 8 11:38:40 UTC 2004
"Andreas Raab" <andreas.raab at gmx.de> wrote:
> > Ok, I tracked it down to Scanner>>xLetter - if I use your version I can
> > gladly compile methods with qualified names, but then I can't parse
> > symbols like "#Foo::Bar". And if I use Dan's version of that method I
> > can, but then of course I can't do qualified names. :)
>
> Add this to the changes I sent:
>
> Scanner>>scanLitWord
> "Accumulate keywords and asSymbol the result."
> | t |
> [(typeTable at: hereChar asciiValue) = #xLetter
> or:[hereChar = $: and:[aheadChar =$:]]]
> whileTrue: [
> t _ token.
> hereChar = $: ifTrue:[self xColon] ifFalse:[self xLetter].
> token _ t , token.
> ].
> token _ token asSymbol
>
> Cheers,
> - Andreas
Great! Thanks!
Hey I am moving ahead here - I have it almost integrated correctly if we
ignore the input phase (when you enter code with unqualified names).
Also fixed some issues in your code :).
Will post soon. I am on IRC btw. :)
regards, Göran
More information about the Squeak-dev
mailing list
|