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 202 builtin/assign_osh.py 558 builtin/bracket_osh.py 292 builtin/completion_osh.py 507 builtin/dirs_osh.py 348 builtin/io_osh.py 182 builtin/misc_osh.py 127 builtin/printf_osh.py 552 builtin/process_osh.py 617 builtin/pure_osh.py 588 builtin/read_osh.py 525 builtin/readline_osh.py 280 builtin/trap_osh.py 322 core/alloc.py 320 core/bash_impl.py 486 core/comp_ui.py 576 core/completion.py 1,517 core/dev.py 762 core/error.py 345 core/executor.py 858 core/main_loop.py 413 core/num.py 24 core/optview.py 58 core/process.py 1,972 core/pyos.py 290 core/pyutil.py 225 core/runtime.asdl 191 core/sh_init.py 293 core/shell.py 1,225 core/state.py 2,805 core/util.py 168 core/value.asdl 226 core/vm.py 342 display/ansi.py 15 display/pp_hnode.py 311 display/pp_value.py 349 display/pretty.asdl 44 display/pretty.py 333 display/ui.py 602 frontend/args.py 681 frontend/builtin_def.py 166 frontend/consts.py 399 frontend/flag_def.py 564 frontend/flag_spec.py 351 frontend/flag_util.py 69 frontend/id_kind_def.py 810 frontend/lexer.py 455 frontend/lexer_def.py 1,138 frontend/location.py 577 frontend/match.py 310 frontend/option_def.py 419 frontend/parse_lib.py 405 frontend/py_readline.py 161 frontend/reader.py 280 frontend/signal_def.py 94 frontend/syntax.asdl 655 frontend/syntax_abbrev.py 146 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,330 osh/cmd_parse.py 2,865 osh/glob_.py 508 osh/history.py 193 osh/prompt.py 357 osh/sh_expr_eval.py 1,298 osh/split.py 320 osh/string_ops.py 545 osh/tdop.py 342 osh/word_.py 805 osh/word_compile.py 309 osh/word_eval.py 2,548 osh/word_parse.py 2,218 pyext/fanos.c 119 pyext/fastfunc.c 133 pyext/fastfunc.pyi 11 pyext/fastlex.c 389 pyext/fastlex.pyi 21 pyext/libc.c 422 pyext/libc.pyi 19 pyext/line_input.pyi 57 pyext/posix_.pyi 210 45,437 lines in 86 files