package pyre-ast
Full-fidelity Python parser in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
pyre-ast-0.1.11.tbz
sha256=c344def5b0360185b404f99cacdb250b7061e38ed547cb871b7f9398c94c4900
sha512=4579de8085f42757224744f5980034ca589b2bd6eb77f7966a277c63011201fb2a260f730691aecd4e8c21cf2d1ae98b741277649ec965b256c4e333722e055f
doc/pyre-ast/PyreAst/Concrete/index.html
Module PyreAst.Concrete
Source
This module provides types for a concrete abstract syntax tree of Python, for downstream clients who perfer conventional ADT over the tagless-final approach.
The structure of the syntax tree is kept in sync with the structure of the tagless-final APIs. Consult documentation of TaglessFinal
for meanings of the various syntax constructs.
Record/variant definitions are intentionally made private
within this module. To construct those records/variants, use the corresponding make_t
constructor functions.
See TaglessFinal.Keyword
.
See TaglessFinal.Pattern
.
See TaglessFinal.Module
.
Source
val make_tagless_final :
unit ->
(Argument.t,
Arguments.t,
BinaryOperator.t,
BooleanOperator.t,
ComparisonOperator.t,
Comprehension.t,
Constant.t,
ExceptionHandler.t,
Expression.t,
ExpressionContext.t,
FunctionType.t,
Identifier.t,
ImportAlias.t,
Keyword.t,
Location.t,
MatchCase.t,
Module.t,
Pattern.t,
Position.t,
Statement.t,
TypeIgnore.t,
TypeParam.t,
UnaryOperator.t,
WithItem.t)
TaglessFinal.t
Return a value of TaglessFinal.t
whose specification is to construct a concrete AST as defined in this module.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>