asciidoctor / asciidoc-grammar-prototype

:no_entry: ARCHIVED: An experiment to create of a formal grammar for the AsciiDoc markup language. Work is being continued at https://github.com/Mogztter/asciidoctor-inline-parser.
MIT License
17 stars 6 forks source link

= Asciidoctor Grammar Prototype

This repository contains an ANTLR4 grammar for AsciiDoc.

[NOTE]

This is a work in progress project in an early stage.

Feel free to change anything you need and send a PR.

== Hacking

The project uses Gradle as a build tool with the antlr plugin.

Just clone the repo

$ git clone https://github.com/asciidoctor/asciidoc-grammar-prototype

Import it in your preferred IDE and check the available tasks

$ gradlew tasks

=== Gradle tasks To offer some help the following Gradle tasks are included:

image:docs/images/TestRig_example.png[]

=== Helper classes

The class org.asciidoctor.parser.antlr.AntlrParser provides some methods to interact with the antlr's API.

Note that it depends on the generated Java parsing classes, expect some IDE complains about missing classes during parser generation.

=== IDE support

Both Intellij and Eclipse have plugins with features like grammar syntax highlighting. Check http://www.antlr.org/tools.html for more details.

== References

Here is a list of interesting links about the syntax and the state of this project:

== Contributing

We want you! Yes, you.

Anyone can contribute to an Asciidoctor project. If you have a specialty, or just some creativity to share, we need your participation. We have big aspirations for the project and we need an assortment of skill sets in order to reach them. Make no mistake, contributing is not just for developers.

Of course, we'll always need help with the code as it's the basis of the project. But code isn't going to make the project successful alone. We also need documentation, automation, design, marketing, communication, advocacy and more for it to make an impact.

Here are just a few of the ways you can contribute to the project:

The best way to get involved is just to show up and express your interest. We have a very friendly and encouraging culture. Harassment or offensive behavior is simply not tolerated. We are positive, even when being critical. We also strive to lift others up and help them be successful. We want your choice to participate in an Asciidoctor project be the start of an exciting and rewarding journey. So thanks for showing up!