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

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

     [ https://issues.apache.org/jira/browse/DAFFODIL-2807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Thompson closed DAFFODIL-2807.
-----------------------------------

Verified the specified commit (commit 7d52935d8983d6038a8f071c44e547cf3e6b85ad) is included in the latest pull from the daffodil repository.

Verified, via review, changes identified in the commit comment were implemented. 

Verified the affected daffodil subproject sbt test suites executed successfully, including the new tests.

> 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
>            Priority: Minor
>             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)