package reason
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Reason: Syntax & Toolchain for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
reason-3.11.0.tbz
sha256=a58837f14a79f047c8eb99d5518aeb16ee64353574286cfd5b284c98a1a27250
sha512=28d6d1c3636e400614b1a7d8c78b0bbb5de143e259edf683139b75d2fd2013da8e1a6c58d11047e6853f1e559c387d233570665de0de646005197b5f4d6f4879
doc/index.html
reason
API
Library reason
Merlin_recoveryOcaml_utilReason_attributesReason_commentReason_config* Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree.Reason_declarative_lexerReason_errorsReason_heuristicsReason_layoutReason_lexerReason_locationReason_multi_parserReason_oprintReason_parserReason_parser_defReason_parser_explainReason_parser_explain_rawReason_parser_recoverReason_pprint_astReason_recover_parserReason_single_parserReason_syntax_utilReason_toolchain* Provides a simple interface to the most common parsing entrypoints required * by editor/IDE toolchains, preprocessors, and pretty printers. * * The form of this entrypoint includes more than what the standard OCaml * toolchain (oprof/ocamldoc) expects, but is still compatible. * *implementation_with_commentsandinterface_with_commentsincludes * additional information (about comments) suitable for building pretty * printers, editor, IDE and VCS integration. * * The comments include the full text of the comment (typically in between the * "(*" and the "*)", as well as location information for that comment. * * WARNING: The "end" location is one greater than the actual final position! * (for bothassociatedTextLocandcommentLoc). * * Currently, the location information for comments is of the form: * * (associatedTextLoc) * * But we should quickly change it to be of the form: * * (associatedTextLoc, commentLoc) * * Where thecommentLocis the actual original location of the comment, * and theassociatedTextLocrecords the location in the file that the * comment is attached to. IfassociatedTextLocandcommentLocare the * same, then the comment is "free floating" in that it only attaches to itself. * TheReasonpretty printer will try its best to interleave those comments * in the containing list etc. But ifassociatedTextLocexpands beyond * thecommentLocit means the comment and the AST that is captured by * theassociatedTextLocare related - where "related" is something * thisreason_toolchaindecides (but in short it handles "end of line * comments"). Various pretty printers can decide how to preserve this * relatedness. Ideally, it would preserve end of line comments, but in the * short term, it might merely use that relatedness to correctly attach * end of line comments to the "top" of the AST node. * * let lst =* *; (* Comment *) * ----commentLoc----- * ---associatedTextLoc---- * * * Ideally that would be formatted as: * * let lst =* *; (* Comment *) * * Or: * * let lst =; (* Comment *) * * * But a shorter term solution would use thatassociatedTextLocto at least * correctly attach the comment to the correct node, even if not "end of line". * * (* Comment *) * let lst =;Reason_toolchain_confReason_toolchain_ocamlReason_toolchain_reason
Library reason.cmdliner
Vendored_cmdlinerDeclarative definition of command line interfaces.
Library reason.easy_format
Vendored_easy_formatEasy_format: indentation made easy.
Library reason.ocaml-migrate-parsetree
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page