Skip to content

Commit

Permalink
antlr4.yaml: Add g4 language
Browse files Browse the repository at this point in the history
Closes #27
  • Loading branch information
Dhiraj240 committed Dec 14, 2018
1 parent e0b4e01 commit 44ebd02
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/Delimiter/antlr_colon_semicolon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: block
start: ":"
end: ";"
46 changes: 46 additions & 0 deletions data/Language/antlr4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
identifier: antlr4
creation_date: 2017
wikidata: Q295801
full_name: Another Tool For Language Recognition
grammar_file: https://github.com/antlr/grammars-v4/tree/master/antlr4
aliases:
- antlr4
extensions:
- g4
line_continuation:
- backslash
- vertbar
delimiters:
# comment delimiters:
- double_slash
- multiline_slash_star
- multiline_double_slash_star
# string delimiters:
- single_quote_slash_escape
# block delimiters:
- curly_braces
- round_braces
- square_braces
- antlr_colon_semicolon
keywords:
- import
- fragment
- lexer
- parser
- grammar
- returns
- locals
- throws
- catch
- finally
- mode
- options
- tokens
- skip
- more
- popMode
# x is a parameter
- mode(x)
- pushMode(x)
- type(x)
- channel(x)

0 comments on commit 44ebd02

Please sign in to comment.