You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.
Is your feature request related to a problem? Please describe.
Currently, it is still legal to create an LDLf formula whose atoms have upper-cased characters, differently from LTLf.
fromflloat.parser.ltlfimportLTLfParserLTLfParser()("F(a)") # this is OKLTLfParser()("F(A)") # this raises error
fromflloat.parser.ldlfimportLDLfParserLTLfParser()("a") # this is OKLTLfParser()("A") # this is OK although should raise exception
Describe the solution you'd like
Update LDLf module to forbid uppercased propositions.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered:
marcofavorito
changed the title
Forbid uppercased in LDLf
Forbid uppercased proposition in LDLf
Mar 24, 2020
marcofavorito
changed the title
Forbid uppercased proposition in LDLf
Forbid uppercased propositions in LDLf
Mar 24, 2020
Both formulae and names can be used as atomic symbols.
A name must be a string made of letters, numbers, underscores, or it must
be a quoted string.
"""
name_regex=re.compile(r'(\w+)|(".*")')
This is inherited by PLAtomic and LDLfPropositionalAtom. Instead, LTLfAtomic overrides the regex to forbid uppercase letters (to solve the ambiguity with with temporal operators).
Maybe we prefer a more uniform behaviour, among logics. In this case, we can simply move the regex from LTLfAtomic to AtomicFormula, to apply it to all of them.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is your feature request related to a problem? Please describe.
Currently, it is still legal to create an LDLf formula whose atoms have upper-cased characters, differently from LTLf.
Describe the solution you'd like
Update LDLf module to forbid uppercased propositions.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: