Output the first position in your program for each input character
Python2, 55 Bytes

a=&quot; )dfi(+m,nprut.';&quot;;print map(('a=&quot;'+a).find,input())

Starts with a string that contains all the characters used in the code, and then search the indexes