oilshell.org

Side By Side Lines Parsed? Parse Process Time (secs) Internal Parse Time (secs) Parsed Lines/sec Translated? Filename
view 135 FAIL 0.22 - - FAIL changes.sh
view 185 OK 0.35 0.35 528.6 FAIL sear.sh

stderr

Translating sear.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 726, 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

        
Parsing changes.sh
        Line 132 of '/home/andy/git/other/ast/src/cmd/proto/changes.sh'
  tw $(eval ls -d $packages src/@(lib|cmd)/@(${components//' '/'|'}) |
                                             ^~
Expected word type Right_FuncDef, got (CompoundWord
  parts: [
    (BracedVarSub
      token: (token id:VSub_Name val:components span_id:800)
      suffix_op: 
        (PatSub
          pat: 
            (CompoundWord
              parts: [(SingleQuotedPart tokens:[(token id:Lit_Chars val:" " span_id:804)])]
            )
          replace: 
            (CompoundWord
              parts: [(SingleQuotedPart tokens:[(token id:Lit_Chars val:"|" span_id:808)])]
            )
          do_all: True
          do_prefix: False
          do_suffix: False
        )
      spids: [799 810]
    )
  ]
)
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing commmand list in command sub
---
Line 132 of '/home/andy/git/other/ast/src/cmd/proto/changes.sh'
  tw $(eval ls -d $packages src/@(lib|cmd)/@(${components//' '/'|'}) |
     ^~
Error reading command word
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---

        
Translating changes.sh
        Line 132 of '/home/andy/git/other/ast/src/cmd/proto/changes.sh'
  tw $(eval ls -d $packages src/@(lib|cmd)/@(${components//' '/'|'}) |
                                             ^~
Expected word type Right_FuncDef, got (CompoundWord
  parts: [
    (BracedVarSub
      token: (token id:VSub_Name val:components span_id:800)
      suffix_op: 
        (PatSub
          pat: 
            (CompoundWord
              parts: [(SingleQuotedPart tokens:[(token id:Lit_Chars val:" " span_id:804)])]
            )
          replace: 
            (CompoundWord
              parts: [(SingleQuotedPart tokens:[(token id:Lit_Chars val:"|" span_id:808)])]
            )
          do_all: True
          do_prefix: False
          do_suffix: False
        )
      spids: [799 810]
    )
  ]
)
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing commmand list in command sub
---
Line 132 of '/home/andy/git/other/ast/src/cmd/proto/changes.sh'
  tw $(eval ls -d $packages src/@(lib|cmd)/@(${components//' '/'|'}) |
     ^~
Error reading command word
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---