%PDF- %PDF-
Direktori : /lib/python3/dist-packages/reportlab/lib/__pycache__/ |
Current File : //lib/python3/dist-packages/reportlab/lib/__pycache__/yaml.cpython-312.pyc |
� ��dU � �� � d Z dZddlZdZdZdZ G d� d� Z G d � d e� Zd� Zd� Z e d k( rJ eej � dk7 r e e � Z n eej d � Z ddlZ ej e � yy)a� .h1 Welcome to YAML! YAML is "Yet Another Markup Language" - a markup language which is easier to type in than XML, yet gives us a reasonable selection of formats. The general rule is that if a line begins with a '.', it requires special processing. Otherwise lines are concatenated to paragraphs, and blank lines separate paragraphs. If the line ".foo bar bletch" is encountered, it immediately ends and writes out any current paragraph. It then looks for a parser method called 'foo'; if found, it is called with arguments (bar, bletch). If this is not found, it assumes that 'foo' is a paragraph style, and the text for the first line of the paragraph is 'bar bletch'. It would be up to the formatter to decide whether on not 'foo' was a valid paragraph. Special commands understood at present are: dot image filename - adds the image to the document dot beginPre Code - begins a Preformatted object in style 'Code' dot endPre - ends a preformatted object. z3.3.0� N� � � ·c �F � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zy)� BaseParserz�"Simplest possible parser with only the most basic options. This defines the line-handling abilities and basic mechanism. The class YAMLParser includes capabilities for a fairly rich story.c �$ � | j � y �N)�reset��selfs �4/usr/lib/python3/dist-packages/reportlab/lib/yaml.py�__init__zBaseParser.__init__9 s � �� � �� c �R � d| _ d| _ g | _ g | _ t | _ y )Nr �Normal)�_lineNo�_style�_results�_buf�PLAIN�_moder s r r zBaseParser.reset<