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/12/09 00:49:00 UTC

[jira] [Resolved] (DAFFODIL-2865) Give codegen-c somewhat limited dfdl:assert support

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

John Interrante resolved DAFFODIL-2865.
---------------------------------------
    Resolution: Fixed

Fixed in commit b4eaa46c0c6b17b9be7f94772a2e37ae817801f0

> Give codegen-c somewhat limited dfdl:assert support
> ---------------------------------------------------
>
>                 Key: DAFFODIL-2865
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2865
>             Project: Daffodil
>          Issue Type: Improvement
>          Components: Back End C-Generator
>    Affects Versions: 3.7.0
>            Reporter: John Interrante
>            Assignee: John Interrante
>            Priority: Minor
>             Fix For: 3.7.0
>
>
> On the basis that a little support is better than none, allow codegen-c to generate C code for a limited subset of dfdl:assert expressions.  The use case is to allow generated code to validate or reject messages using dfdl:assert expressions as well as ranges and enumerations.  The dfdl:assert support is limited to replacing "../foo/x" and "."  with the appropriate pointers and replacing DFDL named operators ("eq") with C-compatible operators ("==") using find and replace operators.  In the long term, a better approach would be to add methods to the compiled expression classes to generate C code directly from the compiled expressions with fuller understanding of what the parts of the expressions represent.



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