wheel (GitLab)
wheel (GHA via
nightly.link
)
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.
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:
- Refactor
CodeGenerator
: move target initialization code into a separate method - Extracted getting the interp file name into a separate method
Tool::getInterpFileName
- Move a part of
CodeGenerator.write
into a separate reusable methodwriteToWriter
to be able to reuse it later - Convert some members of CodeGenerator from private into protected