Mercurial > lbo > hg > pcombinators
changeset 12:03803eda236a draft
Remove dead code in arithmetic parser
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sun, 19 May 2019 18:04:23 +0200 |
parents | b89582ed94be |
children | 484382f18838 |
files | arith_test.py |
diffstat | 1 files changed, 0 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/arith_test.py Sun May 19 18:03:56 2019 +0200 +++ b/arith_test.py Sun May 19 18:04:23 2019 +0200 @@ -31,13 +31,6 @@ (lambda l: (l[0], l[1], l[2]) if len(l) == 3 else l[0]) ) -class Psower(Parser): - - def parse(self, st): - p = OptimisticSequence(Last(Atom()), Operator('^'), Last(Atom())) - to_tuple = p >> (lambda l: (l[0], l[1], l[2]) if len(l) == 3 else l[0]) - return to_tuple.parse(st) - class Product(Parser): def parse(self, st):