Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.77 KB

readme.md

File metadata and controls

53 lines (37 loc) · 1.77 KB

trgen

Summary

Generate an Antlr4 parser for a given target language

Description

Generate a parser application using the Antlr tool and application templates. The generated parser is placed in the directory /Generated/. If there is a pom.xml file in the current directory, trgen will read it for information on the grammar. If there is no pom.xml file, the start rule must be provided. If the current directory is empty, trgen will create a parser for the Arithmetic.g4 grammar.

Usage

trgen <options>* 

Examples

trgen

Current version

0.23.0 Major changes to trgen, trparse, trfoldlit, trquery. Removal of trinsert, trdelete, trmove, trdelabel, trstrip.

License

The MIT License

Copyright (c) 2024 Ken Domino

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.