lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sugestion for Lout - token stack


From: Basile STARYNKEVITCH
Subject: sugestion for Lout - token stack
Date: Fri, 22 Mar 2002 09:28:18 +0300 (MSK)

Dear Jeff (and all Louters)

While making a mistake (which was detected by Jeff) - forgotting a
@EndList after a @BulletList, I thought of a feature to avoid this
kind off unbalancing.

It would be to have 2 builtin keywords @PushToken and @PopToken
managing a stack of tokens; @PushToken foo will push the token (or
word) foo -and also the line position - on this stack, and @PopToken
foo check that the top of the token stack is foo, otherwise printing
an error message.

Then the lists macros could be eg 

    macro @RBL    @RawBulletList        { @RawList style { @Bullet }
    @PushToken list }

    macro @REL  @RawEndList             { // & endlist // @PopToken list }

what do you think?

regards.
-- 

Basile STARYNKEVITCH         http://starynkevitch.net/Basile/ 
email: basile<at>starynkevitch<dot>net 
alias: basile<at>tunes<dot>org 
8, rue de la Faïencerie, 92340 Bourg La Reine, France


reply via email to

[Prev in Thread] Current Thread [Next in Thread]