I am writing a Prolog program for tokenization. Currently, I am able to get a list of ASCII code but I just don't know how to tokenize them to return a list of tokens.
For example, if I have:
[105,110,116,32,105,110,116,32,97,32,13,10,105,110,116,32],
how do I obtain: [int,int,a,int]
?
I know the key is to read list by '32' and separate everything before 32 and append [105,110,116]
to become 'int', I am new to list so I am not familiar with Prolog. Any help?