4 ms·
Indeed, I don't really understand how that could be code. Are those just cute symbols to match on?
by vutekst 13y ago
Indeed, I don't really understand how that could be code. Are those just cute symbols to match on?
- chrismonsanto 13y agoYes -- see https://github.com/hraberg/shen.clj/blob/master/shen/src/prolog.shen#L305 https://github.com/hraberg/shen.clj/blob/master/shen/src/pro... Upper case symbols are variables, as in Prolog. The others are literal matches.
- kenko 13y agoElsewhere in the file he matches on things like "rename the variables": https://github.com/hraberg/shen.clj/blob/master/shen/src/prolog.shen#L305-L327 https://github.com/hraberg/shen.clj/blob/master/shen/src/pro...