You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# return # FILL IN HERE with a `CommandNode` that will `cat` the file at `stub_path` (hint: checkout `string_to_argchars`)
287
+
returnAST.CommandNode( # REPLACE # return # FILL IN HERE with a `CommandNode` that will `cat` the file at `stub_path` (hint: checkout `string_to_argchars`)
288
+
assignments= [], # guaranteed by safety to have no assignments # REMOVE
assignments= [ # no original assignments (safe to expand!)
329
-
# FILL IN HERE WITH an assignment of `JIT_INPUT` to the `stub_path` (hint: you need to build an `AssignNode`; use `string_of_argchars`)
345
+
AST.AssignNode(var="JIT_INPUT", val=string_to_argchars(stub_path)), # REPLACE # FILL IN HERE WITH an assignment of `JIT_INPUT` to the `stub_path` (hint: you need to build an `AssignNode`; use `string_of_argchars`)
330
346
],
331
-
arguments= [] # FILL IN HERE WITH sourcing (via `.`) the `src/debug_jit.sh` JIT script (hint: use `string_of_argchars`)
347
+
arguments= [string_to_argchars("."), string_to_argchars("SOLUTION/debug_jit.sh"),], # REPLACE arguments = [] # FILL IN HERE WITH sourcing (via `.`) the `src/debug_jit.sh` JIT script (hint: use `string_of_argchars`)
# return # FILL IN HERE with each node in `ast` pretty-printed, compiled into a single newline-separated string
37
+
return"\n".join([node.pretty() fornodeinast]) # REPLACE # return # FILL IN HERE with each node in `ast` pretty-printed, compiled into a single newline-separated string
38
38
39
39
40
40
##
@@ -115,8 +115,28 @@ def walk_fd(fd):
115
115
**{k: vfork, vinvars(node).items() ifk!="items"},
116
116
)
117
117
caseAST.CommandNode():
118
-
# FILL IN HERE WITH the code for visiting a `CommandNode`
119
-
return# FILL IN HERE WITH the recomputed `CommandNode`
118
+
# REPLACE # FILL IN HERE WITH the code for visiting a `CommandNode`
returnAST.CommandNode( # REPLACE # return # FILL IN HERE with a `CommandNode` that will `cat` the file at `stub_path` (hint: checkout `string_to_argchars`)
288
-
assignments= [], # guaranteed by safety to have no assignments # REMOVE
assignments= [ # no original assignments (safe to expand!)
345
-
AST.AssignNode(var="JIT_INPUT", val=string_to_argchars(stub_path)), # REPLACE # FILL IN HERE WITH an assignment of `JIT_INPUT` to the `stub_path` (hint: you need to build an `AssignNode`; use `string_of_argchars`)
329
+
# FILL IN HERE WITH an assignment of `JIT_INPUT` to the `stub_path` (hint: you need to build an `AssignNode`; use `string_of_argchars`)
346
330
],
347
-
arguments= [string_to_argchars("."), string_to_argchars("src/debug_jit.sh"),], # REPLACE arguments = [] # FILL IN HERE WITH sourcing (via `.`) the `src/debug_jit.sh` JIT script (hint: use `string_of_argchars`)
331
+
arguments= [] # FILL IN HERE WITH sourcing (via `.`) the `src/debug_jit.sh` JIT script (hint: use `string_of_argchars`)
0 commit comments