package lambdapi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=1066aed2618fd8e6a400c5147dbf55ea977ce8d3fe2e518ac6785c6775a1b8be
sha512=f7f499626aba92e070ae69581299a58525973fdbfd04a160ed3ac89209fb6cbe307b816d0b23e1b75bc83467ce8b4b0530c6f9816eaf58f7a07fde65a450106c
doc/lambdapi.core/Core/Builtin/index.html
Module Core.BuiltinSource
Registering and checking builtin symbols.
get ss pos name returns the symbol mapped to the builtin name. If the symbol cannot be found then Fatal is raised.
get_opt ss name returns Some s where s is the symbol mapped to the builtin name, and None otherwise.
Hash-table used to record checking functions for builtins.
check ss pos name sym runs the registered check for builtin symbol name on the symbol sym (if such a check has been registered). Note that the bmap argument is expected to contain the builtin symbols in scope, and the pos argument is used for error reporting.
register name check registers the checking function check, for the builtin symbols named name. When the check is run, check receives as argument a position for error reporting as well as the map of every builtin symbol in scope. It is expected to raise the Fatal exception to signal an error. Note that this function should not be called using a name for which a check has already been registered.
val register_expected_type :
Term.term Lplib.Base.eq ->
Term.term Lplib.Base.pp ->
string ->
(Sig_state.sig_state -> Common.Pos.popt -> Term.term) ->
unitregister_expected_type name build pp registers a checking function that checks the type of a symbol defining the builtin name against a type constructed using the given build function.