Changes between Version 12 and Version 13 of PyYAMLDocumentation


Ignore:
Timestamp:
05/07/06 02:51:19 (9 years ago)
Author:
xi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PyYAMLDocumentation

    v12 v13  
    981981}}} 
    982982 
     983The function '''`scan(stream)`''' scans the given `stream` and produces a sequence of tokens. 
     984 
     985The method '''`Loader.check_token(*TokenClasses)`''' returns `True` if the next token in the stream 
     986is an instance of one of the given `TokenClasses`. Otherwise it returns `False`. 
     987 
     988The method '''`Loader.peek_token()`''' returns the next token in the stream, but does not remove 
     989it from the internal token queue. The function returns `None` at the end of the stream. 
     990 
     991The method '''`Loader.get_token()`''' returns the next token in the stream and removes 
     992it from the internal token queue. The function returns `None` at the end of the stream. 
     993 
    983994 
    984995==== Parser interface ==== 
     996 
     997{{{ 
     998#!python 
     999parse(stream, Loader=Loader) 
     1000 
     1001Loader.check_event(*EventClasses) 
     1002Loader.peek_event() 
     1003Loader.get_event() 
     1004}}} 
     1005 
     1006The function '''`parse(stream)`''' parses the given `stream` and produces a sequence of parsing events. 
     1007 
     1008The method '''`Loader.check_event(*EventClasses)`''' returns `True` if the next event in the stream 
     1009is an instance of one of the given `EventClasses`. Otherwise it returns `False`. 
     1010 
     1011The method '''`Loader.peek_event()`''' returns the next event in the stream, but does not remove 
     1012it from the internal event queue. The function returns `None` at the end of the stream. 
     1013 
     1014The method '''`Loader.get_event()`''' returns the next event in the stream and removes 
     1015it from the internal event queue. The function returns `None` at the end of the stream. 
    9851016 
    9861017