package lambdapi
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=0e2e73e0ea0c674f1263bf85ed3453ed3d6084d38eea29974a03ba9e382d29d7
sha512=2831db57fcd09206687a92fc9ee7d363e87bcec5167949e9c8161d41c63d5887b9f3556bfd63a7a9a0c12e5a5dc61a397baf4f496ebdb2a2fce122142c05e7a1
doc/lambdapi.parsing/Parsing/DkRule/index.html
Module Parsing.DkRuleSource
get_args t decomposes the parser level term t into a spine (h,args), when h is the term at the head of the application and args is the list of all its arguments. The arguments are stored together with the position of the corresponding application node in the source code. Note that h is guaranteed not to be a P_Appl node. Term constructors with no equivalent in the dk syntax (like binary symbol applications) are not handled.
add_args t args builds the application of the term t to the arguments args. When args is empty, the returned value is exactly t. Note that this function is the inverse of get_args (in some sense).
type p_dk_rule =
((Common.Pos.strloc * Syntax.p_term option) list
* Syntax.p_term
* Syntax.p_term)
Common.Pos.locRepresentation of a reduction rule, with its context.
to_p_rule r transforms the dk representation of a rule into the lp representation.