Skip to content

Implement 'P' textNumberPattern feature.#911

Merged
mbeckerle merged 1 commit intoapache:mainfrom
mbeckerle:daf-2763-p
Jan 13, 2023
Merged

Implement 'P' textNumberPattern feature.#911
mbeckerle merged 1 commit intoapache:mainfrom
mbeckerle:daf-2763-p

Conversation

@mbeckerle
Copy link
Contributor

The 'P' is also a COBOL feature from their picture clauses.

Also this change set incorporates additional review feedback on the 'V' feature change set.

Note that the 'P' and 'V' feature does not support some obscure textNumberPattern as yet such as:

  1. a textNumberPattern with a trailing 'V' (no 0 digits after)

  2. combining 'V' with an exponent specification.

Those usages are allowed technically by the DFDL v1.0 specification (the grammar in section 13.6.1.1 labeled Figure 4), but that usage is so obscure that I am NOT going to create a bug report about implementing these behaviors until someone complains.

Similarly it is technically possible to use say, CR (carriage return) or ASCII NUL as your plus sign
character. I claim that is a mistake in the DFDL spec to allow that, so use of line-ending characters is not allowed.

DAFFODIL-2763

Copy link
Member

@stevedlawrence stevedlawrence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 👍 just some minor comments/questions

Copy link
Contributor

@tuxji tuxji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Contributor Author

@mbeckerle mbeckerle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All current issues should be fixed now.

The 'P' is also a COBOL feature from their picture
clauses.

Also this change set incorporates additional review feedback on the
'V' feature change set.

Note that the 'P' and 'V' feature does not support some obscure
textNumberPattern as yet such as:

1. a textNumberPattern with a trailing 'V' (no 0 digits after)

2. combining 'V' with an exponent specification.

Those usages are allowed technically by the DFDL v1.0
specification (the grammar in section 13.6.1.1 labeled Figure 4), but
that usage is so obscure that I am NOT going to create a bug report
about implementing these behaviors until someone complains.

Similarly it is technically possible to use say, CR
(carriage return) or ASCII NUL as your plus sign
character. I claim that is a mistake in the DFDL spec to
allow that, so use of line-ending characters is not
allowed.

DAFFODIL-2763
@mbeckerle mbeckerle merged commit d5919e0 into apache:main Jan 13, 2023
@mbeckerle mbeckerle deleted the daf-2763-p branch January 13, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants