ruby + parslet + self-ml = juicy bits
This is a ruby library for reading self-ml files.
It is mostly finished, just needs a good polish.
It will only parse correctly formed files, returning an error otherwise.
Comming really soon:
gem install self-ml
Read in a .selfml file and pretty print it
require 'selfml'
document = SelfML.parse( File.read "file.selfml" ) # SelfML.parse expects a string and returns a SelfML::Document.
puts document.to_s # SelfML::AST::Document.to_s provides the document in pretty printing format.
http://rubydoc.info/github/locks/self-ml/master/frames