focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / inputlevel
1 NAME
2     inputlevel - current input level
3
4 SYNOPSIS
5     inputlevel()
6
7 TYPES
8     return      nonnegative integer
9
10 DESCRIPTION
11     This function returns the input level at which it is called.
12     When calc starts, it is at level zero.  The level is increased
13     by 1 each time execution starts of a read file command or a call to
14     eval(S) for some expression S which evaluates to a string.  It
15     decreases by 1 when a file being read reaches EOF or a string
16     being eval-ed reaches '\0', or earlier if a quit statement is
17     encountered at top calculation-level in the flle or string.  It
18     decreases to zero if an abort statement is encountered at any
19     function-level in the file or string.  If a quit or abort
20     statement is encountered at top calculation-level at top input-level,
21     calc is exited.
22
23     Zero input level is also called top input level; greater values
24     of inputlevel() indicate reading at greater depths.
25
26 EXAMPLE
27     n/a
28
29 LIMITS
30     none
31
32 LINK LIBRARY
33     none
34
35 SEE ALSO
36     read, eval, quit, abort, calclevel
37