Skip to content

Commit

Permalink
s/KK/K/ in bash interpreter
Browse files Browse the repository at this point in the history
git-svn-id: https://awib.googlecode.com/svn/trunk@106 45282222-9dd6-11dd-93a9-677c3c677ea2
  • Loading branch information
matslina committed Oct 3, 2010
1 parent 347f7ca commit 9052031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/bfpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
r"1^'.'))_(0);else{__[_K_]=getchar();}}}main(){--_KK;___();}"]

INT_BASH = \
[r'O0=($(echo "$KK"|sed -e"s/\(.\)/\\1 /g"));OO=($(for((i=0;i<65535;i++))',
[r'O0=($(echo "$K"|sed -e"s/\(.\)/\\1 /g"));OO=($(for((i=0;i<65535;i++))',
r'do echo "0";done));Oo=0;oo="";oO=0;o0=0;while [ $oO -lt ${#O0[@]} ];do',
r'case ${O0[$oO]} in ">")o0=$((o0+1));;"<")o0=$((o0-1));;"+")OO[$o0]=$((',
r'(${OO[$o0]}+1)%0x100));;"-")OO[$o0]=$(((${OO[$o0]}+0377)%0x100));;".")',
Expand Down

0 comments on commit 9052031

Please sign in to comment.