Reason
  • ドキュメント
  • 試してみる
  • API
  • コミュニティ
  • ブログ
  • Languages icon日本語
    • English
    • Deutsch
    • Español
    • Français
    • 한국어
    • Português (Brasil)
    • Русский
    • Українська
    • 中文
    • 繁體中文
    • 翻訳を助ける
  • GitHub

›セットアップ

はじめに

  • What & Why

セットアップ

  • インストール
  • エディタのプラグイン

言語の基本

  • 概要
  • Let Bindings
  • Primitives
  • Basic Structures
  • Types
  • Records
  • Variants
  • Options and nullability
  • Functions
  • Recursion
  • 構造化代入
  • Pattern Matching
  • Mutable Bindings
  • Loops
  • Modules

Advanced Features

  • JSX
  • External
  • 例外
  • Object

JavaScript

  • Interop
  • Syntax Cheatsheet
  • Pipe First
  • Promise
  • ライブラリ
  • JS からの変換

Extra

  • よくある質問
  • Extra Goodies
Translate

エディタのプラグイン

Reason's nature lends itself to great editor support. Most of our editor plugins provides at minimum:

  • 型の表示。
  • refmt によるプログラムコードのフォーマッティング。
  • エラー & 警告の表示。
  • シンタックスハイライト。
  • 型駆動のオートコンプリート。
  • 定義へのジャンプ。

And other features.

Editor Plugins & Language Server

Since Reason is just an alternative syntax for OCaml, we integrate seamlessly into the official OCaml editor toolchain as well.

  • For VSCode, we recommend using the vscode-ocaml-platform plugin, which offers OCaml & Reason support out of the box.
  • For other editors, we recommend using a language server client plugin of your choice, and pairing it with the ocaml-lsp. Check out the respective README's to get started.

Other:

  • Vim/Neovim: Make sure to use ocaml-language-server for native development as suggested. (Mac, Linux): npm install -g ocaml-language-server
  • vim-reasonml: For use with esy, Reason, and Merlin (not LSP based). (Mac, Linux, Windows).
← インストール概要 →
  • Editor Plugins & Language Server