资 源 简 介
lang4j is a tool that makes it easy to add support for custom DSLs to your java programs.
It supports the creation of a parser and a DOM-representation from a single, labeled BNF description.
lang4j uses the venerable ANTLR tool to generate the actual parser.
Apart from the parser a renderer, that takes DOM-instances and renders them to the language, a dot formatted class diagram of the DOM, and a template for unit testing is created.
The best way of getting started is looking at the UserListTutorial.