Ignore:
Timestamp:
02/18/06 18:52:18 (9 years ago)
Author:
xi
Message:

Scanner is complete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pyyaml3000/lib/yaml/tokens.py

    r47 r48  
    77class DirectiveToken(Token): 
    88    code = '<directive>' 
    9  
    10 class YAMLDirectiveToken(DirectiveToken): 
    11     code = '<%YAML directive>' 
    12     def __init__(self, major_version, minor_version, start_marker, end_marker): 
    13         self.major_version = major_version 
    14         self.minor_version = minor_version 
    15         self.start_marker = start_marker 
    16         self.end_marker = end_marker 
    17  
    18 class TagDirectiveToken(DirectiveToken): 
    19     code = '<%TAG directive>' 
    20  
    21 class ReservedDirectiveToken(DirectiveToken): 
    22     code = '<unknown directive>' 
    23     def __init__(self, name, start_marker, end_marker): 
     9    def __init__(self, name, value, start_marker, end_marker): 
    2410        self.name = name 
     11        self.value = value 
    2512        self.start_marker = start_marker 
    2613        self.end_marker = end_marker 
Note: See TracChangeset for help on using the changeset viewer.