This is the input to the translators, written in statically-typed Python. Note that bash is at least 140K lines of code, and OSH implements a large part of bash and more.
bin/oils_for_unix.py 201 builtin/assign_osh.py 575 builtin/bracket_osh.py 292 builtin/completion_osh.py 508 builtin/dirs_osh.py 349 builtin/io_osh.py 182 builtin/misc_osh.py 126 builtin/printf_osh.py 547 builtin/process_osh.py 596 builtin/pure_osh.py 490 builtin/read_osh.py 524 builtin/readline_osh.py 142 builtin/trap_osh.py 319 core/alloc.py 320 core/comp_ui.py 578 core/completion.py 1,516 core/dev.py 767 core/error.py 345 core/executor.py 749 core/main_loop.py 403 core/num.py 24 core/optview.py 58 core/process.py 1,972 core/pyos.py 448 core/pyutil.py 225 core/runtime.asdl 188 core/shell.py 1,255 core/state.py 3,006 core/util.py 168 core/value.asdl 220 core/vm.py 342 display/ansi.py 15 display/pp_value.py 468 display/pretty.asdl 30 display/pretty.py 303 display/ui.py 602 frontend/args.py 675 frontend/builtin_def.py 166 frontend/consts.py 383 frontend/flag_def.py 547 frontend/flag_spec.py 349 frontend/flag_util.py 68 frontend/id_kind_def.py 809 frontend/lexer.py 455 frontend/lexer_def.py 1,137 frontend/location.py 571 frontend/match.py 310 frontend/option_def.py 410 frontend/parse_lib.py 405 frontend/py_readline.py 117 frontend/reader.py 276 frontend/signal_def.py 94 frontend/syntax.asdl 651 frontend/syntax_abbrev.py 141 frontend/typed_args.py 684 frontend/types.asdl 61 osh/arith_parse.py 197 osh/bool_parse.py 272 osh/bool_stat.py 135 osh/braces.py 539 osh/cmd_eval.py 2,287 osh/cmd_parse.py 2,862 osh/glob_.py 494 osh/history.py 193 osh/prompt.py 362 osh/sh_expr_eval.py 1,233 osh/split.py 311 osh/string_ops.py 545 osh/tdop.py 342 osh/word_.py 805 osh/word_compile.py 310 osh/word_eval.py 2,435 osh/word_parse.py 2,219 pyext/fanos.c 119 pyext/fastfunc.c 133 pyext/fastfunc.pyi 11 pyext/fastlex.c 389 pyext/fastlex.pyi 21 pyext/libc.c 421 pyext/libc.pyi 18 pyext/line_input.pyi 32 pyext/posix_.pyi 210 44,057 lines in 83 files