fix: Fix update_antlr_parser

This commit is contained in:
Myzel394 2024-09-22 13:06:06 +02:00
parent fc0dca8d32
commit e6900d9861
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185

18
update_antlr_parser.sh Executable file
View File

@ -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