forked from vadyushkins/kotgll
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
shopt -s nullglob #ingore failed patterns | ||
rootPrj=$(pwd) | ||
parserDest="../benchmarks/src/jmh/kotlin/" | ||
antlrSrc="benchmarks/src/jmh/java/org/antlr" | ||
lexerSrc="examples/src/main/java/java8" | ||
|
||
printf "\n\nINSTALL PACKAGES\n" | ||
apt-get install jflex | ||
apt-get install antlr4 | ||
|
||
printf "\n\nGENERATE FILES\n" | ||
|
||
printf "\nGenerate ANTLR4 files" | ||
antlr4 -o benchmarks/src/jmh/java/ -package org.antlr benchmarks/src/jmh/java/org/antlr/Java8.g4 | ||
|
||
printf "\nGenerate lexers" | ||
cd $lexerSrc | ||
for lexer_name in *.jflex *.jlex *.lex *.flex *.x | ||
do | ||
jflex $lexer_name | ||
done | ||
cd $rootPrj | ||
|
||
|
||
printf "\nGenerate UCFS parser files at" | ||
echo $parserDest | ||
./gradlew :examples:run --args=$parserDest |