typefypp_tprivate
The state of processing a file.
Components
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| bound | integer | allocatabledimension(:) | the names bound by running comprehensions | |
| bound_values | type(value_t) | allocatabledimension(:) | their values | |
| compiled | type(name_index_t) | the expression for each text, as texts repeat a lot | ||
| depth | integer | 0 | how many there are | |
| error | character(len=:) | allocatable | what went wrong, once something has | |
| exprs | type(expr_t) | allocatabledimension(:) | the expressions | |
| first_bound | integer | 1 | the first that the code being run can see | |
| frame | integer | 0 | the current one, or 0 | |
| frames | type(frame_t) | allocatabledimension(:) | the local scopes | |
| globals | type(value_t) | allocatabledimension(:) | the global variable for each name | |
| includes | type(string_t) | allocatabledimension(:) | where to look for included files | |
| is_set | logical | allocatabledimension(:) | whether each one is set | |
| macros | type(macro_t) | allocatabledimension(:) | the macros | |
| names | type(string_t) | allocatabledimension(:) | the names seen | |
| nodes | type(node_t) | allocatabledimension(:) | the nodes | |
| num_bound | integer | 0 | how many there are | |
| num_exprs | integer | 0 | how many there are | |
| num_macros | integer | 0 | how many there are | |
| num_names | integer | 0 | how many there are | |
| num_nodes | integer | 0 | how many there are | |
| num_spans | integer | 0 | how many there are | |
| root | integer | 0 | the node holding the document | |
| spans | type(span_t) | allocatabledimension(:) | the results of evaluation in the output | |
| stack | integer | dimension(MAX_FRAMES) | 0 | the blocks open while parsing |
Source
Show the code
type :: fypp_t
!! The state of processing a file.
character(len=:), allocatable :: error !! what went wrong, once something has
type(string_t), allocatable :: includes(:) !! where to look for included files
type(string_t), allocatable :: names(:) !! the names seen
integer :: num_names = 0 !! how many there are
type(expr_t), allocatable :: exprs(:) !! the expressions
integer :: num_exprs = 0 !! how many there are
type(name_index_t) :: compiled !! the expression for each text, as texts repeat a lot
type(node_t), allocatable :: nodes(:) !! the nodes
integer :: num_nodes = 0 !! how many there are
integer :: root = 0 !! the node holding the document
integer :: stack(MAX_FRAMES) = 0 !! the blocks open while parsing
integer :: depth = 0 !! how many there are
type(value_t), allocatable :: globals(:) !! the global variable for each name
logical, allocatable :: is_set(:) !! whether each one is set
type(frame_t), allocatable :: frames(:) !! the local scopes
integer :: frame = 0 !! the current one, or 0
type(macro_t), allocatable :: macros(:) !! the macros
integer :: num_macros = 0 !! how many there are
integer, allocatable :: bound(:) !! the names bound by running comprehensions
type(value_t), allocatable :: bound_values(:) !! their values
integer :: num_bound = 0 !! how many there are
integer :: first_bound = 1 !! the first that the code being run can see
type(span_t), allocatable :: spans(:) !! the results of evaluation in the output
integer :: num_spans = 0 !! how many there are
end type fypp_t