Skip to content

UniGrammar/antlrCompile.py

Repository files navigation

antlrCompile.py Unlicensed work

wheel (GitLab) wheel (GHA via nightly.link) GitLab Build Status GitLab Coverage GitHub Actions Libraries.io Status Code style: antiflash

We have moved to https://codeberg.org/UniGrammar/antlrCompile.py, grab new versions there.

Under the disguise of "better security" Micro$oft-owned GitHub has discriminated users of 1FA passwords while having commercial interest in success and wide adoption of FIDO 1FA specifications and Windows Hello implementation which it promotes as a replacement for passwords. It will result in dire consequencies and is competely inacceptable, read why.

If you don't want to participate in harming yourself, it is recommended to follow the lead and migrate somewhere away of GitHub and Micro$oft. Here is the list of alternatives and rationales to do it. If they delete the discussion, there are certain well-known places where you can get a copy of it. Read why you should also leave GitHub.


A python wrapper for ANTLR 4 - a well-known multilanguage LL(*) parser generator. The libs allows you to

  • transpile an ANTLR grammar into the corresponding source code.
  • visualize AST resulted from parsing source code with a grammar for debug purposes.

Currently it lacks docs, but be brave to read the source code, it is only a wrapper that is not that big.

Our fork is currently needed

You need our fork of ANTL in order for this to work. We have tried to upstream our changes, but the project's BDFL is against "big changes". Then I had refactored the changes into several smaller PRs that don't introduce the changes but make it easier for me to introduce them with subclassing. They are still not merged:

About

Python bindings to antlr for automation of parsers generation.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages