PS - this is an experimental repo - currently having a nap :)
Tool for parsing and transforming text files, through grammar, logic, and functional stuff
- Write grammar rules to describe the structure of patterns in your data
- Write rules to modify certain patterns, depending on content, and output
Inspired (heavily) by Prolog's DCG (Definite Clause Grammar), and also using Prolog in this initial, exploratory implementation PS - not ready to try - just using GIT to store history & stuff for now
This project will also include a Java GUI connected to prolog, to let you work with your parsing projects in a way inspired by tools like MySQL Workbench - so you can try things, and store your experiments
Will also (hopefully) include graphical debugging of the rules you write, for debugging and pedagogical purposes.
WHY?
Lets say you want to parse some text-file, get all the relevant data structured as it suits you, and then transform that data in some practical manner. (or - heck - just perform a Really complex search/replace operation)
THINGS TO FOCUS ON NEXT
- Figure out what kinds of data-structure transformations I want to do, and how to do them
- Improve the parsing-rule-API, to make more practical ways of capturing things
- Nail down how the abstract syntax trees from parsing should look, so I can update the Java GUI to display that after parsing