diff --git a/src/formulate/ttreeformula.py b/src/formulate/ttreeformula.py index bd2ed70..9c9541f 100644 --- a/src/formulate/ttreeformula.py +++ b/src/formulate/ttreeformula.py @@ -9,7 +9,7 @@ from . import matching_tree -expression_grammar = """ +expression_grammar = r''' start: expression expression: disjunction | disjunction ":" expression -> multi_out disjunction: conjunction | conjunction "||" conjunction -> lor @@ -47,7 +47,7 @@ %import common.NUMBER %import common.WS %ignore WS -""" +''' def exp_to_ptree(exp: str):