Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
pip._vendor.pyparsing.core.Diagnostics Class Reference
Inheritance diagram for pip._vendor.pyparsing.core.Diagnostics:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.pyparsing.core.Diagnostics:
Collaboration graph
[legend]

Static Public Attributes

int warn_multiple_tokens_in_named_alternation = 0
 
int warn_ungrouped_named_tokens_in_collection = 1
 
int warn_name_set_on_empty_Forward = 2
 
int warn_on_parse_using_empty_Forward = 3
 
int warn_on_assignment_to_Forward = 4
 
int warn_on_multiple_string_args_to_oneof = 5
 
int warn_on_match_first_with_lshift_operator = 6
 
int enable_debug_on_named_expressions = 7
 

Detailed Description

Diagnostic configuration (all default to disabled)

- ``warn_multiple_tokens_in_named_alternation`` - flag to enable warnings when a results
  name is defined on a :class:`MatchFirst` or :class:`Or` expression with one or more :class:`And` subexpressions
- ``warn_ungrouped_named_tokens_in_collection`` - flag to enable warnings when a results
  name is defined on a containing expression with ungrouped subexpressions that also
  have results names
- ``warn_name_set_on_empty_Forward`` - flag to enable warnings when a :class:`Forward` is defined
  with a results name, but has no contents defined
- ``warn_on_parse_using_empty_Forward`` - flag to enable warnings when a :class:`Forward` is
  defined in a grammar but has never had an expression attached to it
- ``warn_on_assignment_to_Forward`` - flag to enable warnings when a :class:`Forward` is defined
  but is overwritten by assigning using ``'='`` instead of ``'<<='`` or ``'<<'``
- ``warn_on_multiple_string_args_to_oneof`` - flag to enable warnings when :class:`one_of` is
  incorrectly called with multiple str arguments
- ``enable_debug_on_named_expressions`` - flag to auto-enable debug on all subsequent
  calls to :class:`ParserElement.set_name`

Diagnostics are enabled/disabled by calling :class:`enable_diag` and :class:`disable_diag`.
All warnings can be enabled by calling :class:`enable_all_warnings`.

The documentation for this class was generated from the following file: