madman-bob / python-parse-2d

Python tools for parsing two-dimensional programming languages
MIT License
1 stars 1 forks source link

Packaging ? #1

Open gl-yziquel opened 3 weeks ago

gl-yziquel commented 3 weeks ago

Hi.

I've been looking at python-parse-2d as it seems to be one of the few tools designed to do 2D textual parsing.

I would have liked to tinker with it. Unfortunately, it is not packaged. It would be great if you would consider making it installable from source with python -m build --wheel followed by cd dist && pip install *.whl --force-reinstall.

My use case for 2D parsing would be:

xvw: o
uzw: o
------
xyu: o
yzv: o

This is a combinatorial structure with respect to free variables x, y, z, u, v, w and a relational symbol o separated by some inference line. As such, I'd be curious to know if python-parse-2d would support that kind of 2D layout parsing.

Making a package out of your code would save me some time and get me straight to tinkering.

gl-yziquel commented 3 weeks ago

If you could provide some sample code that would be able to parse two such blocks of axioms randomly placed on a "page", I'm pretty sure your code could fit the bill for what I intend.

Until then, reading your code is a bit rough.

Instructions to run the tests would also be nice.