11# JsonParser
22
3- C++言語のためのJSONパーサーライブラリです。
4- std::istreamでJSONデータを受け取り、対応する抽象構文木を生成します。
3+ is a JSON parser library for C++.
4+ Get json data as std::istream and return the corresponding AST.
5+ This is a header only library.
56
67## CI
78
8- | 状態 | 環境 |
9+ | Status | Environment |
910| :--:| :--:|
1011| [ ![ CMake] ( https://github.com/PANFACTORY/jsonparser/actions/workflows/cmake.yml/badge.svg )] ( https://github.com/PANFACTORY/jsonparser/actions/workflows/cmake.yml ) | ubuntu-latest(g++)|
1112
12- ## 生成規則
13+ ## Generative Grammar
1314
14- このライブラリではJSONフォーマットが以下の生成規則に従うものと想定します。
15+ This library interprets sentences defined as follows as JSON.
1516
1617```
1718<Value> -> String | Number | Boolean | Null | <Object> | <Array>
1819<Object> -> "{" "}" | "{" String : <Value> {, String : <Value> } "}"
1920<Array> -> [ ] | [ <Value> {, <Value>} ]
2021```
2122
22- ## サンプル
23+ ## Example
2324
24- ` main.cpp ` を作成して以下のコードを入力します。
25+ Create ` main.cpp ` and type the following code.
2526
2627```
2728#include <iostream>
@@ -40,33 +41,36 @@ int main() {
4041}
4142```
4243
43- 例えばWindowsでClangを用いる場合、以下のコマンドでビルド、実行します。
44- なお、 ` <Your Include Path> ` は使用される環境に合わせて設定してください。
44+ Build and run with the following commands(, for example, use clang++).
45+ Of course, set ` <Your Include Path> ` based on your environment.
4546
4647```
4748clang++ -I <Your Include Path> ./main.cpp
4849./a.exe
4950```
5051
51- 標準入力で以下を入力し、続けて⏎、Ctrl+z、⏎を入力します。
52+ Enter the following in the standard input.
5253
5354```
54- { "user_info": { "user_id": "A1234567", "user_name": "Yamada Taro" } }
55+ { "user_info": { "user_id": "A1234567", "user_name": "Yamada Taro" } } ⏎ Ctrl+z ⏎
5556```
5657
57- すると、以下の結果が返されます。
58+ Then you can get the response as below.
5859
5960```
6061{"user_info":{"user_id":"A1234567","user_name":"Yamada Taro"}}
6162A1234567
6263```
6364
64- ## ドキュメント
65- - [ ドキュメント ] ( https://panfactory.github.io/jsonparser/ )
65+ ## Document
66+ - [ Document ] ( https://panfactory.github.io/jsonparser/ )
6667
67- ## 参考URL
68- - [ JSON形式 ] ( https://www.tohoho-web.com/ex/json.html )
68+ ## Reference
69+ - [ JSON format ] ( https://www.tohoho-web.com/ex/json.html )
6970
70- ## 依存
71+ ## Dependency
7172- Google Test
7273- Doxygen
74+
75+ ## License
76+ - [ MIT] ( https://github.com/PANFACTORY/jsonparser/blob/main/LICENSE )
0 commit comments