Skip to content

Lark should be "programming" like ANTLR or EBNF #5231

Discussion options

You must be logged in to vote

Yet EBNF, PEG, ANTLTR, etc, are classified as "programming". I

🤔 EBNF is not:

https://github.com/github/linguist/blob/fcda9cfe7295c1d51409c2de5f111b9847ff427b/lib/linguist/languages.yml#L1287-L1288

Linguist doesn't know about PEG, but I agree ANTLR is.

As for why Lark is considered "data": from the original PR: #5049 (courtesy of @Alhadis)

This PR adds support for Lark grammar files, a variant of EBNF used by the Lark parsing library.

So it'll be because EBNF is considered data. Why?

Support was added in #3312 which doesn't provide much info but the commit 33899b9 states:

Extended Backus–Naur form ([EBNF][]) is a metalanguage used to specify language grammars.

... and the wiki page …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ThatXliner
Comment options

Answer selected by ThatXliner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants