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%%%%%%%%%%% %%%%%%%%%%%%%%%%% %%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%% %%%%% %%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%% %%%%% %%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%% %%%%% %%% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Program Matters From Drawing to Code Pablo Miranda Carranza KTH Royal Institute of Technology Architecture School of Architecture and the Built Environment SE-100 44 Stockholm, Sweden ÓPablo Miranda Carranza 2018 School of Architecture KTH Royal Institute of Technology Stockholm, Sweden TRITA - ARK Akademisk avhandling 2017:4 ISSN 1402-7461 ISRN KTH/ARK AA—17:04—SE ISBN 978-91-7729-586-0 Dissertation submitted at KTH (Royal Institute of Technology) in Stockholm for public examination and defence of the Doctor of Philosophy degree on Friday 12th of January, 13:00, lecture room F3, KTH, Lindstedtsvägen 26, Stockholm. Python 2.7.10 (default, Feb 7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> >>> def parse(string): ... size=len(string) ... newString ='' ... for i in xrange(0,size): ... c = string[(i+size-1)%size] + string[i] + string[(i+1)%size] #wrap around ... newString += productions[c] ... return newString ... >>> def processInput(line, times): ... print line ... for i in xrange(1,times): ... line=parse(line) ... print line ... >>> productions = { #Wolfram rule 30 ... ' ': ' ', ... ' %': '%', ... ' % ': '%', ... ' %%': '%', ... '% ': '%', ... '% %': ' ', ... '%% ': ' ', ... '%%%': ' ', ... } >>> >>> processInput( ... ' % ', ... 89) % %%% %% % %% %%%% %% % % %% %%%% %%% %% % % % %% %%%% %%%%%% %% % %%% % %% %%%% %% % %%% %% % % %%%% %% % %% %%%% %% % % %%%% %% % %%% %% %% % % %% %%%% %% %%% %%% %% %%% %% % % %%% % %%% % % %% %%%% %% % % %%%%% %%%%%%% %% % %%% %%%% % %%% % %% %%%% %% %%% %% %% % %%% %% % % %%% % %% %%% %%%% %% % %% %%%% %% % %%%%%% % % %%% %%%% %% % %%% %%%% %%%% %%% %% % % %% %%%% %% %%% % %% % % % %%% %%% %% % % %%% % %%% %% % %%%