From 44ebd0286e992ac427fbf9f4031464b4f4690553 Mon Sep 17 00:00:00 2001 From: Dhiraj240 Date: Thu, 15 Nov 2018 17:30:38 +0530 Subject: [PATCH] antlr4.yaml: Add g4 language Closes https://github.com/coala/coAST/issues/27 --- data/Delimiter/antlr_colon_semicolon.yaml | 3 ++ data/Language/antlr4.yaml | 46 +++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 data/Delimiter/antlr_colon_semicolon.yaml create mode 100644 data/Language/antlr4.yaml diff --git a/data/Delimiter/antlr_colon_semicolon.yaml b/data/Delimiter/antlr_colon_semicolon.yaml new file mode 100644 index 0000000..793079c --- /dev/null +++ b/data/Delimiter/antlr_colon_semicolon.yaml @@ -0,0 +1,3 @@ +type: block +start: ":" +end: ";" diff --git a/data/Language/antlr4.yaml b/data/Language/antlr4.yaml new file mode 100644 index 0000000..a1f1d6d --- /dev/null +++ b/data/Language/antlr4.yaml @@ -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)