Sha256: 509fc3bd2f9a899165646627215b887bf215ce5b8e363ce23df6da32d9a425be

Contents?: true

Size: 1.07 KB

Versions: 230

Compression:

Stored size: 1.07 KB

Contents

#!/usr/bin/python
#
# A python script to create a large Shiltolang file.
#
# Copyright (C) 2010 Gregory Cohen <gregorycohenvideos@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from sys import argv

characters = "abcdefghijklmnopqrstuvwxyz"
characters = characters

filename = argv[1]

with open(filename, "w") as f:
	for a in characters:
		for b in characters:
			for c in characters:
				string = a + b + c
				f.write("f " + string + " = 1.0;\n")
				f.write("output " + string + ";\n")

Version data entries

230 entries across 46 versions & 6 rubygems

Version Path
ufos-1.0.94 ./other/old_compiler/shiltiumcomp59/test/create_large_file.py
ufos-1.0.94 ./other/old_compiler/shiltiumcomp58/test/create_large_file.py
ufos-1.0.94 ./other/old_compiler/shiltiumcomp/test/create_large_file.py
ufos-1.0.94 ./other/old_compiler/shiltiumcomp76/test/create_large_file.py
ufos-1.0.94 ./other/old_compiler/shiltiumcomp78/test/create_large_file.py
aliens-1.0.94 ./other/old_compiler/shiltiumcomp59/test/create_large_file.py
aliens-1.0.94 ./other/old_compiler/shiltiumcomp76/test/create_large_file.py
aliens-1.0.94 ./other/old_compiler/shiltiumcomp58/test/create_large_file.py
aliens-1.0.94 ./other/old_compiler/shiltiumcomp/test/create_large_file.py
aliens-1.0.94 ./other/old_compiler/shiltiumcomp78/test/create_large_file.py
freespeech-1.0.94 ./other/old_compiler/shiltiumcomp59/test/create_large_file.py
freespeech-1.0.94 ./other/old_compiler/shiltiumcomp/test/create_large_file.py
freespeech-1.0.94 ./other/old_compiler/shiltiumcomp78/test/create_large_file.py
freespeech-1.0.94 ./other/old_compiler/shiltiumcomp58/test/create_large_file.py
freespeech-1.0.94 ./other/old_compiler/shiltiumcomp76/test/create_large_file.py
elonmusk-1.0.94 ./other/old_compiler/shiltiumcomp76/test/create_large_file.py
elonmusk-1.0.94 ./other/old_compiler/shiltiumcomp58/test/create_large_file.py
elonmusk-1.0.94 ./other/old_compiler/shiltiumcomp59/test/create_large_file.py
elonmusk-1.0.94 ./other/old_compiler/shiltiumcomp/test/create_large_file.py
elonmusk-1.0.94 ./other/old_compiler/shiltiumcomp78/test/create_large_file.py