Advertisement
Guest User

Untitled

a guest
Mar 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.87 KB | None | 0 0
  1. (! classification                                         ## ! starts the DSL and 'classification' is the name of tag category which allows us doing an arbitrary number of tagging.
  2.     (@ (HASH (: "name" holding.atype.name)                ## @ is the rule. The first argument (The whole HASH block) is the tag.
  3.              (: "order" holding.atype.order))             ## In this case, we have a hash of name/order object as our tag.
  4.        true                                               ## This is the condition. As we want to stick on the ctype (atype here), we set to true.
  5.        ($ (@ (HASH (: "name"  holding.artifact.stype)     ## $ is child rules. And the rest is similar as @ has the same meaning as above.
  6.                    (: "order" holding.artifact.stype))
  7.              (NOT (EMPTY? holding.artifact.stype))))))    ## We are not interested in the null/empty stypes.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement