aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-14 23:39:47 +0900
committernsfisis <nsfisis@gmail.com>2024-07-14 23:39:47 +0900
commit8eae1719cd68929580ea2c8e795d238a1a03d81d (patch)
tree87c541563d476612feb456701919eb58fee35d60
downloadreparojson-8eae1719cd68929580ea2c8e795d238a1a03d81d.tar.gz
reparojson-8eae1719cd68929580ea2c8e795d238a1a03d81d.tar.zst
reparojson-8eae1719cd68929580ea2c8e795d238a1a03d81d.zip
initial commit
-rw-r--r--.gitignore1
-rw-r--r--Cargo.lock16
-rw-r--r--Cargo.toml9
-rw-r--r--docs/JSON.md105
-rw-r--r--src/main.rs3
5 files changed, 134 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ea8c4bf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/target
diff --git a/Cargo.lock b/Cargo.lock
new file mode 100644
index 0000000..98b0957
--- /dev/null
+++ b/Cargo.lock
@@ -0,0 +1,16 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "anyhow"
+version = "1.0.86"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"
+
+[[package]]
+name = "reparojson"
+version = "0.1.0"
+dependencies = [
+ "anyhow",
+]
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..ebcad2b
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+name = "reparojson"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
+anyhow = "1.0.86"
diff --git a/docs/JSON.md b/docs/JSON.md
new file mode 100644
index 0000000..f5fab89
--- /dev/null
+++ b/docs/JSON.md
@@ -0,0 +1,105 @@
+https://www.json.org/json-en.html
+
+```
+json
+ element
+
+value
+ object
+ array
+ string
+ number
+ "true"
+ "false"
+ "null"
+
+object
+ '{' ws '}'
+ '{' members '}'
+
+members
+ member
+ member ',' members
+
+member
+ ws string ws ':' element
+
+array
+ '[' ws ']'
+ '[' elements ']'
+
+elements
+ element
+ element ',' elements
+
+element
+ ws value ws
+
+string
+ '"' characters '"'
+
+characters
+ ""
+ character characters
+
+character
+ '0020' . '10FFFF' - '"' - '\'
+ '\' escape
+
+escape
+ '"'
+ '\'
+ '/'
+ 'b'
+ 'f'
+ 'n'
+ 'r'
+ 't'
+ 'u' hex hex hex hex
+
+hex
+ digit
+ 'A' . 'F'
+ 'a' . 'f'
+
+number
+ integer fraction exponent
+
+integer
+ digit
+ onenine digits
+ '-' digit
+ '-' onenine digits
+
+digits
+ digit
+ digit digits
+
+digit
+ '0'
+ onenine
+
+onenine
+ '1' . '9'
+
+fraction
+ ""
+ '.' digits
+
+exponent
+ ""
+ 'E' sign digits
+ 'e' sign digits
+
+sign
+ ""
+ '+'
+ '-'
+
+ws
+ ""
+ '0020' ws
+ '000A' ws
+ '000D' ws
+ '0009' ws
+```
diff --git a/src/main.rs b/src/main.rs
new file mode 100644
index 0000000..0672e51
--- /dev/null
+++ b/src/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+ println!("Hello, World!");
+}