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 |
Where it is used
Argument of (71)
Show all
- add_body
- append
- arithmetic
- assign_targets
- bind_one
- bind_targets
- call_builtin
- call_directive
- call_macro
- call_method
- close_block
- close_scope
- compare
- compare_two
- compile
- control_directive
- def_directive
- define
- define_macro
- evaluate
- evaluate_args
- evaluate_call
- evaluate_fstring
- evaluate_slice
- expect
- fail
- find_name
- flush_text
- fold_output
- for_directive
- format_string
- handle_directive
- include_directive
- intern
- items_of
- lookup
- make_range
- make_zip
- new_expr
- new_node
- next_token
- open_block
- open_scope
- parse_and
- parse_arguments
- parse_compare
- parse_comprehension
- parse_file
- parse_fstring
- parse_items
- parse_list
- parse_not
- parse_or
- parse_postfix
- parse_primary
- parse_product
- parse_subscript
- parse_sum
- parse_test
- parse_text
- parse_unary
- read_string
- read_targets
- record_span
- render_body
- render_call
- render_loop
- render_node
- run_clause
- set_directive
- subscript
Inherits
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