Skip to content

EXI Grammar Format in JSON #1

@danielpeintner

Description

@danielpeintner

Hi Youenn,

Thank you very much for the EXI decoder. The code looks very promising!

In the schema-informed case, the EXI processor needs to be informed about the expected content which in your case is done with JSON structures.
e.g., tests\streams\schemas\Weblog_grammars.json

May I ask you to explain a bit the object notation (i.e. the meaning) of "grammar"?
For example what each construct means... e.g., in

{
    "name" : "Weblog",
    "uri" : "",
    "grammar" : {
      "initialChoice" : 0,
     "content" : {
        "choices" : [ 0, 1, 1 ],
        "children" : [ 1, 1, -1 ],
        "next" : [ 1, 1, -1 ]
      },
      "xsiTypeNil" : 0
    }
  }

or in

{
    "name" : "entry",
    "uri" : "",
    "grammar" : {
      "initialChoice" : 0,
      "content" : {
        "choices" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
        "children" : [ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -1 ],
        "next" : [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, -1 ]
      },
      "xsiTypeNil" : 0
    }
  }

Thanks again!

-- Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions