oilshell.org

Files Max Lines Total Lines Parse Failures Max Parse Time (secs) Total Parse Time (secs) Parsed Lines/sec Translation Failures Directory
4 165 419 0 0.27 0.64 654.7 1 benchmarks/
9 377 1,037 0 0.29 1.59 652.2 3 build/
5 370 860 0 0.53 1.39 618.7 3 opy/
5 507 750 0 0.52 1.17 641.0 3 scripts/
17 924 3,475 0 0.96 4.72 736.2 10 test/

Side By Side Lines Parsed? Parse Process Time (secs) Internal Parse Time (secs) Parsed Lines/sec Translated? Filename
view 1 FAIL 0.08 - - FAIL bad.sh
view 284 OK 0.42 0.42 676.2 FAIL configure
view 12 OK 0.09 0.09 133.3 OK foo.sh
view 17 OK 0.11 0.11 154.5 OK g.sh
view 42 OK 0.12 0.12 350.0 OK install
view 56 OK 0.15 0.15 373.3 OK local.sh
view 976 OK 1.48 1.48 659.5 FAIL setup.sh

stderr

Translating configure
        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 632, in DoCommand
    self.DoCommand(child, new_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

        
Parsing bad.sh
        Line 1 of '/home/andy/git/oil/bad.sh'
  echo >
        ^
Expected word after redirect operator
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---

        
Translating bad.sh
        Line 1 of '/home/andy/git/oil/bad.sh'
  echo >
        ^
Expected word after redirect operator
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---

        
Translating local.sh
        WARNING:(token id:Lit_Chars val:/vm-shared) has no span_id

        
Translating setup.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 632, in DoCommand
    self.DoCommand(child, new_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 820, 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 999, in DoWordPart
    span_id = word.LeftMostSpanForPart(node)
  File "/home/andy/git/oil/bin/../core/word.py", line 105, in LeftMostSpanForPart
    return LeftMostSpanForWord(part.words[0])  # Hm this is a=(1 2 3)
IndexError: list index out of range