version	U12.1.00
uid	formatter.u1-1786033049-0
record	xml__Formatter__state,2
	0,__s
	1,__m
record	xml__Formatter__methods,9
	0,format
	1,format_document
	2,format_content
	3,format_doctype
	4,format_comment
	5,format_pi
	6,format_element
	7,format_cdata
	8,format_xmldecl
impl	local
global	15
	0,000005,xml__Formatter_format,3
	1,000005,xml__Formatter_format_document,3
	2,000005,xml__Formatter_format_content,3
	3,000005,xml__Formatter_format_doctype,3
	4,000005,xml__Formatter_format_comment,3
	5,000005,xml__Formatter_format_pi,3
	6,000005,xml__Formatter_format_element,3
	7,000005,xml__Formatter_format_cdata,3
	8,000005,xml__Formatter_format_xmldecl,3
	9,000011,xml__Formatter__state,2
	10,000011,xml__Formatter__methods,9
	11,000001,xml__Formatter__oprec,0
	12,000005,xml__Formatter,0
	13,000005,xml__Formatterinitialize,0
	14,000005,xml__xml_escape,2

proc xml__Formatter_format
	local	0,001000,self
	local	1,001000,n
	local	2,001000,level
	local	3,000020,s
	local	4,000000,string
	con	0,002000,1,0
	con	1,010000,7,144,157,143,164,171,160,145
	con	2,010000,7,143,157,155,155,145,156,164
	con	3,010000,2,160,151
	con	4,010000,7,145,154,145,155,145,156,164
	con	5,010000,5,143,144,141,164,141
	con	6,010000,8,144,157,143,165,155,145,156,164
	con	7,010000,7,170,155,154,144,145,143,154
	declend
	filen	formatter.icn
	line	17
	colm	11
	synt	any
	mark	L1
	pnull
	pnull
	var	2
	line	19
	colm	7
	synt	any
	null
	int	0
	line	19
	colm	14
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	line	21
	colm	7
	synt	if
	mark0
	pnull
	var	3
	var	4
	var	1
	line	21
	colm	21
	synt	any
	invoke	1
	line	21
	colm	12
	synt	any
	asgn
	unmark
	mark	L3
	pnull
	var	0
	line	22
	colm	21
	synt	any
	field	format_content
	var	3
	var	2
	line	22
	colm	36
	synt	any
	invoke	2
	line	22
	colm	10
	synt	any
	pret
lab L3
	synt	any
	pfail
	line	21
	colm	7
	synt	endif
	unmark
lab L2
	mark	L4
	mark	L5
	line	24
	colm	14
	synt	case
	mark0
	pnull
	var	1
	line	24
	colm	20
	synt	any
	field	get_type
	line	24
	colm	29
	synt	any
	invoke	0
	eret
	mark	L7
	ccase
	str	1
	line	25
	colm	20
	synt	any
	eqv
	unmark
	pop
	pnull
	var	0
	line	25
	colm	26
	synt	any
	field	format_doctype
	var	1
	var	2
	line	25
	colm	41
	synt	any
	invoke	2
	goto	L6
lab L7
	mark	L8
	ccase
	str	2
	line	26
	colm	20
	synt	any
	eqv
	unmark
	pop
	pnull
	var	0
	line	26
	colm	26
	synt	any
	field	format_comment
	var	1
	var	2
	line	26
	colm	41
	synt	any
	invoke	2
	goto	L6
lab L8
	mark	L9
	ccase
	str	3
	line	27
	colm	15
	synt	any
	eqv
	unmark
	pop
	pnull
	var	0
	line	27
	colm	21
	synt	any
	field	format_pi
	var	1
	var	2
	line	27
	colm	31
	synt	any
	invoke	2
	goto	L6
lab L9
	mark	L10
	ccase
	str	4
	line	28
	colm	20
	synt	any
	eqv
	unmark
	pop
	pnull
	var	0
	line	28
	colm	26
	synt	any
	field	format_element
	var	1
	var	2
	line	28
	colm	41
	synt	any
	invoke	2
	goto	L6
