(implicit=False)
| 28 | return {'emit': 'BeginDoc', 'handle': 'OnDocumentStart(_)'} |
| 29 | |
| 30 | def doc_end(implicit=False): |
| 31 | if implicit: |
| 32 | return {'emit': '', 'handle': 'OnDocumentEnd()'} |
| 33 | else: |
| 34 | return {'emit': 'EndDoc', 'handle': 'OnDocumentEnd()'} |
| 35 | |
| 36 | def scalar(value, tag='', anchor='', anchor_id=0): |
| 37 | emit = [] |