Skip to content

Tool for parsing and transforming text files, through grammar, logic, and functional stuff

Notifications You must be signed in to change notification settings

toblotron/Trafo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PS - this is an experimental repo - currently having a nap :)

Trafo

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

About

Tool for parsing and transforming text files, through grammar, logic, and functional stuff

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published