Skip to content

Commit

Permalink
102, 140, 159 failing due to magical 'c'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandraGrass committed Jul 28, 2019
1 parent 485428d commit 10ea9c5
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# usage: main.py [-h] [-i INPUT] [-o OUTPUT]
# example: python3 main.py -i input/slide_102.ml -o output/slide_102.txt

with open(args.input) as i_f, open(args.output, 'w') as o_f:
with open(args.input) as i_f, open(args.output, 'w+') as o_f:

# read input and remove whitespace
expr = i_f.read()
Expand Down
Empty file added output/slide_102.txt
Empty file.
29 changes: 29 additions & 0 deletions output/slide_114.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Output:
0 loadc 5
1 mkbasic
1 pushloc 0
2 mkvec 1
2 mkfunval A
2 jump B
A:
0 targ 1
0 pushloc 0
1 getbasic
1 pushloc 1
2 getbasic
2 mul
1 mkbasic
1 pushloc 0
2 getbasic
2 pushglob 0
3 getbasic
3 add
2 mkbasic
2 return 1
B:
2 mark C
5 pushloc 4
6 pushloc 4
7 apply
C:
3 slide 3
16 changes: 16 additions & 0 deletions output/slide_131.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Output:
0 loadc 19
1 mkbasic
1 pushloc 0
2 getbasic
2 pushloc 1
3 getbasic
3 mul
2 mkbasic
2 pushloc 1
3 getbasic
3 pushloc 1
4 getbasic
4 add
3 mkbasic
3 slide 2
Empty file added output/slide_140.txt
Empty file.
Empty file added output/slide_159.txt
Empty file.

0 comments on commit 10ea9c5

Please sign in to comment.