You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "John Interrante (Jira)" <ji...@apache.org> on 2023/04/01 18:38:00 UTC

[jira] [Created] (DAFFODIL-2807) Add left over data check to generated C parsers

John Interrante created DAFFODIL-2807:
-----------------------------------------

             Summary: Add left over data check to generated C parsers
                 Key: DAFFODIL-2807
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2807
             Project: Daffodil
          Issue Type: Improvement
          Components: Back End C-Generator
            Reporter: John Interrante
            Assignee: John Interrante
             Fix For: 3.5.0


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)