This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/misc/editors/language-yap/snippets/language-yap.cson

14 lines
266 B
Plaintext

".source.prolog":
DCG:
prefix: "dcg"
body: "${1:clause} --> ${0:body}."
Fact:
prefix: "fact"
body: "${1:functor_name}(${2:argument})."
Rule:
prefix: "rule"
body: '''
${1:functor_name}(${2:argument}) :-
${0:%% body}
'''