lab L10
	mark	L11
	ccase
	str	5
	line	29
	colm	18
	synt	any
	eqv
	unmark
	pop
	pnull
	var	0
	line	29
	colm	24
	synt	any
	field	format_cdata
	var	1
	var	2
	line	29
	colm	37
	synt	any
	invoke	2
	goto	L6
lab L11
	mark	L12
	ccase
	str	6
	line	30
	colm	20
	synt	any
	eqv
	unmark
	pop
	pnull
	var	0
	line	30
	colm	26
	synt	any
	field	format_document
	var	1
	var	2
	line	30
	colm	42
	synt	any
	invoke	2
	goto	L6
lab L12
	mark	L13
	ccase
	str	7
	line	31
	colm	19
	synt	any
	eqv
	unmark
	pop
	pnull
	var	0
	line	31
	colm	25
	synt	any
	field	format_xmldecl
	var	1
	var	2
	line	31
	colm	40
	synt	any
	invoke	2
	goto	L6
lab L13
	efail
lab L6
	line	24
	colm	14
	synt	endcase
	line	24
	colm	7
	synt	any
	pret
lab L5
	synt	any
	pfail
	unmark
lab L4
	pnull
	line	33
	colm	1
	synt	any
	pfail
	end
proc xml__Formatter_format_document
	local	0,001000,self
	local	1,001000,n
	local	2,001000,level
	local	3,000000,runerr
	con	0,002000,3,700
	con	1,010000,24,155,145,164,150,157,144,040,146,157,162,155,141,164,137,144,157,143,165,155,145,156,164,050,051
	declend
	line	35
	colm	11
	synt	any
	mark	L1
	var	3
	int	0
	str	1
	line	36
	colm	10
	synt	any
	invoke	2
	unmark
lab L1
	pnull
	line	38
	colm	1
	synt	any
	pfail
	end
proc xml__Formatter_format_content
	local	0,001000,self
	local	1,001000,s
	local	2,001000,level
	local	3,000000,runerr
	con	0,002000,3,700
	con	1,010000,23,155,145,164,150,157,144,040,146,157,162,155,141,164,137,143,157,156,164,145,156,164,050,051
	declend
	line	37
	colm	11
	synt	any
	mark	L1
	var	3
	int	0
	str	1
	line	38
	colm	10
	synt	any
	invoke	2
	unmark
lab L1
	pnull
	line	40
	colm	1
	synt	any
	pfail
	end
proc xml__Formatter_format_doctype
	local	0,001000,self
	local	1,001000,n
	local	2,001000,level
	local	3,000000,runerr
	con	0,002000,3,700
	con	1,010000,23,155,145,164,150,157,144,040,146,157,162,155,141,164,137,144,157,143,164,171,160,145,050,051
	declend
	line	39
	colm	11
	synt	any
	mark	L1
	var	3
	int	0
	str	1
	line	40
	colm	10
	synt	any
	invoke	2
	unmark
lab L1
	pnull
	line	42
	colm	1
	synt	any
	pfail
	end
proc xml__Formatter_format_comment
	local	0,001000,self
	local	1,001000,n
	local	2,001000,level
	local	3,000000,runerr
	con	0,002000,3,700
	con	1,010000,23,155,145,164,150,157,144,040,146,157,162,155,141,164,137,143,157,155,155,145,156,164,050,051
	declend
	line	41
	colm	11
	synt	any
	mark	L1
	var	3
	int	0
	str	1
	line	42
	colm	10
	synt	any
	invoke	2
	unmark
lab L1
	pnull
	line	44
	colm	1
	synt	any
	pfail
	end
