version	U12.1.00
uid	makelsys.u1-1784908799-0
record	Lsys,6
	0,name
	1,axiom
	2,gener
	3,angle
	4,comment
	5,productions
impl	error
global	3
	0,000011,Lsys,6
	1,000005,makelsys,1
	2,000005,readlsys,1

proc makelsys
	local	0,001000,lst
	local	1,000020,line
	local	2,000020,i
	local	3,000020,s
	local	4,000020,c
	local	5,000020,symbol
	local	6,000020,rewrite
	local	7,000020,allchars
	local	8,000020,rhs
	local	9,000020,value
	local	10,000020,spec
	local	11,000020,result
	local	12,000000,Lsys
	local	13,000000,table
	local	14,000000,get
	local	15,000000,move
	local	16,000000,tab
	local	17,000000,upto
	con	0,020000,0
	con	1,002000,1,1
	con	2,010000,2,055,076
	con	3,002000,1,0
	con	4,020000,1,072
	con	5,010000,5,141,170,151,157,155
	con	6,010000,3,145,156,144
	declend
	filen	makelsys.icn
	line	30
	colm	11
	synt	any
	mark	L1
	pnull
	var	11
	var	12
	line	34
	colm	18
	synt	any
	invoke	0
	line	34
	colm	11
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	6
	var	13
	line	36
	colm	20
	synt	any
	invoke	0
	line	36
	colm	12
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	var	7
	cset	0
	line	37
	colm	13
	synt	any
	asgn
	unmark
lab L3
	mark	L4
lab L5
	line	39
	colm	4
	synt	while
	mark0
	pnull
	var	1
	var	14
	var	0
	line	39
	colm	21
	synt	any
	invoke	1
	line	39
	colm	15
	synt	any
	asgn
	unmark
	mark	L5
	var	1
	line	40
	colm	12
	synt	any
	bscan
	line	41
	colm	10
	synt	ifelse
	mark	L8
	pnull
	var	5
	var	15
	int	1
	line	41
	colm	27
	synt	any
	invoke	1
	line	41
	colm	20
	synt	any
	asgn
	pop
	pnull
	str	2
	line	41
	colm	33
	synt	any
	tabmat
	unmark
	mark	L10
	pnull
	var	8
	var	16
	int	3
	line	42
	colm	23
	synt	any
	invoke	1
	line	42
	colm	17
	synt	any
	asgn
	unmark
lab L10
	mark	L11
	pnull
	pnull
	var	6
	var	5
	line	43
	colm	20
	synt	any
	subsc
	var	8
	line	43
	colm	29
	synt	any
	asgn
	unmark
lab L11
	pnull
	var	7
	dup
	var	8
	line	44
	colm	22
	synt	any
	unions
	asgn
	goto	L9
lab L8
	line	46
	colm	15
	synt	if
	mark0
	pnull
	var	10
	var	16
	var	17
	cset	4
	line	46
	colm	34
	synt	any
	invoke	1
	line	46
	colm	29
	synt	any
	invoke	1
	line	46
	colm	23
	synt	any
	asgn
	unmark
	mark	L12
	var	15
	int	1
	line	47
	colm	17
	synt	any
	invoke	1
	unmark
lab L12
	mark	L13
	pnull
	var	9
	var	16
	int	3
	line	48
	colm	25
	synt	any
	invoke	1
	line	48
	colm	19
	synt	any
	asgn
	unmark
lab L13
	mark	L14
	line	49
	colm	13
	synt	ifelse
	mark	L15
	pnull
	var	10
	str	5
	line	49
	colm	21
	synt	any
	lexeq
	unmark
	pnull
	var	7
	dup
	var	9
	line	49
	colm	46
	synt	any
	unions
	asgn
	goto	L16
lab L15
	line	50
	colm	18
	synt	if
	mark0
	pnull
	var	10
	str	6
	line	50
	colm	26
	synt	any
	lexeq
	unmark
	unmark
	unmark
	pnull
	goto	L7
	line	50
	colm	18
	synt	endif
lab L16
	line	49
	colm	13
	synt	endifelse
	unmark
lab L14
	pnull
	pnull
	pnull
	var	11
	var	10
	line	51
	colm	20
	synt	any
	subsc
	line	51
	colm	13
	synt	any
	null
	var	9
	line	51
	colm	27
	synt	any
	asgn
	line	46
	colm	15
	synt	endif
lab L9
	line	41
	colm	10
	synt	endifelse
	line	40
	colm	12
	synt	any
	escan
lab L6
	unmark
	goto	L5
lab L7
	line	39
	colm	4
	synt	endwhile
	unmark
lab L4
	mark	L17
	line	60
	colm	4
	synt	every
	mark0
	pnull
	var	4
	pnull
	var	7
	line	60
	colm	15
	synt	any
	bang
	line	60
	colm	12
	synt	any
	asgn
	pop
	mark0
	pnull
	pnull
	pnull
	var	6
	var	4
	line	61
	colm	14
	synt	any
	subsc
	line	61
	colm	6
	synt	any
	null
	var	4
	line	61
	colm	18
	synt	any
	asgn
	unmark
lab L18
	efail
lab L19
	line	60
	colm	4
	synt	endevery
	unmark
lab L17
	mark	L20
	pnull
	pnull
	var	11
	line	63
	colm	10
	synt	any
	field	productions
	var	6
	line	63
	colm	23
	synt	any
	asgn
	unmark
lab L20
	mark	L21
	mark	L22
	var	11
	line	65
	colm	4
	synt	any
	pret
lab L22
	synt	any
	pfail
	unmark
lab L21
	pnull
	line	67
	colm	1
	synt	any
	pfail
	end
proc readlsys
	local	0,001000,input
	local	1,000020,result
	local	2,000000,put
	local	3,000000,read
	local	4,000000,makelsys
	declend
	line	69
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	pnull
	line	72
	colm	14
	synt	any
	llist	0
	line	72
	colm	11
	synt	any
	asgn
	unmark
lab L1
	mark	L2
lab L3
	line	74
	colm	4
	synt	while
	mark0
	var	2
	var	1
	var	3
	var	0
	line	74
	colm	26
	synt	any
	invoke	1
	line	74
	colm	13
	synt	any
	invoke	2
lab L4
	unmark
	goto	L3
lab L5
	line	74
	colm	4
	synt	endwhile
	unmark
lab L2
	mark	L6
	mark	L7
	var	4
	var	1
	line	76
	colm	19
	synt	any
	invoke	1
	line	76
	colm	4
	synt	any
	pret
lab L7
	synt	any
	pfail
	unmark
lab L6
	pnull
	line	78
	colm	1
	synt	any
	pfail
	end
