[
https://issues.apache.org/jira/browse/DAFFODIL-1493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Lawrence resolved DAFFODIL-1493.
--------------------------------------
Resolution: Fixed
Fixed in commit 48ad264405690e15788fca74c14ed75b2fd952b4
> %ES; delimiter doesn't work right
> ---------------------------------
>
> Key: DAFFODIL-1493
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1493
> Project: Daffodil
> Issue Type: Bug
> Components: Back End, General
> Reporter: Steve Lawrence
> Assignee: Steve Lawrence
> Priority: Major
> Fix For: 2.4.0
>
>
> See the linked review comments for more details. The jist of it is that when
> an %ES; is in a delimiter, the associated DFA is not getting compiled
> correctly, and it actually will match a literal %ES;. There is code in
> DelimiterParser.scala that inefficiently looks for ES when a match isn't
> found, and accepts it as an empty match. Instead, the DFA scanner should be
> returning the %ES; as a successful match in the parse results, and then
> DelimiterParser.scala can use the same logic to determine which DFA matched.
> This would allow us to get rid of the hasES functions and be more efficient.
> Note that some things may be tricky because when scanning for a delimiter, we
> have to ignore the %ES;, since they'll match anything. We may need new
> iterators that ignore these.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)