Permalink
Browse files
Pass through ControlFlow in osh2oil
- Loading branch information...
Showing
with
6 additions
and
2 deletions.
-
+6
−2
tools/osh2oil.py
|
|
@@ -267,7 +267,7 @@ def DoRedirect(self, node, local_symbols): |
|
|
# TODO:
|
|
|
# If do_expansion, then """, else '''
|
|
|
# HereDoc LST node needs spids for both opening and closing delimiter.
|
|
|
raise NotImplementedError
|
|
|
raise NotImplementedError(str(node))
|
|
|
|
|
|
else:
|
|
|
raise AssertionError(node.tag)
|
|
|
@@ -802,12 +802,16 @@ def DoCommand(self, node, local_symbols, at_top_level=False): |
|
|
elif node.tag == command_e.NoOp:
|
|
|
pass
|
|
|
|
|
|
elif node.tag == command_e.ControlFlow:
|
|
|
# No change for break / return / continue
|
|
|
pass
|
|
|
|
|
|
elif node.tag == command_e.TimeBlock:
|
|
|
self.DoCommand(node.pipeline, local_symbols)
|
|
|
|
|
|
else:
|
|
|
log('Command not handled: %s', node)
|
|
|
raise AssertionError(node.tag)
|
|
|
raise AssertionError(str(node.tag))
|
|
|
|
|
|
def DoWordAsExpr(self, node, local_symbols):
|
|
|
style = _GetRhsStyle(node)
|
|
|
|
0 comments on commit
8e371a8