vlasovskikh / funcparserlib

Recursive descent parsing library for Python based on functional combinators
https://funcparserlib.pirx.ru
MIT License
338 stars 38 forks source link

Added experimental '-' ignored operator with stricter type hints for '-' and '+' #67

Closed vlasovskikh closed 3 years ago

vlasovskikh commented 3 years ago

skip(x) is an alias to -x in this experiment.

Type hints for + are incorrect if you have 3 or more tuple elements that are not ignored.

I've been also considering a non-magical sequence combinator, maybe operator &, that would return actual nested tuples.