Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

antlr-format

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antlr-format

A formatter lib for ANTLR4 grammars

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
increased by333.33%
Maintainers
1
Weekly downloads
 
Created
Source

Weekly Downloads npm version

antlr-formatFormatting Your ANTLR4 Grammars

The antlr-format package provides a small library to format your ANTLR4 grammar in a wide variety of ways. It has a companion named antlr-format-cli which provides a terminal command for running the formatter in batch files and so on. You can read more about it in its own Readme.

Installation

Nothing special here, just use NPM (or any other package manager):

npm i antlr-format 

Usage

Read the formatter documentation for further details and a code example.

Release Notes

2.0.0

BREAKING CHANGE:

The package has been split into a cli wrapper and the actual formatter class. This avoids inclusion of otherwise unnecessary packages, when importing this package and works around a problem with esbuild when mixing ESM and CommonJS modules running in Node.js (for example using Jest with ts-jest).

Additionally, the GrammarFormatter class now accepts a string with the grammar content and does the tokenisation on its own. This avoids that you have to run the ANTLRv4 lexer manually (or even care for it at all).

1.0.0

This is the initial release of the package.

Keywords

FAQs

Package last updated on 25 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc