Skip to content

Commit

Permalink
Add header comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mingodad committed Mar 31, 2021
1 parent 5f8da22 commit 82bfba5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tree-sitter-haskel.ebnf
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
Grammar originally from https://github.com/tree-sitter/tree-sitter-haskell
Converted by excuting:
qjs json2ebnf.js
Then manualy fixing the problems reported by https://www.bottlecaps.de/rr/ui in a way to allow visualization (correctnes is not the priority now)
*/
haskell ::= ( empty_file | _module | ( ( _topdecl ( ( ( ( ';' | _layout_semicolon ) ) _topdecl ) )* ) ( ( ';' | _layout_semicolon ) )? ) )

_topdecl ::= ( ( decl_type ) | ( decl_tyfam ) | ( decl_tyinst ) | ( decl_role ) | ( decl_adt ) | ( decl_newtype ) | ( decl_datafam ) | ( decl_datainst ) | ( decl_import ) | ( decl_class ) | ( decl_instance ) | ( decl_default ) | _decl_foreign | ( decl_deriving ) | _decl | ( decl_pattern ) | top_splice )
Expand Down

0 comments on commit 82bfba5

Please sign in to comment.