SmaCC ?
Alain Plantec
alain.plantec at univ-brest.fr
Sat Jun 3 06:34:39 UTC 2006
hi,
maybe
Scanner
<upperLetter>: [A-Z] ;
<lowerLetter> : [a-z_0-9] ;
<whitespace> : \s+ ; <-- eat whitespaces
Test
AAbAA aAaaffffaa AjfdH
alain
Keith Hodges a écrit :
> Can anyone help me to work out why this is not working.
>
> Scanner:
>
> <anyLetter> : [A-Z a-z _ 0-9] ;
> <upperLetter>: [A-Z] ;
> <lowerLetter> : [a-z_0-9] ;
>
> Parser:
>
> Test : <upperLetter>+ <lowerLetter>+ <upperLetter> <anyLetter> ;
>
> Test String:
> HelloWorld
>
> I was expecting the parser to at least get past the 'o' in world.
>
> many thanks in advance
>
> Keith
>
> Send instant messages to your online friends
> http://uk.messenger.yahoo.com
>
>
More information about the Squeak-dev
mailing list
|