Suggestion for ignoring comments

Paul Dufresne dufrp at hotmail.com
Sat May 31 08:20:24 PDT 2003


Index: src/compiler/parser.slate
===================================================================
RCS file: /var/lib/cvs/slate/slate/src/compiler/parser.slate,v
retrieving revision 1.10
diff -r1.10 parser.slate
12a13
>   newP currentScope: Compiler BlockNode clone. "Is this ok? Paul"
15a17,23
>p@(Compiler Parser traits) readNotCommentToken
>" Allows to read lexer tokens while ignoring comments "
>[| token |
>   [(token: p lexer readToken) traits == Compiler CommentToken traits] 
>whileTru
e.
>   token
>].
>
22c30
<     ifFalse: [p lexer readToken]
---
>     ifFalse: [p readNotCommentToken]
30c38
<     ifTrue: [p lookAheadBuffer addLast: p lexer readToken].
---
>     ifTrue: [p lookAheadBuffer addLast: p readNotCommentToken].
365c373
<              ifFalse: [p lookAheadBuffer addLast: p lexer readToken]).
---
>              ifFalse: [p lookAheadBuffer addLast: p readNotCommentToken]).
=======================================

Happy to see you on the list Lee!

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !  
http://fr.ca.search.msn.com/




More information about the Slate mailing list