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

[jira] [Updated] (DAFFODIL-1590) setVar evaluates before element terminator

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

Steve Lawrence updated DAFFODIL-1590:
-------------------------------------
    Fix Version/s: 3.5.1
                       (was: 3.5.0)

> setVar evaluates before element terminator
> ------------------------------------------
>
>                 Key: DAFFODIL-1590
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1590
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, General, Unparsing
>            Reporter: Mike Beckerle
>            Assignee: Josh Adams
>            Priority: Major
>             Fix For: 3.5.1
>
>
> So there's a bug here. if setVar is supposed to evaluate (for elements) after the entire element, then we shouldn't be passing setVar grammar terms to the element combinator, but putting them in the grammar after the element's terminator.
> Actually, we need the grammar to pass the grammar regions that include the element's initiator and terminator to the ElementCombinator, so that the unparseEnd can happen after the setVar, but the setVars happen after the terminator. 
> So some grammar refactoring is required.



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