dev-cafe / parselglossy

Generic input parsing library, speaking in tongues.
https://parselglossy.readthedocs.io
MIT License
7 stars 2 forks source link

Validate input against a template; closes #2. #20

Closed bast closed 5 years ago

bast commented 5 years ago

Prototyping input validation. For reference see #2.

Few notes:

I know that the Python can be beautified and compacted but already at this stage all feedback welcome. You can run the example by stepping into the directory and running validate.py.

robertodr commented 5 years ago

As for complex numbers, I will remove them from the Getkw grammar, as they were not part of the original "specification". We might have to resort to separate real and imaginary parts or have an implicit translation predicate from str to complex.

bast commented 5 years ago

So at least from my (validation) perspective, complex numbers are not a problem - I was only "lazy" to solve it today but it's a two-line workaround. But perhaps I misunderstood the comment.

codecov[bot] commented 5 years ago

Codecov Report

Merging #20 into master will increase coverage by 4.34%. The diff coverage is 96.66%.

robertodr commented 5 years ago

Really looking awesome! Thanks @bast :confetti_ball: :green_apple: