Skip to content

Commit

Permalink
Add a build script for Python
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Oct 26, 2017
1 parent bccb529 commit 291c75a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
14 changes: 1 addition & 13 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,5 @@ set -e
set -x

antlr4="java org.antlr.v4.Tool"
grun="java org.antlr.v4.gui.TestRig"

$antlr4 fortran.g4
javac fortran*.java

# Test:
$grun fortran module -tree examples/m1.f90
echo
$grun fortran module -tree examples/subroutine1.f90
echo
$grun fortran module -tree examples/expr1.f90

# Visualize
#grun fortran module -gui examples/m1.f90
$antlr4 -Dlanguage=Python3 fortran.g4
20 changes: 20 additions & 0 deletions build_java.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

set -e
set -x

antlr4="java org.antlr.v4.Tool"
grun="java org.antlr.v4.gui.TestRig"

$antlr4 fortran.g4
javac fortran*.java

# Test:
$grun fortran module -tree examples/m1.f90
echo
$grun fortran module -tree examples/subroutine1.f90
echo
$grun fortran module -tree examples/expr1.f90

# Visualize
#grun fortran module -gui examples/m1.f90

0 comments on commit 291c75a

Please sign in to comment.