From e6900d986148bf05a824b364668f975ad30ec12e Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Sun, 22 Sep 2024 13:06:06 +0200 Subject: [PATCH] fix: Fix update_antlr_parser --- update_antlr_parser.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 update_antlr_parser.sh diff --git a/update_antlr_parser.sh b/update_antlr_parser.sh new file mode 100755 index 0000000..c6f8295 --- /dev/null +++ b/update_antlr_parser.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +GIT_ROOT=$(git rev-parse --show-toplevel) + +# aliases +cd $GIT_ROOT/handlers/aliases && antlr4 -Dlanguage=Go -o ast/parser Aliases.g4 + +# sshd_config +cd $GIT_ROOT/handlers/sshd_config && antlr4 -Dlanguage=Go -o ast/parser Config.g4 +cd $GIT_ROOT/handlers/sshd_config/match-parser && antlr4 -Dlanguage=Go -o parser Match.g4 + +# ssh_config +cd $GIT_ROOT/handlers/ssh_config && antlr4 -Dlanguage=Go -o ast/parser Config.g4 +cd $GIT_ROOT/handlers/ssh_config/match-parser && antlr4 -Dlanguage=Go -o parser Match.g4 + +# hosts +cd $GIT_ROOT/handlers/hosts && antlr4 -Dlanguage=Go -o ast/parser Hosts.g4 +