(no subject)

raymondasselin at sympatico.ca raymondasselin at sympatico.ca
Wed Dec 3 02:37:36 UTC 2003


> Hi,
>   In the class "Scanner" of Squeak, how are token type
> defined such as #word, #keyword and etc . I want to
> add a new token type #compoundWord to process a word
> like "ccd.c" wholly. So I must find where the token
> type are defined, and then add a new one.
>    Thanks for replying!
>    Sincerely,
>               Lulu
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 
I am far from an expert, and I never have a look on the Scanner of Squeak
but Ian Piurmarta one day said:

"Take a look at how the Scanner works.  It does "the right thing".  An
Array of 256 symbols indexed by the initial character in each token to
provide a selector for #perform: that invokes the method responsible for
parsing the rest of the token.  (The selectors in question all start with
'x'.) "

May be this can help you



More information about the Squeak-dev mailing list