summaryrefslogtreecommitdiff
path: root/tnslc/compile/generator.tnsl
blob: 28a834d25a126cc2a8497f559aa3150039cbc6dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/; generate (utils.File fin, fout)

	fin.open()
	fout.create()

	uint8 buf = fin.read()
	/; loop (fin.at_end == false && fout.at_end == false)
		fout.write(buf)
		buf = fin.read()
	;/

	fin.close()
	fout.close()

;/