master > master: kleiner syntaxfehler

master
RD 1 year ago
parent 6b30155953
commit d4a3f2177b
  1. 5
      code/aussagenlogik/schema.py

@ -9,9 +9,6 @@ from __future__ import annotations;
# install: lark; lark-parser; lark-parser[regex].
# https://lark-parser.readthedocs.io/en/latest/grammar.html
from lark import Lark;
from lark import Tree;
from typing import List;
from typing import Union;
from aussagenlogik.syntaxbaum import SyntaxBaum;
@ -66,7 +63,7 @@ def isDisjunction(fml: SyntaxBaum) -> bool:
return fml.kind == 'disj';
def isLongDisjunction(fml: SyntaxBaum) -> bool:
return fml.kind == ['disj', 'disj_lang'];
return fml.kind in ['disj', 'disj_lang'];
def isImplication(fml: SyntaxBaum) -> bool:
return fml.kind == 'impl';

Loading…
Cancel
Save