Skip to content

Commit

Permalink
fix: Fix update_antlr_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Sep 22, 2024
1 parent fc0dca8 commit e6900d9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions update_antlr_parser.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e6900d9

Please sign in to comment.