This branch generates an AST - for contextual analysis, see contextual-analysis branch
Command Line Parameters:
full_file_path
(required) path of input file to parse
-p
(optional) output to file
-d
(optional) output to system.out
Example:
compile2C -p -d /home/carter/IdeaProjects/bash-sub-shell/test.sh
Some test cases that I have confirmed to work:
file1 = stuff1.txt
file2 = stuff2.c
file3 = stuff3.java
for file in file1 file2 file3
do
if test -e file then
cp file bck
else
fi
od
file1 = stuff1.txt
file2 = stuff2.c
file3 = stuff3.java
file4 = asdfasdf
file5 = qwerqwer