Yeap it would be good to fix that. for me #2 -> #'2' ## -> #'#' #something that is not a ( should be #'something' Stef On Oct 10, 2008, at 5:38 PM, nicolas cellier wrote:
Igor Stasenko <siguctua@...> writes:
hello stef,
recently i poked with scanner/parser and i wonder what possible literals/combinations are correct and what is not:
- a well known:
#word , #keyword(s) -- Symbolic literal #- #* ... etc. Symbolic literal #( ...) -- array literal
- now what about these:
#123 -- number, or '123' asSymbol?
##( ... ) --- ?? ##word --- ?? ##... -- ??? ###... --- ???
Hehe
that reminds me http://lists.squeakfoundation.org/pipermail/squeak-dev/2007-May/117145.html http://lists.squeakfoundation.org/pipermail/squeak-dev/2007-May/117153.html
I see not all are fixed in old compiler. Also note the discrepancy between parsing and printing You might want to fix #isLiteralSymbol: too...
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project