diff --git a/README.md b/README.md new file mode 100644 index 0000000..bb78591 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# What? +NPON (networked pages object notation) is an experimental object syntax
+For use in serving networked pages over TCP
+In order to do this, I made a very basic protocol called OTP (NPON object transfer protocol)
+This transfers the objects over TCP using some specific control characters (32 reserved)
+ +# NPON syntax +[syntax](docs/SYNTAX.md) diff --git a/docs/SYNTAX.md b/docs/SYNTAX.md new file mode 100644 index 0000000..f7f76b5 --- /dev/null +++ b/docs/SYNTAX.md @@ -0,0 +1,18 @@ +This syntax is kinda like JSON
+But not quite.
+Here is an example:
+``` +(index) = { + (meta) = { + (notation) = "NPON" + (version) = '0.1' + } + (pages) = { + :home.npon: + } +} +``` +as you can see, keys are surrounded by brackets ()
+strings are surrounded by quotes "" or ''
+and you can import data from another file with colons ::
+Additionaly, strings support backslashes if you need quotes within quotes.