NOTE: work in progress!
J! is a parser generator for domain specific languages.
J! is different from many parser generators in that the syntax is expressive enough to support parsing strings as well as objects, arrays or any other value type. The result of this capability is that each step of the compiler can be expressed as dsl.
OMeta’s key insight is the realization that all of the passes in a traditional compiler are essentially pattern matching operations
~ Experimenting with Programming Languages, Alessandro Warth 2009
How to use
npm i jbang
// This generates a parser which can be used as a// Parses a calculator dsl which procuces mathematical resultsassertvalue === 3
This is a work in progress
This project is based on a previous project I made called Meta# which was a C# implementation of the ideas written in the OMeta paper by Alessandro Warth.