proc xml__Formatter_format_pi
	local	0,001000,self
	local	1,001000,n
	local	2,001000,level
	local	3,000000,runerr
	con	0,002000,3,700
	con	1,010000,18,155,145,164,150,157,144,040,146,157,162,155,141,164,137,160,151,050,051
	declend
	line	43
	colm	11
	synt	any
	mark	L1
	var	3
	int	0
	str	1
	line	44
	colm	10
	synt	any
	invoke	2
	unmark
lab L1
	pnull
	line	46
	colm	1
	synt	any
	pfail
	end
proc xml__Formatter_format_element
	local	0,001000,self
	local	1,001000,n
	local	2,001000,level
	local	3,000000,runerr
	con	0,002000,3,700
	con	1,010000,23,155,145,164,150,157,144,040,146,157,162,155,141,164,137,145,154,145,155,145,156,164,050,051
	declend
	line	45
	colm	11
	synt	any
	mark	L1
	var	3
	int	0
	str	1
	line	46
	colm	10
	synt	any
	invoke	2
	unmark
lab L1
	pnull
	line	48
	colm	1
	synt	any
	pfail
	end
proc xml__Formatter_format_cdata
	local	0,001000,self
	local	1,001000,n
	local	2,001000,level
	local	3,000000,runerr
	con	0,002000,3,700
	con	1,010000,21,155,145,164,150,157,144,040,146,157,162,155,141,164,137,143,144,141,164,141,050,051
	declend
	line	47
	colm	11
	synt	any
	mark	L1
	var	3
	int	0
	str	1
	line	48
	colm	10
	synt	any
	invoke	2
	unmark
lab L1
	pnull
	line	50
	colm	1
	synt	any
	pfail
	end
proc xml__Formatter_format_xmldecl
	local	0,001000,self
	local	1,001000,n
	local	2,001000,level
	local	3,000000,runerr
	con	0,002000,3,700
	con	1,010000,23,155,145,164,150,157,144,040,146,157,162,155,141,164,137,170,155,154,144,145,143,154,050,051
	declend
	line	49
	colm	11
	synt	any
	mark	L1
	var	3
	int	0
	str	1
	line	50
	colm	10
	synt	any
	invoke	2
	unmark
lab L1
	pnull
	line	52
	colm	1
	synt	any
	pfail
	end
proc xml__Formatter
	local	0,000020,self
	local	1,000020,clone
	local	2,000000,xml__Formatter__oprec
	local	3,000000,xml__Formatterinitialize
	local	4,000000,xml__Formatter__state
	declend
	filen	__faux.icn
	line	5
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	line	8
	colm	3
	synt	if
	mark0
	pnull
	var	2
	line	8
	colm	6
	synt	any
	null
	unmark
	var	3
	line	8
	colm	58
	synt	any
	invoke	0
	line	8
	colm	3
	synt	endif
	unmark
lab L2
	einit	L1
lab L3
	mark	L4
	pnull
	var	0
	var	4
	line	10
	colm	33
	synt	any
	keywd	null
	var	2
	line	10
	colm	32
	synt	any
	invoke	2
	line	10
	colm	8
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	pnull
	var	0
	line	11
	colm	7
	synt	any
	field	__s
	var	0
	line	11
	colm	12
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	mark	L7
	var	0
	line	12
	colm	3
	synt	any
	pret
lab L7
	synt	any
	pfail
	unmark
lab L6
	pnull
	line	13
	colm	1
	synt	any
	pfail
	end
proc xml__Formatterinitialize
	local	0,000000,xml__Formatter__oprec
	local	1,000000,xml__Formatter__methods
	local	2,000000,xml__Formatter_format
	local	3,000000,xml__Formatter_format_document
	local	4,000000,xml__Formatter_format_content
	local	5,000000,xml__Formatter_format_doctype
	local	6,000000,xml__Formatter_format_comment
	local	7,000000,xml__Formatter_format_pi
	local	8,000000,xml__Formatter_format_element
	local	9,000000,xml__Formatter_format_cdata
	local	10,000000,xml__Formatter_format_xmldecl
	declend
	line	15
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	pnull
	var	0
	var	1
	var	2
	var	3
	var	4
	var	5
	var	6
	var	7
	var	8
	var	9
	var	10
	line	16
	colm	59
	synt	any
	invoke	9
	line	16
	colm	33
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	line	17
	colm	1
	synt	any
	pfail
	end
