Ignore:
Timestamp:
03/19/06 08:00:38 (9 years ago)
Author:
xi
Message:
  • Add the token STREAM-START.
  • Add parsing events: STREAM-START, DOCUMENT-START, DOCUMENT-END.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib/yaml/composer.py

    r116 r118  
    1616        self.complete_anchors = {} 
    1717 
     18        # Drop the STREAM-START event. 
     19        self.parser.get() 
     20 
    1821    def check(self): 
    1922        # If there are more documents available? 
     
    3134 
    3235    def compose_document(self): 
     36 
     37        # Drop the DOCUMENT-START event. 
     38        self.parser.get() 
     39 
     40        # Compose the root node. 
    3341        node = self.compose_node() 
     42 
     43        # Drop the DOCUMENT-END event. 
     44        self.parser.get() 
     45 
    3446        self.all_anchors = {} 
    3547        self.complete_anchors = {} 
Note: See TracChangeset for help on using the changeset viewer.