[m-dev.] for review: string__fmt
Tyson Dowd
trd at cs.mu.OZ.AU
Tue Aug 8 23:17:17 AEST 2000
On 08-Aug-2000, Peter Ross <peter.ross at miscrit.be> wrote:
> On Tue, Aug 08, 2000 at 12:59:32PM +1000, Tyson Dowd wrote:
>
> It works by taking as many characters as possible from the start of the
> format string which don't consume a poly token. This guarantees that at
> the start of format_string_2 we have a '%' which will consume a poly
> token. We then parse this conversion specifier followed by as many
> characters as possible which don't consume a poly token leaving us in
> the same place.
>
> The lists of characters are constructed to be as long as possible so
> as to reduce the amount of memory allocated.
This should be in comments.
In addition, you should comment what is produced as a result of the
parsing.
--
Tyson Dowd #
# Surreal humour isn't everyone's cup of fur.
trd at cs.mu.oz.au #
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list