proc xml__xml_escape
	local	0,001000,s
	local	1,001000,c
	local	2,000020,ch
	local	3,000020,r
	local	4,000000,tab
	local	5,000000,upto
	local	6,000000,pos
	local	7,000000,move
	local	8,000000,ord
	con	0,010000,0
	con	1,002000,1,0
	con	2,002000,1,1
	con	3,010000,1,046
	con	4,010000,5,046,141,155,160,073
	con	5,010000,1,074
	con	6,010000,4,046,154,164,073
	con	7,010000,1,076
	con	8,010000,4,046,147,164,073
	con	9,010000,1,042
	con	10,010000,6,046,161,165,157,164,073
	con	11,010000,2,046,043
	con	12,010000,1,073
	declend
	filen	formatter.icn
	line	52
	colm	11
	synt	any
	mark	L1
	pnull
	var	3
	str	0
	line	55
	colm	6
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	var	0
	line	56
	colm	6
	synt	any
	bscan
lab L3
	line	56
	colm	8
	synt	repeat
	mark	L3
	mark	L6
	pnull
	var	3
	dup
	var	4
	mark	L7
	var	5
	var	1
	line	57
	colm	22
	synt	any
	invoke	1
	line	57
	colm	26
	synt	any
	esusp
	goto	L8
lab L7
	int	1
lab L8
	line	57
	colm	17
	synt	any
	invoke	1
	line	57
	colm	9
	synt	any
	cat
	asgn
	unmark
lab L6
	mark	L9
	line	59
	colm	7
	synt	if
	mark0
	var	6
	int	1
	line	59
	colm	13
	synt	any
	invoke	1
	unmark
	unmark
	unmark
	pnull
	goto	L5
	line	59
	colm	7
	synt	endif
	unmark
lab L9
	pnull
	var	3
	dup
	line	62
	colm	14
	synt	case
	mark0
	pnull
	var	2
	var	7
	int	2
	line	62
	colm	29
	synt	any
	invoke	1
	line	62
	colm	22
	synt	any
	asgn
	eret
	mark	L11
	ccase
	str	3
	line	63
	colm	14
	synt	any
	eqv
	unmark
	pop
	str	4
	goto	L10
lab L11
	mark	L12
	ccase
	str	5
	line	64
	colm	14
	synt	any
	eqv
	unmark
	pop
	str	6
	goto	L10
lab L12
	mark	L13
	ccase
	str	7
	line	65
	colm	14
	synt	any
	eqv
	unmark
	pop
	str	8
	goto	L10
lab L13
	mark	L14
	ccase
	str	9
	line	66
	colm	15
	synt	any
	eqv
	unmark
	pop
	str	10
	goto	L10
lab L14
	pop
	pnull
	pnull
	str	11
	var	8
	var	2
	line	67
	colm	31
	synt	any
	invoke	1
	line	67
	colm	25
	synt	any
	cat
	str	12
	line	67
	colm	36
	synt	any
	cat
lab L10
	line	62
	colm	14
	synt	endcase
	line	62
	colm	9
	synt	any
	cat
	asgn
lab L4
	unmark
	goto	L3
lab L5
	line	56
	colm	8
	synt	endrepeat
	line	56
	colm	6
	synt	any
	escan
	unmark
lab L2
	mark	L15
	mark	L16
	var	3
	line	70
	colm	4
	synt	any
	pret
lab L16
	synt	any
	pfail
	unmark
lab L15
	pnull
	line	71
	colm	2
	synt	any
	pfail
	end
