tthuem / VariantSync

Automating the synchronization of software variants
GNU Lesser General Public License v3.0
6 stars 2 forks source link

Importing and Exporting AST to and from JSON #51

Open pmbittner opened 3 years ago

pmbittner commented 3 years ago

The ASTs from issue #50 have to be serializable sucht that we can compare them across sessions and between tools. Therefore, we agreed on a common JSON format:

{
    "uuid" : 1,
    "value" : "some string",
    "grammar_type" : "grammar type as string",
    "children" : [
        "... further nodes in recursive structure"
    ]
}

So the goal is, to implement and exporter and an importer to serialize ASTs into that format.