[ 
https://issues.apache.org/jira/browse/DAFFODIL-2801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18053407#comment-18053407
 ] 

Olabusayo Kilo commented on DAFFODIL-2801:
------------------------------------------

Implicit with SSP=trailingEmpty works as expected, with it looking for the 
prefix / for absent arre1 in e2 in the added implicitvparsed.tdml as per the 
spec (Table 47: RepDef(min) ~ Rep(max - min), which means RepDef(1) followed by 
Rep(2), so it expects the separator for the last empty arre1 element), so the 
workaround/right thing to do as stated by Steve if we don't want the empty 
trailing / is to use anyEmpty

> Array with Choice parses incorrectly when occursCountKind is implicit
> ---------------------------------------------------------------------
>
>                 Key: DAFFODIL-2801
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2801
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>    Affects Versions: 3.4.0
>            Reporter: Olabusayo Kilo
>            Assignee: Olabusayo Kilo
>            Priority: Major
>             Fix For: 4.1.0
>
>         Attachments: TestImplicitvParsed.scala, implicitvparsed.tdml
>
>
> When an inner array with an infix separator (contained in a sequence with a 
> prefix separator) has a choice within it and is occurs count kind implicit, 
> it's unable to correctly backtrack and find the separator and fails with a 
> separator not found. The exact same scenario with the OCK set to parsed, 
> works as expected. Attached are the tdml files.
> Tested with 3.4.0 and 3.5.0 snapshot.



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

Reply via email to