diff --git a/src/doc/docs/platform_essentials/mpsutils/importer_and_exporter.md b/src/doc/docs/platform_essentials/mpsutils/importer_and_exporter.md index 25329f87..7294a13a 100644 --- a/src/doc/docs/platform_essentials/mpsutils/importer_and_exporter.md +++ b/src/doc/docs/platform_essentials/mpsutils/importer_and_exporter.md @@ -23,3 +23,32 @@ This plugin adds two actions for importing XML files into MPS: - *Import XML File(s)*: This action parses on or multiple XML files and creates XML root nodes for them in the selected model. +## JSON + +> ^^com.mbeddr.mpsutil.json^^ + +This language implements a simple JSON language you can use as a generator target. The [JSON file](http://127.0.0.1:63320/node?ref=r%3Abe665d13-1e1d-44cd-9817-8bd4d610f422%28com.mbeddr.mpsutil.json.structure%29%2F4342692121161094115) root node supports an additional package name used as the folder inside the generation folder. + +An example of a file that you can generate: + +```json +{ + "description" : "This is a JSON file", + "name" : "my JSON file", + "this is an object" : { + "And another object" : { + "With a description" : "object description", + "An array" : [ + "valu1", + "value2" + ], + "withANumber" : 1.232E+231231, + "empty array" : [ ], + "empty object" : { }, + "empty string" : "" + } + } +} +``` + +An importer also exists for the language. It can import all JSON files in a folder or just single files. \ No newline at end of file diff --git a/src/doc/docs/platform_essentials/mpsutils/languages.md b/src/doc/docs/platform_essentials/mpsutils/languages.md deleted file mode 100644 index 1852c80e..00000000 --- a/src/doc/docs/platform_essentials/mpsutils/languages.md +++ /dev/null @@ -1,34 +0,0 @@ -# Languages - -Besides C, this page describes languages that are implement as part of {{ mbeddr() }}. Some incomplete languages that can be -implemented by textGen were removed as they didn't provide any advantages. Only JSON is still a full implemented language. - -## JSON - -> ^^com.mbeddr.mpsutil.json^^ - -This language implements a simple JSON language you can use as a generator target. The [JSON file](http://127.0.0.1:63320/node?ref=r%3Abe665d13-1e1d-44cd-9817-8bd4d610f422%28com.mbeddr.mpsutil.json.structure%29%2F4342692121161094115) root node supports an additional package name used as the folder inside the generation folder. - -An example of a file that you can generate: - -```json -{ - "description" : "This is a JSON file", - "name" : "my JSON file", - "this is an object" : { - "And another object" : { - "With a description" : "object description", - "An array" : [ - "valu1", - "value2" - ], - "withANumber" : 1.232E+231231, - "empty array" : [ ], - "empty object" : { }, - "empty string" : "" - } - } -} -``` - -An importer also exists for the language. It can import all JSON files in a folder or just single files. \ No newline at end of file diff --git a/src/doc/mkdocs.yml b/src/doc/mkdocs.yml index 837c5be3..e6f522d6 100644 --- a/src/doc/mkdocs.yml +++ b/src/doc/mkdocs.yml @@ -388,7 +388,6 @@ nav: - Base Language Extensions: platform_essentials/mpsutils/baselanguage_extensions.md - Generator: platform_essentials/mpsutils/generator.md - Importer and Exporter: platform_essentials/mpsutils/importer_and_exporter.md - - Languages: platform_essentials/mpsutils/languages.md - Language Extensions: platform_essentials/mpsutils/language_extensions.md - Tools: platform_essentials/mpsutils/tools.md - UI: platform_essentials/mpsutils/ui.md