[[JHIPSTER一覧]] *** 目次 [#ccc51550] #contents *Chevrotainとは [#i02690fd] Chevrotainは、Javascriptのライブラリですが、英語の辞書での意味は、動物の「まめじか」です。 Chevrotainは、JavaScript用の非常に高速で機能豊富な Parser Building Toolkitです。 単純な設定ファイルから本格的なプログラミング言語まで、さまざまなユースケースに対応するパーサ/コンパイラ/インタプリタを構築するために使用できます。 Chevrotainはパーサジェネレータではないながらも、コードを生成することなく、パーサジェネレータと同じ種類の問題を解決します。 Chevrotain Grammarsは、新しいツールやプロセスを必要とせずに、他の純粋なコードと同じように作成/デバッグ/編集できる純粋なコードです。 * GITHUB [#u22d7c69] https://github.com/SAP/chevrotain * WEB上のツール [#i0cddcc0] ** 入力と出力と、グラフィカルな構文解析の図を、インタラクティブに試せるサイト [#x6317808] https://sap.github.io/chevrotain/playground/ ** パース速度のベンチマーク [#td1e2aa8] https://sap.github.io/chevrotain/performance/ ** チュートリアル [#yd10ef2a] https://sap.github.io/chevrotain/docs/tutorial/step0_introduction.html ** ユーザガイド [#s96d24f8] https://sap.github.io/chevrotain/docs/guide/introduction.html * インストール [#f8c0507a] npm install chevrotain ** ブラウザでのインストール [#j8b898d3] *** 最新版 [#w896331a] https://unpkg.com/chevrotain/lib/chevrotain.js または https://unpkg.com/chevrotain/lib/chevrotain.min.js *** 任意のバージョン指定 [#h83d8571] https://unpkg.com/chevrotain@4.8.1/lib/chevrotain.js または https://unpkg.com/chevrotain@4.8.1/lib/chevrotain.min.js * Chevrotain のサンプル [#qac3964f] https://github.com/SAP/chevrotain/tree/master/examples * FAQ [#g124d720] https://sap.github.io/chevrotain/docs/FAQ.html * 構文 [#o7a82c8b] https://sap.github.io/chevrotain/documentation/4_8_1/classes/parser.html * 依存関係 [#acebd015] regexp-to-astライブラリへの依存はひとつだけです。ブラウザでの消費を容易にするために、この依存関係はバンドルされているアーティファクトに含まれています。 * 互換性 [#g97053b4] Chevrotainは最新のJavaScript ES5.1ランタイム上で動作します。それは現代のnodejsバージョン、現代のブラウザそしてIE11さえ含みます。 UMDを使用して、一般的なモジュールローダー(ブラウザのグローバル/ amd / commonjs)と連携します。 * 寄与 [#v6522e2f] 詳細はCONTRIBUTING.mdを見てください。 * このパーサライブラリが使われているアプリ [#ha0212de] いくつかの興味深いサンプル: *** JHipster [#ha819c67] https://github.com/jhipster/jhipster-core/blob/master/lib/dsl/jdl_parser.js https://github.com/jhipster *** metabase [#cd93af9c] データ可視化ツール https://github.com/metabase/metabase/blob/136dfb17954f4e4302b3bf2fee99ff7b7b12fd7c/frontend/src/metabase/lib/expressions/parser.js https://github.com/metabase/metabase/tree/136dfb17954f4e4302b3bf2fee99ff7b7b12fd7c *** witheve / Eve [#k3e34a6d] 人間向けに、デザインされた、新しいEve言語のパーサに使われています。 https://github.com/witheve/Eve/blob/master/src/parser/parser.ts https://github.com/witheve/Eve *** BioModelAnalyzerのChatBot [#ue3952a7] 生物学的モデルを視覚的に表現するツールのチャットボットにつかわれている。 https://github.com/Microsoft/BioModelAnalyzer/blob/master/ChatBot/src/NLParser/NLParser.ts https://github.com/microsoft/BioModelAnalyzer *** bombadil [#m145f5b8] bombadilは JSONやYAMLの進化系のTOMLのjavascriptパーサー [#p615acb1] https://github.com/sgarciac/bombadil/blob/master/src/parser.ts https://github.com/sgarciac/bombadil *** argdown [#qe392359] argdownは テキストで書かれた論文の論理の構造とかをマインドマップみたいなグラフで表現して、把握しやすくするツール [#hc4c991d] https://github.com/christianvoigt/argdown/blob/master/packages/argdown-core/src/parser.ts https://github.com/christianvoigt/argdown