Lumiera
0.pre.03
»edit your freedom«
|
Functions | |
uint | detectArity (smatch const &match) |
detect the arity of an predicate, as matched by findPredicate. More... | |
regex | findPredicate ("\*"+matchSym+"("+matchArg+")?\*,?") |
sym(arg) , groups: [symbol, parenthesis, argument symbol] | |
Variables | |
const string | matchArg = "\\(\\s*"+matchSym+"?\\s*\\)" |
const string | matchSym = "(\\w+(?:[\\.\\-]\\w+)*)" |
|
inline |
detect the arity of an predicate, as matched by findPredicate.
Currently, we don't really parse predicate logic notation and thus we just distinguish nullary predicates (no argument) and predicates with one single constant argument.
Definition at line 65 of file common/advice/binding.cpp.