propogate TRUE/FALSE encoding changes
This commit is contained in:
parent
a72a1a1665
commit
fb2e79b807
3 changed files with 5 additions and 5 deletions
|
|
@ -103,7 +103,7 @@ class _Top(AST):
|
||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "1"
|
return "TRUE"
|
||||||
|
|
||||||
def __invert__(self):
|
def __invert__(self):
|
||||||
return BOT
|
return BOT
|
||||||
|
|
@ -113,7 +113,7 @@ class _Bot(AST):
|
||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "0"
|
return "FALSE"
|
||||||
|
|
||||||
def __invert__(self):
|
def __invert__(self):
|
||||||
return TOP
|
return TOP
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ GRAMMAR = {
|
||||||
'phi': (
|
'phi': (
|
||||||
('Unary', 'phi'),
|
('Unary', 'phi'),
|
||||||
('(', 'phi', 'Binary', 'phi', ')'),
|
('(', 'phi', 'Binary', 'phi', ')'),
|
||||||
('AP', ), ('0', ), ('1', )
|
('AP', ), ('FALSE', ), ('TRUE', )
|
||||||
),
|
),
|
||||||
'Unary': (('~', ), ('G', 'Interval'), ('F', 'Interval'), ('X', )),
|
'Unary': (('~', ), ('G', 'Interval'), ('F', 'Interval'), ('X', )),
|
||||||
'Interval': (('', ), ('[1, 3]', )),
|
'Interval': (('', ), ('[1, 3]', )),
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ const_or_unbound = const / "inf" / id
|
||||||
|
|
||||||
AP = ~r"[a-z][a-z\d]*"
|
AP = ~r"[a-z][a-z\d]*"
|
||||||
|
|
||||||
bot = "False"
|
bot = "FALSE"
|
||||||
top = "True"
|
top = "TRUE"
|
||||||
|
|
||||||
id = ~r"[a-z\d]+"
|
id = ~r"[a-z\d]+"
|
||||||
const = ~r"[-+]?(\d*\.\d+|\d+)"
|
const = ~r"[-+]?(\d*\.\d+|\d+)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue