Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOD-Literal can only be parsed if it has 3 sections #355

Closed
riederm opened this issue Oct 29, 2021 · 3 comments · Fixed by #360
Closed

TOD-Literal can only be parsed if it has 3 sections #355

riederm opened this issue Oct 29, 2021 · 3 comments · Fixed by #360
Assignees
Labels
compatibility-oscat syntax or semantics which are not necessarily part of the standard, but seen in the oscat-libraries good first issue Good for newcomers
Projects

Comments

@riederm
Copy link
Collaborator

riederm commented Oct 29, 2021

the oscat-basic library contains TOD literals with only 2 sections. We currently fail parsing these:

TOD#12:00 should be treated as TOD#12:00:00

@riederm riederm added the compatibility-oscat syntax or semantics which are not necessarily part of the standard, but seen in the oscat-libraries label Oct 29, 2021
@riederm
Copy link
Collaborator Author

riederm commented Oct 29, 2021

we should also consider more flexible versions of all the other time-literals

@riederm riederm added the good first issue Good for newcomers label Oct 29, 2021
@riederm
Copy link
Collaborator Author

riederm commented Oct 29, 2021

the regex really wants 3 segments

#[regex("(TIME_OF_DAY|TOD)#\\d+:\\d+:\\d+(\\.\\d+)?", ignore(case))]

die Funktionen parse_literal_date... im expression_parser.rs erwarten jetzt natürlich genau diese komponenten. Diese müssen auch angepasst werden.

@99NIMI 99NIMI added this to To do in Next via automation Nov 3, 2021
@99NIMI 99NIMI self-assigned this Nov 3, 2021
@create-issue-branch
Copy link

@99NIMI 99NIMI moved this from To do to In progress in Next Nov 3, 2021
@99NIMI 99NIMI moved this from In progress to Review in progress in Next Nov 3, 2021
@99NIMI 99NIMI linked a pull request Nov 3, 2021 that will close this issue
Next automation moved this from Review in progress to Done Nov 5, 2021
99NIMI added a commit that referenced this issue Nov 5, 2021
…be_parsed_if_it_has_3_sections

TOD literlas can now be parsed with 2 and 3 sections (#355)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility-oscat syntax or semantics which are not necessarily part of the standard, but seen in the oscat-libraries good first issue Good for newcomers
Projects
Status: Done
Next
Done
Development

Successfully merging a pull request may close this issue.

2 participants