feat(lua): add has_metavar method
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
9e445d1917
commit
b0322787ff
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@ Author: Leonardo de Moura
|
||||||
#include "kernel/for_each.h"
|
#include "kernel/for_each.h"
|
||||||
#include "kernel/free_vars.h"
|
#include "kernel/free_vars.h"
|
||||||
#include "kernel/occurs.h"
|
#include "kernel/occurs.h"
|
||||||
|
#include "kernel/metavar.h"
|
||||||
#include "library/expr_lt.h"
|
#include "library/expr_lt.h"
|
||||||
#include "bindings/lua/util.h"
|
#include "bindings/lua/util.h"
|
||||||
#include "bindings/lua/name.h"
|
#include "bindings/lua/name.h"
|
||||||
|
@ -235,6 +236,7 @@ EXPR_PRED(is_value)
|
||||||
EXPR_PRED(is_metavar)
|
EXPR_PRED(is_metavar)
|
||||||
EXPR_PRED(has_free_vars)
|
EXPR_PRED(has_free_vars)
|
||||||
EXPR_PRED(closed)
|
EXPR_PRED(closed)
|
||||||
|
EXPR_PRED(has_metavar)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief Iterator (closure base function) for application args. See \c expr_args
|
\brief Iterator (closure base function) for application args. See \c expr_args
|
||||||
|
@ -406,6 +408,7 @@ static const struct luaL_Reg expr_m[] = {
|
||||||
{"instantiate", safe_function<expr_instantiate>},
|
{"instantiate", safe_function<expr_instantiate>},
|
||||||
{"abstract", safe_function<expr_abstract>},
|
{"abstract", safe_function<expr_abstract>},
|
||||||
{"occurs", safe_function<expr_occurs>},
|
{"occurs", safe_function<expr_occurs>},
|
||||||
|
{"has_metavar", safe_function<expr_has_metavar>},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue