gnucap-devel
[Top][All Lists]
Advanced

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

Re: [Gnucap-devel] Problem in understanding Functions


From: Felix Salfelder
Subject: Re: [Gnucap-devel] Problem in understanding Functions
Date: Sun, 30 Jun 2013 17:29:49 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Sun, Jun 30, 2013 at 08:43:40PM +0530, Rishabh Yadav wrote:
> I can't figure out what for functions cmd.more(),cmd.tail(),itested() and
> utested() are used?

Hi Rishabh.

*tested() don't do anything, they are meant to keep track of which parts
of the code are covered by some tests. it's probably best to start any
new code fragment with an "untested();" call.

the parser has a cursor that represents how much of a line has been
parsed (from left to right) already. tail() returns the part right of
the cursor, more() tells you, whether that right part contains
non-whitespace.

regards
felix



reply via email to

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