Kotlin / website-grammar-generator

Kotlin ANTLR grammar converter to XML for the Kotlin website or text file

Home Page:https://kotlinlang.org/docs/reference/grammar.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kotlin website grammar generator

JetBrains team project GitHub license

Description

The tool converts Kotlin grammar in ANTLR format to text file or XML file for the Kotlin website.

Source grammar files are located in the Kotlin specification repository.

Generated grammar is used on the Kotlin website: https://kotlinlang.org/docs/reference/grammar.html

Input arguments

  • --xml/--text — target file format,
  • -o/--output — path to output file (grammar.xml or grammar.txt),
  • -g/--grammarFilesPath — path to folder with grammar files (KotlinLexer.g4, KotlinParser.g4 and UnicodeClasses.g4).

Run

The tool can be run using gradle (./gradlew run) or IDE (run main method with arguments).

About

Kotlin ANTLR grammar converter to XML for the Kotlin website or text file

https://kotlinlang.org/docs/reference/grammar.html

License:Apache License 2.0


Languages

Language:Kotlin 100.0%