Re: Problem in understanding Functions
Felix Salfelder <[email protected]>
| Newsgroups | gmane.comp.gnu.gnucap.devel |
|---|---|
| Message-ID | <[email protected]> |
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