[NewCompiler] Parser error alternateKeyword symbole?
Mathieu Suen
mathieusuen at yahoo.fr
Mon Sep 18 17:46:39 UTC 2006
Hi,
I want to generate a alternateKeyword symbole but I can find a way to do it.
In fact I dfon't know what is an alternateKeyword symbole.
I pick it up from the grammar:
...
| "#" <alternateKeyword> {#litSymbol:}
...
And I want to build a test like:
rbNode := (self defaultParser parseMethod: 'test #:indexOf:') body statements first.
self assert: (rbNode firstToken value = '#').
self assert: (rbNode lastToken value = ':indexOf:')
but (self defaultParser parseMethod: 'test #:indexOf:') raise an error
Have an idea?
Thanks
Math
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.com
More information about the Newcompiler
mailing list