Skip to content

Commit

Permalink
ps: fix self-host and runtest.py parsing issue.
Browse files Browse the repository at this point in the history
- make sure readline has large enough string for steps2-A
- fix keyword? so that it doesn't leave anything extra on the stack
- fix argparse command line parsing so that that the second '--' on
  the command line is not dropped.
  • Loading branch information
kanaka committed Oct 13, 2015
1 parent edda92c commit 406761e
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ miniMAL_RUNSTEP = miniMAL ../$(2) $(3)
nim_RUNSTEP = ../$(2) $(3)
perl_RUNSTEP = perl ../$(2) $(3)
php_RUNSTEP = php ../$(2) $(3)
ps_RUNSTEP = $(4)gs -q -I./ -dNODISPLAY -- ../$(2) $(3)$(4)
ps_RUNSTEP = gs -q -I./ -dNODISPLAY -- ../$(2) $(3)
python_RUNSTEP = $(PYTHON) ../$(2) $(3)
r_RUNSTEP = Rscript ../$(2) $(3)
racket_RUNSTEP = ../$(2) $(3)
Expand Down
Binary file modified ps/step1_read_print.ps
Binary file not shown.
Binary file modified ps/step2_eval.ps
Binary file not shown.
Binary file modified ps/step3_env.ps
Binary file not shown.
Binary file modified ps/step4_if_fn_do.ps
Binary file not shown.
Binary file modified ps/step5_tco.ps
Binary file not shown.
Binary file modified ps/step6_file.ps
Binary file not shown.
Binary file modified ps/step7_quote.ps
Binary file not shown.
Binary file modified ps/step8_macros.ps
Binary file not shown.
Binary file modified ps/step9_try.ps
Binary file not shown.
Binary file modified ps/stepA_mal.ps
Binary file not shown.
Binary file modified ps/types.ps
Binary file not shown.
4 changes: 3 additions & 1 deletion runtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ def next(self):

return self.form


args = parser.parse_args(sys.argv[1:])
# Workaround argparse issue with two '--' on command line
if sys.argv.count('--') > 0:
args.mal_cmd = sys.argv[sys.argv.index('--')+1:]

if args.rundir: os.chdir(args.rundir)

Expand Down

0 comments on commit 406761e

Please sign in to comment.