Parsing install.sh
|
Traceback (most recent call last):
File "bin/osh", line 469, in <module>
main(sys.argv)
File "bin/osh", line 452, in main
sys.exit(OilMain(argv))
File "bin/osh", line 435, in OilMain
status = OshMain(main_argv, login_shell)
File "bin/osh", line 336, in OshMain
node = c_parser.ParseWholeFile()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1592, in ParseWholeFile
node = self.ParseCommandTerm()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1504, in ParseCommandTerm
child = self.ParseAndOr()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1373, in ParseAndOr
left = self.ParsePipeline()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1308, in ParsePipeline
child = self.ParseCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1288, in ParseCommand
return self.ParseFunctionDef() # f() { echo; } # function
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1139, in ParseFunctionDef
if not self.ParseFunctionBody(func):
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1090, in ParseFunctionBody
body = self.ParseCompoundCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1055, in ParseCompoundCommand
return self.ParseBraceGroup()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 667, in ParseBraceGroup
c_list = self.ParseCommandList()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1570, in ParseCommandList
node = self.ParseCommandTerm()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1504, in ParseCommandTerm
child = self.ParseAndOr()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1373, in ParseAndOr
left = self.ParsePipeline()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1308, in ParsePipeline
child = self.ParseCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1288, in ParseCommand
return self.ParseFunctionDef() # f() { echo; } # function
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1139, in ParseFunctionDef
if not self.ParseFunctionBody(func):
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1090, in ParseFunctionBody
body = self.ParseCompoundCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1055, in ParseCompoundCommand
return self.ParseBraceGroup()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 667, in ParseBraceGroup
c_list = self.ParseCommandList()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1570, in ParseCommandList
node = self.ParseCommandTerm()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1504, in ParseCommandTerm
child = self.ParseAndOr()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1373, in ParseAndOr
left = self.ParsePipeline()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1308, in ParsePipeline
child = self.ParseCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1290, in ParseCommand
return self.ParseSimpleCommand() # echo foo
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 581, in ParseSimpleCommand
result = self._ScanSimpleCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 361, in _ScanSimpleCommand
if not self._Peek(): return None
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 156, in _Peek
w = self.w_parser.ReadWord(self.next_lex_mode)
File "/home/andy/git/oil/bin/../osh/word_parse.py", line 1130, in ReadWord
w, need_more = self._ReadWord(lex_mode)
File "/home/andy/git/oil/bin/../osh/word_parse.py", line 1091, in _ReadWord
w = self._ReadCompoundWord(lex_mode=lex_mode)
File "/home/andy/git/oil/bin/../osh/word_parse.py", line 925, in _ReadCompoundWord
part2 = self._ReadArrayLiteralPart()
File "/home/andy/git/oil/bin/../osh/word_parse.py", line 861, in _ReadArrayLiteralPart
assert self.cur_token.id == Id.Op_LParen, self.cur_token
AssertionError: (token id:WS_Space val:" " span_id:12749)
|
Translating install.sh
|
Traceback (most recent call last):
File "bin/osh", line 469, in <module>
main(sys.argv)
File "bin/osh", line 452, in main
sys.exit(OilMain(argv))
File "bin/osh", line 435, in OilMain
status = OshMain(main_argv, login_shell)
File "bin/osh", line 336, in OshMain
node = c_parser.ParseWholeFile()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1592, in ParseWholeFile
node = self.ParseCommandTerm()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1504, in ParseCommandTerm
child = self.ParseAndOr()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1373, in ParseAndOr
left = self.ParsePipeline()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1308, in ParsePipeline
child = self.ParseCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1288, in ParseCommand
return self.ParseFunctionDef() # f() { echo; } # function
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1139, in ParseFunctionDef
if not self.ParseFunctionBody(func):
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1090, in ParseFunctionBody
body = self.ParseCompoundCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1055, in ParseCompoundCommand
return self.ParseBraceGroup()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 667, in ParseBraceGroup
c_list = self.ParseCommandList()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1570, in ParseCommandList
node = self.ParseCommandTerm()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1504, in ParseCommandTerm
child = self.ParseAndOr()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1373, in ParseAndOr
left = self.ParsePipeline()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1308, in ParsePipeline
child = self.ParseCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1288, in ParseCommand
return self.ParseFunctionDef() # f() { echo; } # function
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1139, in ParseFunctionDef
if not self.ParseFunctionBody(func):
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1090, in ParseFunctionBody
body = self.ParseCompoundCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1055, in ParseCompoundCommand
return self.ParseBraceGroup()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 667, in ParseBraceGroup
c_list = self.ParseCommandList()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1570, in ParseCommandList
node = self.ParseCommandTerm()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1504, in ParseCommandTerm
child = self.ParseAndOr()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1373, in ParseAndOr
left = self.ParsePipeline()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1308, in ParsePipeline
child = self.ParseCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1290, in ParseCommand
return self.ParseSimpleCommand() # echo foo
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 581, in ParseSimpleCommand
result = self._ScanSimpleCommand()
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 361, in _ScanSimpleCommand
if not self._Peek(): return None
File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 156, in _Peek
w = self.w_parser.ReadWord(self.next_lex_mode)
File "/home/andy/git/oil/bin/../osh/word_parse.py", line 1130, in ReadWord
w, need_more = self._ReadWord(lex_mode)
File "/home/andy/git/oil/bin/../osh/word_parse.py", line 1091, in _ReadWord
w = self._ReadCompoundWord(lex_mode=lex_mode)
File "/home/andy/git/oil/bin/../osh/word_parse.py", line 925, in _ReadCompoundWord
part2 = self._ReadArrayLiteralPart()
File "/home/andy/git/oil/bin/../osh/word_parse.py", line 861, in _ReadArrayLiteralPart
assert self.cur_token.id == Id.Op_LParen, self.cur_token
AssertionError: (token id:WS_Space val:" " span_id:12749)
|
Translating release.sh
|
Traceback (most recent call last):
File "bin/osh", line 469, in <module>
main(sys.argv)
File "bin/osh", line 452, in main
sys.exit(OilMain(argv))
File "bin/osh", line 435, in OilMain
status = OshMain(main_argv, login_shell)
File "bin/osh", line 350, in OshMain
osh2oil.PrintAsOil(arena, node, opts.debug_spans)
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 69, in PrintAsOil
fixer.DoCommand(node, None, at_top_level=True) # no local symbols yet
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 473, in DoCommand
self.DoCommand(child, local_symbols)
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 549, in DoCommand
self.DoAssignment(node, at_top_level, local_symbols)
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 463, in DoAssignment
self.DoWordAsExpr(pair.rhs, local_symbols)
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 838, in DoWordAsExpr
self.DoWordInCommand(node, local_symbols)
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 989, in DoWordInCommand
self.DoWordPart(part, local_symbols)
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 1167, in DoWordPart
self.DoArithExpr(node.anode, local_symbols)
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 1196, in DoArithExpr
raise AssertionError(node.__class__.__name__)
AssertionError: TernaryOp
|
Translating make-bundle.sh
|
Traceback (most recent call last):
File "bin/osh", line 469, in <module>
main(sys.argv)
File "bin/osh", line 452, in main
sys.exit(OilMain(argv))
File "bin/osh", line 435, in OilMain
status = OshMain(main_argv, login_shell)
File "bin/osh", line 350, in OshMain
osh2oil.PrintAsOil(arena, node, opts.debug_spans)
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 69, in PrintAsOil
fixer.DoCommand(node, None, at_top_level=True) # no local symbols yet
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 473, in DoCommand
self.DoCommand(child, local_symbols)
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 536, in DoCommand
self.DoRedirect(r, local_symbols)
File "/home/andy/git/oil/bin/../tools/osh2oil.py", line 270, in DoRedirect
raise NotImplementedError(node.__class__.__name__)
NotImplementedError: HereDoc
|