Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2807

Add left over data check to generated C parsers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.5.0
    • Back End C-Generator
    • None

    Description

      Fix generated C parsers not checking for left over data after parse calls and not clearing infoset between parse calls.  Rename some infoset C functions more consistently (C snake style).

      Also enhance C code generator to support DFDL schemas containing simple type root elements, allowing generated C parsers to parse data and infosets containing only a single element.  Add examples and new tests for simple root elements as well.

      Also replace any non-alphabetical / non-numerical characters with underscores when converting XML identifiers to C identifiers, allowing XML element names like "simple-boolean" to become "simple_boolean" in generated C code.

      Attachments

        Activity

          People

            jinterrante John Interrante
            jinterrante John Interrante
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: