package lambdapi
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=9bc8ae3694dd51bd5742e7aba760bd2878c4b0e5ef9b3d4a7b06f3cd303b611d
sha512=c812c3129b3d85b0c4d7e741d11137dbb4fe2a0aaba3a5968409080b742924ecb506280c19ad83ef6bc910346db96d87780313fa7683c29345edae16ae79c704
doc/lambdapi.parsing/Parsing/DkRule/index.html
Module Parsing.DkRule
Source
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.loc
Representation of a reduction rule, with its context.
to_p_rule r
transforms the dk representation of a rule into the lp representation.