Make a serdes module and move GAML into it

The module is serialization/deserialization. This is in preparation for
putting JSON in the module, as well as binary
serialization/deserialization for Yvm.

Signed-off-by: Gavin Howard <gavin@yzena.com>
master
Gavin D. Howard 2 months ago
parent 2a914b8dac
commit 07dcb98544
Signed by: gavin
GPG Key ID: F890265DD80E4E90

@ -1,12 +0,0 @@
# GAML (`gaml`)
This module is for parsing and dumping GAML (Gavin's Accessible Minimal
Language).
:::{toctree}
---
maxdepth: 2
---
api.md
design.md
:::

@ -2,6 +2,8 @@
## Requirements
### GAML
* Create a GAML type.
* Tagged union of ymaps, ystrs (char arrays since they don't change?),
doubles, unsigned long long, long long, and NULL.

@ -0,0 +1,13 @@
# Serialization/Deserialization (`serdes`)
This module is for serializing and deserializing data.
It includes parsing and dumping GAML (Gavin's Accessible Minimal Language).
:::{toctree}
---
maxdepth: 2
---
api.md
design.md
:::

@ -101,8 +101,8 @@ list(APPEND YC_SRC "${YC_YVM_SRC}")
add_subdirectory(yao)
list(APPEND YC_SRC "${YC_YAO_SRC}")
add_subdirectory(gaml)
list(APPEND YC_SRC "${YC_GAML_SRC}")
add_subdirectory(serdes)
list(APPEND YC_SRC "${YC_SERDES_SRC}")
add_subdirectory(rig)
list(APPEND YC_SRC "${YC_RIG_SRC}")

@ -65,7 +65,7 @@
#include "rig.h"
#include "../gaml/gaml.h"
#include "../serdes/gaml.h"
y_Status
rig_db_paths_sinit(rig_db_paths* p)

@ -69,7 +69,7 @@
#include "../yc.h"
#include "../gaml/gaml.h"
#include "../serdes/gaml.h"
#include "../sys/sys.h"
#include "../yao/yao.h"

@ -86,7 +86,7 @@ extern "C"
#include "../concurrency/strucon.h"
#include "../concurrency/threadset.h"
#include "../container/svec.h"
#include "../gaml/gaml.h"
#include "../serdes/gaml.h"
#include "../yao/yao.h"
#include "../yvm/yvm.h"

@ -49,11 +49,11 @@
#
# ****** END LICENSE BLOCK ******
set(YC_GAML_SRC
set(YC_SERDES_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/lex.c"
"${CMAKE_CURRENT_SOURCE_DIR}/parse.c"
"${CMAKE_CURRENT_SOURCE_DIR}/gaml_lex.c"
"${CMAKE_CURRENT_SOURCE_DIR}/gaml_parse.c"
"${CMAKE_CURRENT_SOURCE_DIR}/gaml.c"
)
set(YC_GAML_SRC "${YC_GAML_SRC}" PARENT_SCOPE)
set(YC_SERDES_SRC "${YC_SERDES_SRC}" PARENT_SCOPE)

@ -85,7 +85,7 @@ extern "C"
//! @endcond
/**
* @file src/gaml/gaml.h
* @file src/serdes/gaml.h
*/
/**

@ -77,7 +77,7 @@
#include "../container/map.h"
#include "../container/smap.h"
#include "../gaml/gaml.h"
#include "../serdes/gaml.h"
#include "../str/str.h"
#include "../str/string.h"

@ -89,4 +89,4 @@ add_subdirectory(io)
add_subdirectory(str)
add_subdirectory(gaml)
add_subdirectory(serdes)

@ -67,7 +67,7 @@
#include "../fuzzing.h"
#include "../../src/concurrency/strucon.h"
#include "../../src/gaml/gaml.h"
#include "../../src/serdes/gaml.h"
#include "../../src/util/utf8.h"
typedef enum y_Gaml_Action

@ -67,7 +67,7 @@
#include "../fuzzing.h"
#include "../../src/concurrency/strucon.h"
#include "../../src/gaml/gaml.h"
#include "../../src/serdes/gaml.h"
#include "../../src/util/utf8.h"
#include "../../src/yao/yao.h"
Loading…
Cancel
Save