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