You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Josh Adams (JIRA)" <ji...@apache.org> on 2018/03/29 13:42:00 UTC

[jira] [Updated] (DAFFODIL-1919) Trailing Separator Suppression

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

Josh Adams updated DAFFODIL-1919:
---------------------------------
    Description: 
Working with Mike on getting the IBMTLOG schema project working, we have come to the conclusion that Daffodil's compiler and runtime cannot correctly support trailing suppression without some major refactoring.

We can currently support separatorSuppresssionPolicy always or never, but trailing suppression requires backtracking that will need its own iterative combinators.

Pull request 55 (which should be pushed upstream soon after the creation of this ticket) includes a couple tests that demonstrate what works and doesn't work with our current implementation.  I believe that we can currently support trailing suppression for required elements, but for optional separated elements things break down when the first element of a sequence is optional and missing.  See org.apache.daffodil.section13.packed.TestPacked.testDelimitedIBM4690IntOptSeq02

  was:
Working with Mike on getting the IBMTLOG schema project working, we have come to the conclusion that Daffodil's compiler and runtime cannot correctly support trailing suppression without some major refactoring.

We can currently support separatorSuppresssionPolicy always or never, but trailing suppression requires backtracking that will need its own iterative combinators.

Pull request 55 (which should be pushed upstream soon after the creation of this ticket) includes a couple tests that demonstrate what works and doesn't work with our current implementation.  I believe that we can currently support trailing suppression for required elements, but for optional separated elements things break down when the first element of a sequence is optional and missing.


> Trailing Separator Suppression
> ------------------------------
>
>                 Key: DAFFODIL-1919
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1919
>             Project: Daffodil
>          Issue Type: Bug
>          Components: DFDL Language
>    Affects Versions: 2.0.0
>            Reporter: Josh Adams
>            Priority: Major
>
> Working with Mike on getting the IBMTLOG schema project working, we have come to the conclusion that Daffodil's compiler and runtime cannot correctly support trailing suppression without some major refactoring.
> We can currently support separatorSuppresssionPolicy always or never, but trailing suppression requires backtracking that will need its own iterative combinators.
> Pull request 55 (which should be pushed upstream soon after the creation of this ticket) includes a couple tests that demonstrate what works and doesn't work with our current implementation.  I believe that we can currently support trailing suppression for required elements, but for optional separated elements things break down when the first element of a sequence is optional and missing.  See org.apache.daffodil.section13.packed.TestPacked.testDelimitedIBM4690IntOptSeq02



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)