mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
Co-authored-by: Antoine Wacheux <[email protected]> Co-authored-by: Maxence Maireaux <[email protected]> Co-authored-by: Brieuc Caillot <[email protected]>
20 lines
396 B
Bash
Executable File
20 lines
396 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
if [[ "${TRACE-0}" == "1" ]]; then
|
|
set -o xtrace
|
|
fi
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
ANTLR_VERSION='4.10.1'
|
|
|
|
main() {
|
|
curl --continue-at - https://www.antlr.org/download/antlr-$ANTLR_VERSION-complete.jar -O
|
|
java -Xmx500M -cp "./antlr-$ANTLR_VERSION-complete.jar" org.antlr.v4.Tool -Dlanguage=Go -o parser NumScript.g4
|
|
}
|
|
|
|
main "$@"
|