[mercury-users] using mercury for parsing/scanning
Ralph Becket
rafe at cs.mu.OZ.AU
Mon Dec 31 19:03:17 AEDT 2001
Dave Slutzkin, Monday, 31 December 2001:
>
> Also, I'm currently reading input a word at a time and
> then passing around the character strings. Is it
> better to do this or to read input straight from the
> stream every time? (My current solution involves some
> pushback when the current word isn't all consumed.) I
> am just doing scanning, not parsing yet, so I never
> need more than one word.
Have a look at the lex library in extras: it's a fully featured lexer
that does all this stuff for you.
- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list